From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Bugs in parsing build options Date: Sat, 30 May 2015 19:26:25 +0300 Message-ID: <87h9qunia6.fsf@gmail.com> References: <87fvcszuno.fsf@gnu.org> <87bnkopawy.fsf_-_@gmail.com> <87oaoj7wu0.fsf@gnu.org> <871tlegiot.fsf@gmail.com> <87oaoh1tiw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yyjai-0006qC-ES for guix-devel@gnu.org; Sat, 30 May 2015 12:26:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yyjaf-00014I-A0 for guix-devel@gnu.org; Sat, 30 May 2015 12:26:32 -0400 In-Reply-To: <87oaoh1tiw.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 26 Feb 2015 00:05:43 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s (2015-02-26 02:05 +0300) wrote: > Alex Kost 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: >> =E2=80=98(parse-options-from args)=E2=80=99 will contain =E2=80=98(subst= itutes? . #t)=E2=80=99 among >> other things and it will shadow the false value for substitutes returned >> by =E2=80=98(parse-options-from (environment-build-options))=E2=80=99. >> >> Now (after your patch) the same will happen with "--no-grub": >> =E2=80=9Cexport GUIX_BUILD_OPTIONS=3D--no-grub=E2=80=9D will not be hono= red unless a user >> explicitly specifies "--no-grub" option one more time in a "guix system" >> command. > > Oh, that=E2=80=99s right. AFAICS, commit cf6ce3e fixes it. > > It was a good opportunity to factorize all that and to add tests. I think I've found that there are still some problems in parsing options. 1. The following command: GUIX_BUILD_OPTIONS=3D"--no-grub" guix package --help gives the following error: guix package: error: no-grub: unrecognized option So it makes impossible to use GUIX_BUILD_OPTIONS env var or did I miss anything? 2. The manual says that =E2=80=98guix package=E2=80=99 =C2=ABsupports all t= he common build options that =E2=80=98guix build=E2=80=99 supports=C2=BB and the following = command works perfectly: guix build --system=3Di686-linux hello However, the following command: guix package --system=3Di686-linux --install hello gives an error again: guix package: error: system=3Di686-linux: unrecognized option --=20 Alex