From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30249: configure: =?UTF-8?Q?=E2=80=9Cguile2=E2=80=9D?= is checked before =?UTF-8?Q?=E2=80=9Cguile=E2=80=9D?= Date: Thu, 25 Jan 2018 17:57:03 +0100 Message-ID: <878tcluba8.fsf@gnu.org> References: 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]:54138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eekqk-0008RR-2C for bug-guix@gnu.org; Thu, 25 Jan 2018 11:58:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eekqg-0002M2-UN for bug-guix@gnu.org; Thu, 25 Jan 2018 11:58:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:34863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eekqg-0002Lp-QC for bug-guix@gnu.org; Thu, 25 Jan 2018 11:58:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eekqg-0004L9-Cg for bug-guix@gnu.org; Thu, 25 Jan 2018 11:58:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Ricardo Wurmus's message of "Thu, 25 Jan 2018 15:27:48 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ricardo Wurmus Cc: 30249@debbugs.gnu.org Ricardo Wurmus skribis: > On Fedora there is /usr/bin/guile2. When I want to configure Guix from > source I run =E2=80=9Cguix environment guix=E2=80=9D and run =E2=80=9C./c= onfigure=E2=80=9D. This aborts > because the configure script finds the system=E2=80=99s /usr/bin/guile2 b= efore > =E2=80=9Cguile=E2=80=9D from the environment. > > Here=E2=80=99s the error: > > configure: checking for guile 2.2 > configure: found guile 2.2 > checking for guile-2.2... no > checking for guile2.2... no > checking for guile-2... no > checking for guile2... /usr/bin/guile2 > configure: error: found development files for Guile 2.2, but /usr/bin/gui= le2 has effective version 2.0 > make: *** [Makefile:3071: config.status] Error 1 The code for this check is in the =E2=80=98GUILE_PROGS=E2=80=99 macro, defi= ned in meta/guile.m4 in Guile. I think it makes sense for this macro to try version-specific program names first, and only then to fall back to =E2=80=9Cguile=E2=80=9D. So I w= ould suggest leaving this macro unchanged. That said, guile-2.2.pc and guile-2.0.pc both define =E2=80=98guile=E2=80= =99 and =E2=80=98guild=E2=80=99. So =E2=80=98GUILE_PROGS=E2=80=99 should probably = use these when pkg-config is being used, instead of trying to guess from $PATH. Thoughts? > To make this work I need to move /usr/bin/guile2 away or make it > otherwise unaccessible (e.g. with =E2=80=9Cguix environment --container g= uix=E2=80=9D). > > Is there something we can do about this to ensure that =E2=80=9Cguix envi= ronment > guix=E2=80=9D is sufficient to build Guix from source on Fedora? We could encourage people to use --pure or -C. Ludo=E2=80=99.