[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bugs in parsing build options
From: |
Ludovic Courtès |
Subject: |
Re: Bugs in parsing build options |
Date: |
Thu, 26 Feb 2015 00:05:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Alex Kost <address@hidden> skribis:
> Suppose a user specifies "--no-substitutes" in his GUIX_BUILD_OPTIONS
> and then he calls "guix system reconfigure". What would happen?
> Substitutes _will be used_ anyway, because:
> ‘(parse-options-from args)’ will contain ‘(substitutes? . #t)’ among
> other things and it will shadow the false value for substitutes returned
> by ‘(parse-options-from (environment-build-options))’.
>
> Now (after your patch) the same will happen with "--no-grub":
> “export GUIX_BUILD_OPTIONS=--no-grub” will not be honored unless a user
> explicitly specifies "--no-grub" option one more time in a "guix system"
> command.
Oh, that’s right. AFAICS, commit cf6ce3e fixes it.
It was a good opportunity to factorize all that and to add tests.
Thanks!
Ludo’.