unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: 30249@debbugs.gnu.org
Subject: bug#30249: configure: “guile2” is checked before “guile”
Date: Thu, 25 Jan 2018 17:57:03 +0100	[thread overview]
Message-ID: <878tcluba8.fsf@gnu.org> (raw)
In-Reply-To: <idjfu6u57yz.fsf@bimsb-sys02.mdc-berlin.net> (Ricardo Wurmus's message of "Thu, 25 Jan 2018 15:27:48 +0100")

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> On Fedora there is /usr/bin/guile2.  When I want to configure Guix from
> source I run “guix environment guix” and run “./configure”.  This aborts
> because the configure script finds the system’s /usr/bin/guile2 before
> “guile” from the environment.
>
> Here’s 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/guile2 has effective version 2.0
> make: *** [Makefile:3071: config.status] Error 1

The code for this check is in the ‘GUILE_PROGS’ macro, defined 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 “guile”.  So I would suggest
leaving this macro unchanged.

That said, guile-2.2.pc and guile-2.0.pc both define ‘guile’ and
‘guild’.  So ‘GUILE_PROGS’ 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 “guix environment --container guix”).
>
> Is there something we can do about this to ensure that “guix environment
> guix” is sufficient to build Guix from source on Fedora?

We could encourage people to use --pure or -C.

Ludo’.

      reply	other threads:[~2018-01-25 16:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-25 14:27 bug#30249: configure: “guile2” is checked before “guile” Ricardo Wurmus
2018-01-25 16:57 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tcluba8.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=30249@debbugs.gnu.org \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).