GNU bug report logs - #33305
Guile's Autoconf macros play not well with make distcheck

Previous Next

Package: guile;

Reported by: Marc Nieper-Wißkirchen <marc <at> nieper-wisskirchen.de>

Date: Wed, 7 Nov 2018 16:38:02 UTC

Severity: normal

To reply to this bug, email your comments to 33305 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#33305; Package guile. (Wed, 07 Nov 2018 16:38:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marc Nieper-Wißkirchen <marc <at> nieper-wisskirchen.de>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Wed, 07 Nov 2018 16:38:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marc Nieper-Wißkirchen <marc <at> nieper-wisskirchen.de>
To: bug-guile <at> gnu.org
Subject: Guile's Autoconf macros play not well with make distcheck
Date: Wed, 7 Nov 2018 17:07:24 +0100
[Message part 1 (text/plain, inline)]
Consider an Autotools project that eventually wants to install some Guile
modules in the system. The canonical way to do this seems to add
GUILE_SITE_DIR to
https://www.gnu.org/software/guile/manual/html_node/Autoconf-Macros.html in
configure.ac and to use the variables GUILE_SITE and GUILE_SITE_CCACHE in
Makefile.am to determine the install targets.

However, this doesn't honor --prefix settings; in particular, make
distcheck fails for non-root users; see here for a general discussion:
https://www.gnu.org/software/automake/manual/html_node/Hard_002dCoded-Install-Paths.html

So in order to make use of GUILE_SITE and GUILE_SITE_CCACHE, I think we
need Autoconf macros in guile.m4 that allow to specify the prefix (as in
the Python example on the cited page).

-- Marc

P.S.: There is one more issue with guile.m4: When it finds the program
guile-2.2, it only searches for guild-2.2, but not for guild. However, at
least on Ubuntu systems, there is only guild, but no guild-2.2.

P.P.S.: Of course, in the long run we need integration of Guile in Autoconf
like Python and Elisp are already integrated.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#33305; Package guile. (Sat, 10 Nov 2018 20:21:02 GMT) Full text and rfc822 format available.

Message #8 received at 33305 <at> debbugs.gnu.org (full text, mbox):

From: David Pirotte <david <at> altosw.be>
To: Marc Nieper-Wißkirchen <marc <at> nieper-wisskirchen.de>
Cc: 33305 <at> debbugs.gnu.org
Subject: Re: bug#33305: Guile's Autoconf macros play not well with make
 distcheck
Date: Sat, 10 Nov 2018 18:20:47 -0200
[Message part 1 (text/plain, inline)]
Hello Mark,

	disclaimer: I'm not a Guile maintainer, just giving you my personal
	opinion here

> Consider an Autotools project that eventually wants to install some Guile
> modules in the system. The canonical way to do this seems to add
> GUILE_SITE_DIR to ...

> However, this doesn't honor --prefix settings; in particular, make
> distcheck fails for non-root users; see here for a general discussion:

The guile.m4 macros are not meant to (and shouldn't) honor variables such as
--prefix, that is the responsibility of the (autotool based) project author. The
guile.m4 macros and variables that it defines provide (and meant to only provide)
information about 'the Guile' that is 'visible' to your project (at configure and
make time ...).

There are solution though, here is an example of what I do [1].

> P.S.: There is one more issue with guile.m4: When it finds the program
> guile-2.2, it only searches for guild-2.2, but not for guild. However, at
> least on Ubuntu systems, there is only guild, but no guild-2.2.

That is expected, because 'guild' could point to 'another Guile' ... either it is an
Ubuntu problem, either guild was not properly post-fixed as requested, not sure, one
would have to check ...

HTH,
David

1]	http://git.savannah.nongnu.org/cgit/guile-lib.git/tree/

	[ see the configure.ac, Makefile.am and am/guile.mk ...
	[ I suggest you clone and try it (you'll need to run ./autogen.sh first)
	[ try with no option, then only using --prefix, then using both --prefix
	[ and --with-guile-site=yes 
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#33305; Package guile. (Sat, 10 Nov 2018 21:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 33305 <at> debbugs.gnu.org (full text, mbox):

From: David Pirotte <david <at> altosw.be>
To: Marc Nieper-Wißkirchen <marc <at> nieper-wisskirchen.de>
Cc: 33305 <at> debbugs.gnu.org
Subject: Re: bug#33305: Guile's Autoconf macros play not well with make
 distcheck
Date: Sat, 10 Nov 2018 19:24:19 -0200
[Message part 1 (text/plain, inline)]
> ...
> There are solution though, here is an example of what I do [1].

Actually, I do this for all the projects maintain, and explain all this in detail on
the Guile-CV install page:

	https://www.gnu.org/software/guile-cv/install.html

	[ see "Install from ..." and following "Notes:" ...

David
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 6 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.