unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30249: configure: “guile2” is checked before “guile”
@ 2018-01-25 14:27 Ricardo Wurmus
  2018-01-25 16:57 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2018-01-25 14:27 UTC (permalink / raw)
  To: 30249

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:

--8<---------------cut here---------------start------------->8---
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
--8<---------------cut here---------------end--------------->8---

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?

--
Ricardo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#30249: configure: “guile2” is checked before “guile”
  2018-01-25 14:27 bug#30249: configure: “guile2” is checked before “guile” Ricardo Wurmus
@ 2018-01-25 16:57 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-01-25 16:57 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 30249

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’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-25 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-25 14:27 bug#30249: configure: “guile2” is checked before “guile” Ricardo Wurmus
2018-01-25 16:57 ` Ludovic Courtès

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).