[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55220] [PATCH 0/4] Add --list-systems and --list-targets options.
From: |
Maxim Cournoyer |
Subject: |
[bug#55220] [PATCH 0/4] Add --list-systems and --list-targets options. |
Date: |
Sat, 21 May 2022 21:30:53 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Hi,
Ludovic Courtès <ludo@gnu.org> writes:
[...]
>> +(define %standard-cross-build-options
>> + ;; Build options related to cross builds.
>> + (list
>> + (option '("list-targets") #f #f
>> + (lambda (opt name arg result)
>> + (list-targets)
>> + (exit 0)))
>> + (option '("target") #t #f
>> + (lambda (opt name arg result . rest)
>> + (let ((t (false-if-exception
>> + (first (member arg (targets))))))
>> + (if t
>> + (apply values (alist-cons 'target t result) rest)
>> + (leave (G_ "'~a' is not a supported target.~%")
>> + arg)))))))
>
> This is my main issue: should we still accept any triplet, and simply
> print a nicer error than currently when the glibc dynamic linker name is
> unknown?
>
> Or should be be just as strict as above, at the risk of frustrating
> developers porting stuff to new or unusual platforms?
>
> Or should there be an option to bypass this check?
>
> Maybe I’m overrating the usefulness of allowing users to pass in
> arbitrary triplets, though the manual does suggest that when porting to
> a new platform (info "(guix) Porting"). Thoughts?
I think [w.r.t. overrating usefulness] so :-). Surely, a developer
savvy enough to embark on a porting journey won't be put off by the
having to add their new arch/platform to the list of known ones, me
thinks. And it makes "normal" use for everyone else friendlier and it
validates the input/fail on problems early which is nicer.
Thanks,
Maxim
- [bug#55220] [PATCH 0/4] Add --list-systems and --list-targets options., Mathieu Othacehe, 2022/05/02
- [bug#55220] [PATCH 1/4] platform: Introduce new platforms., Mathieu Othacehe, 2022/05/02
- [bug#55220] [PATCH 3/4] ci: Do not rely on hardcoded cross-targets lists., Mathieu Othacehe, 2022/05/02
- [bug#55220] [PATCH 4/4] scripts: Add --list-systems and --list-targets options., Mathieu Othacehe, 2022/05/02
- [bug#55220] [PATCH 0/4] Add --list-systems and --list-targets options., Maxim Cournoyer, 2022/05/21
- [bug#55220] [PATCH 0/4] Add --list-systems and --list-targets options., Mathieu Othacehe, 2022/05/22
[bug#55220] [PATCH 0/4] Add --list-systems and --list-targets options., Ludovic Courtès, 2022/05/06
[bug#55220] [PATCH 0/4] Add --list-systems and --list-targets options., Ludovic Courtès, 2022/05/06
[bug#55220] [PATCH v2 0/6] Add --list-systems and --list-targets options., Mathieu Othacehe, 2022/05/07