summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-10-01 10:19:47 +0200
committerLudovic Courtès <ludo@gnu.org>2020-10-05 23:19:19 +0200
commit880fe019ae64df37815bbdb1a22305f99dae759d (patch)
treedf0c8c1f4fd87af8a6abbce0142cef7e636d6dbb
parent1d4ab335b22a93e01c2eb1eb3e93fc6534157040 (diff)
build: Use a 'guile' executable that doesn't warn about locales.
This gets rid of: guile: warning: failed to install locale when running the 'guix' command on a foreign distro where 'GUIX_LOCPATH' isn't set. * Makefile.am (pkglibexec_PROGRAMS, guile_SOURCES, guile_LDADD) (guile_CFLAGS): New variables. (install-exec-hook): New target. (AUX_FILES): Remove 'guile-launcher.c'. * configure.ac: Use 'GUILE_FLAGS'.
-rw-r--r--Makefile.am13
-rw-r--r--configure.ac3
2 files changed, 15 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 01a3dc10efa..a75d9c1ffc4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -47,6 +47,18 @@ scripts/guix: scripts/guix.in Makefile
47 $(AM_V_GEN)$(do_subst) < "$(srcdir)/$@.in" > "$@-t" 47 $(AM_V_GEN)$(do_subst) < "$(srcdir)/$@.in" > "$@-t"
48 $(AM_V_at)chmod a+x,a-w "$@-t" && mv -f "$@-t" "$@" 48 $(AM_V_at)chmod a+x,a-w "$@-t" && mv -f "$@-t" "$@"
49 49
50# This is our variant of the 'guile' executable, one that doesn't complain
51# about locales.
52pkglibexec_PROGRAMS = guile
53guile_SOURCES = gnu/packages/aux-files/guile-launcher.c
54guile_LDADD = $(GUILE_LIBS)
55guile_CFLAGS = $(GUILE_CFLAGS)
56
57# Have the 'guix' command refer to our 'guile'.
58install-exec-hook:
59 $(SED) -i "$(DESTDIR)$(bindir)/guix" \
60 -e 's,^#![[:graph:]]\+,#!$(pkglibexecdir)/guile,g'
61
50nodist_noinst_SCRIPTS = \ 62nodist_noinst_SCRIPTS = \
51 pre-inst-env \ 63 pre-inst-env \
52 test-env 64 test-env
@@ -330,7 +342,6 @@ dist_noinst_DATA = \
330 342
331# Auxiliary files for packages. 343# Auxiliary files for packages.
332AUX_FILES = \ 344AUX_FILES = \
333 gnu/packages/aux-files/guile-launcher.c \
334 gnu/packages/aux-files/chromium/master-preferences.json \ 345 gnu/packages/aux-files/chromium/master-preferences.json \
335 gnu/packages/aux-files/emacs/guix-emacs.el \ 346 gnu/packages/aux-files/emacs/guix-emacs.el \
336 gnu/packages/aux-files/linux-libre/5.8-arm.conf \ 347 gnu/packages/aux-files/linux-libre/5.8-arm.conf \
diff --git a/configure.ac b/configure.ac
index adca3746195..6861112eafa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -105,6 +105,9 @@ if test "x$GUILE_EFFECTIVE_VERSION" = "x2.2"; then
105 PKG_CHECK_MODULES([GUILE], [guile-2.2 >= 2.2.3]) 105 PKG_CHECK_MODULES([GUILE], [guile-2.2 >= 2.2.3])
106fi 106fi
107 107
108dnl Get CFLAGS and LDFLAGS for libguile.
109GUILE_FLAGS
110
108dnl Installation directories for .scm and .go files. 111dnl Installation directories for .scm and .go files.
109guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION" 112guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION"
110guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache" 113guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache"