aboutsummaryrefslogtreecommitdiff
path: root/build-aux/pre-inst-env.in
blob: cd90a06cbc70af4aacf4bfc363fd3e342a1a9c3b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh

# GNU Guix --- Functional package management for GNU
# Copyright © 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
# Copyright © 2017 Eric Bavier <bavier@cray.com>
#
# This file is part of GNU Guix.
#
# GNU Guix is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# GNU Guix is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

# Usage: ./pre-inst-env COMMAND ARG...
#
# Run COMMAND in a pre-installation environment.  Typical use is
# "./pre-inst-env guix build hello".

# By default we may end up with absolute directory names that contain '..',
# which get into $GUILE_LOAD_PATH, leading to '..' in the module file names
# recorded by Guile.  To avoid that, make sure we get a real absolute
# directory name.  Additionally, use '-P' to get the canonical directory name
# so that Guile's 'relative' %file-port-name-canonicalization can actually
# work (see <http://bugs.gnu.org/17935>.)
abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd -P`"
abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd -P`"

GUILE_LOAD_COMPILED_PATH="$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH

# Define $PATH so that `guix' and friends are easily found.

PATH="$abs_top_builddir/scripts:$abs_top_builddir:$PATH"
export PATH

# The daemon invokes 'guix'; tell it which one to use.
GUIX="$abs_top_builddir/scripts/guix"
export GUIX

# Define $GUIX_UNINSTALLED to prevent `guix' from
# prepending @guilemoduledir@ to the Guile load paths.

GUIX_UNINSTALLED=1
export GUIX_UNINSTALLED

exec "$@"
dd graphviz-2.38....* gnu/packages/graphviz.scm (graphviz-2.38): New variable. Ricardo Wurmus 2018-09-21gnu: python-pydot: Update to 1.2.4....* gnu/packages/graphviz.scm (python-pydot): Update to 1.2.4. [arguments]: Run the test suite. [native-inputs]: Add python-chardet. Tobias Geerinckx-Rice 2018-07-08gnu: python-graphviz: Update to 0.8.4....* gnu/packages/graphviz.scm (python-graphviz): Update to 0.8.4. Tobias Geerinckx-Rice 2018-05-17Merge branch 'master' into core-updatesMark H Weaver 2018-05-17gnu: python-graphviz: Update to 0.8.3....* gnu/packages/graphviz.scm (python-graphviz): Update to 0.8.3. Tobias Geerinckx-Rice 2018-04-10Merge branch 'master' into core-updatesMark H Weaver 2018-04-04gnu: Add dot2tex....* gnu/packages/graphviz.scm (dot2tex): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Mathieu Lirzin 2018-03-29Merge branch 'master' into core-updatesMarius Bakke 2018-03-25gnu: python-graphviz: Update to 0.8.2....* gnu/packages/graphviz.scm (python-graphviz): Update to 0.8.2. Tobias Geerinckx-Rice /span>Efraim Flashner 2023-02-14gnu: tar: Fix test suite on 32-bit systems....* gnu/packages/base.scm (tar)[arguments]: When building for 32-bit systems skip a test known by upstream to fail. Efraim Flashner 2023-01-30Merge remote-tracking branch 'origin/master' into core-updates... Conflicts: doc/guix.texi gnu/local.mk gnu/packages/admin.scm gnu/packages/base.scm gnu/packages/chromium.scm gnu/packages/compression.scm gnu/packages/databases.scm gnu/packages/diffoscope.scm gnu/packages/freedesktop.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/guile.scm gnu/packages/inkscape.scm gnu/packages/llvm.scm gnu/packages/openldap.scm gnu/packages/pciutils.scm gnu/packages/ruby.scm gnu/packages/samba.scm gnu/packages/sqlite.scm gnu/packages/statistics.scm gnu/packages/syndication.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm gnu/packages/xml.scm guix/build-system/copy.scm guix/scripts/home.scm Efraim Flashner 2022-11-23gnu: grep: Skip 'triple-backref' test....* gnu/packages/base.scm (grep)[arguments]: Add 'skip-triple-backref-test' phase for GNU/Hurd. Ludovic Courtès 2022-11-02gnu: coreutils: Disable the test-tls tests on the hurd....These tests seem to lead to both consistent and inconsistent failures, so marking them as XFAIL as is done with some other tests doesn't help. So this commit means that they're skipped. * gnu/packages/base.scm (coreutils)[arguments]: Disable the test-tls tests on the hurd. Christopher Baines 2022-10-30gnu: tar: Add chained renames and Directory to hurd skipped tests....* gnu/packages/base.scm (tar)[arguments]: Include chained renames and Directory in the tests skipped for when building for the hurd. Christopher Baines 2022-10-30gnu: diffutils: Add large-subopt to XFAIL_TESTS for the hurd....* gnu/packages/base.scm (diffutils)[arguments]: Add large-subopt to XFAIL_TESTS for the hurd. Christopher Baines 2022-10-30gnu: coreutils: Remove test-tls from XFAIL_TESTS for the hurd....As this test passes. * gnu/packages/base.scm (coreutils)[arguments]: Remove test-tls from XFAIL_TESTS for the hurd. Christopher Baines 2022-10-28gnu: sed: Skip failing test on GNU/Hurd....* gnu/packages/base.scm (sed)[arguments]: Add #:make-flags. Christopher Baines 2022-10-28gnu: diffutils: Skip failing test on GNU/Hurd....* gnu/packages/base.scm (diffutils)[arguments]: Add #:make-flags. * gnu/packages/commencement.scm (diffutils-boot0)[arguments]: Adjust to always use substitute-keyword-arguments. Christopher Baines 2022-10-28gnu: findutils: Skip failing test on GNU/Hurd....* gnu/packages/base.scm (findutils)[arguments]: Add #:make-flags. * gnu/packages/commencement.scm (findutils-boot0)[arguments]: Likewise. Ludovic Courtès 2022-10-28gnu: grep: Skip failing tests on GNU/Hurd....* gnu/packages/base.scm (grep)[arguments]: Add #:make-flags. Ludovic Courtès 2022-10-28gnu: coreutils: Skip failing tests on GNU/Hurd....* gnu/packages/base.scm (coreutils)[arguments]: Add "tests/df/unreadable.sh" and "test-perror2" to the 'XFAIL_TESTS' list. Ludovic Courtès 2022-10-13gnu: Add glibc-for-fhs....* gnu/packages/base.scm (glibc-for-fhs): New variable. Hidden package for use in forthcoming --emulate-fhs option for guix containers. Co-authored-by: Ludovic Courtès <ludo@gnu.org> John Kehayias 2022-09-08gnu: glibc: Update to 2.35....* gnu/packages/base.scm (glibc): Update to 2.35. [arguments]: Handle empty library files. * gnu/packages/patches/glibc-hurd-clock_gettime_monotonic.patch: Adjust for renamed file. Signed-off-by: Marius Bakke <marius@gnu.org> zamfofex 2022-09-08gnu: grep: Update to 3.8....* gnu/packages/base.scm (grep): Update to 3.8. * gnu/packages/commencement.scm (grep-mesboot)[native-inputs]: Add SED-MESBOOT. * gnu/packages/autotools.scm (libtool)[source](patches): Add patch. * gnu/packages/patches/libtool-grep-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. Marius Bakke