[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bugs in parsing build options
From: |
Alex Kost |
Subject: |
Re: Bugs in parsing build options |
Date: |
Fri, 27 Feb 2015 00:08:07 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Ludovic Courtès (2015-02-26 02:05 +0300) wrote:
> 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.
Yes, thank you, now I'm satisfied :-)
> It was a good opportunity to factorize all that and to add tests.
>
> Thanks!
>
> Ludo’.
Thank YOU for being so productive!
--
Alex