Commit graph

79254 commits

Author SHA1 Message Date
Maxime Devos
2ac898d7f8
qt-build-system: Look up the interpreter in 'inputs'.
* guix/build/qt-build-system.scm (wrap-all-programs): Pass
  the shell interpreter from 'inputs' to 'wrap-program' using
  'search-input-file'.

Partially-Fixes: <https://issues.guix.gnu.org/47869>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-06-04 22:34:32 +02:00
Maxime Devos
5b24cbee31
python-build-system: Look up the interpreter in 'inputs'.
* guix/build/python-build-system.scm (wrap): Pass the shell
  interpreter from 'inputs' to 'wrap-program' using 'search-input-file'.

Partially-Fixes: <https://issues.guix.gnu.org/47869>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-06-04 22:34:31 +02:00
Maxime Devos
1dbc3b2b0c
glib-or-gtk-build-system: Look up the interpreter in 'inputs'.
* guix/build/glib-or-gtk-build-system.scm (wrap-all-programs): Pass
  the shell interpreter from 'inputs' to 'wrap-program' using
  'search-input-file'.

Partially-Fixes: <https://issues.guix.gnu.org/47869>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-06-04 22:34:31 +02:00
Maxime Devos
5378edeab4
utils: Define ‘search-input-file’ procedure.
The procedure ‘which’ from (guix build utils)
is used for two different purposes:

  1. for finding the absolute file name of a binary
     that needs to run during the build process

  2. for finding the absolute file name of a binary,
     for the target system (as in --target=TARGET),
     e.g. for substituting sh->/gnu/store/.../bin/sh,
     python->/gnu/store/.../bin/python.

When compiling natively (target=#f in Guix parlance),
this is perfectly fine.

However, when cross-compiling, there is a problem.
"which" looks in $PATH for binaries.  That's good for purpose (1),
but incorrect for (2), as the $PATH contains binaries from native-inputs
instead of inputs.

This commit defines a ‘search-input-file’ procedure. It functions
like 'which', but instead of searching in $PATH, it searches in
the 'inputs' of the build phase, which must be passed to
‘search-input-file’ as an argument. Also, the file name must
include "bin/" or "sbin/" as appropriate.

* guix/build/utils.scm (search-input-file): New procedure.
* tests/build-utils.scm
  ("search-input-file: exception if not found")
  ("search-input-file: can find if existent"): Test it.
* doc/guix.texi (File Search): Document it.

Partially-Fixes: <https://issues.guix.gnu.org/47869>
Co-Authored-By: Ludovic Courtès <ludo@gnu.org>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-06-04 22:34:26 +02:00
Maxime Devos
8b0899963f
utils: Allow overriding the shell interpreter in ‘wrap-program’.
Previously, when creating new wrappers, 'wrap-program' would search
for an interpreter to use in PATH. However, this is incorrect when
cross-compiling. Allow overriding the shell interpreter to use,
via an optional keyword argument #:sh.

In time, when all users of 'wrap-program' have been corrected,
this keyword argument can be made mandatory.

* guix/build/utils.scm (wrap-program): Introduce a #:sh keyword
  argument, defaulting to (which "sh"). Use this keyword argument.

Partially-Fixes: <https://issues.guix.gnu.org/47869>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-06-04 22:31:38 +02:00
Efraim Flashner
0fdf2cdef0
gnu: jemalloc: Fix building on powerpc-linux.
* gnu/packages/jemalloc.scm (jemalloc)[arguments]: Change configure-flags
so they are configurable per-architecture.
2021-06-01 16:13:53 +03:00
Efraim Flashner
9ba35475ed
gnu: guile-3.0: Fix building on powerpc-linux.
* gnu/packages/guile.scm (guile-3.0)[source]: Adjust snippet to
skip OOM-test.
[arguments]: On powerpc add a phase to adjust the compile flags during
the bootstrap process. Add phase to skip known failing test.
2021-05-28 13:44:26 +03:00
Ludovic Courtès
d92ee0a8bd
guile: Leave 'scm_install_gmp_memory_functions' unchanged.
Since the switch to Guile 3.0.7 using mini-GMP, we can leave
'scm_install_gmp_memory_functions' to its default value, which is to use
custom memory allocators; there is no interference with users of GMP
such as GnuTLS/Nettle.

* gnu/packages/aux-files/guile-launcher.c (main) [!SCM_ENABLE_MINI_GMP]:
Leave 'scm_install_gmp_memory_functions' unchanged.
2021-05-25 22:17:38 +02:00
Mathieu Othacehe
e4c02ac70f
ci: Add derivation inputs.
* gnu/ci.scm (derivation->job): Add the derivation inputs to the job
association list.
2021-05-25 14:47:16 +02:00
Efraim Flashner
42162c84dc
gnu: mesa: Unify custom phases.
* gnu/packages/gl.scm (mesa)[arguments]: Rewrite custom
'disable-failing-test phases to be one joint phase. Adjust
'split-outputs phase to simplify.
2021-05-24 10:10:06 +03:00
Efraim Flashner
c2eb36790f
gnu: mesa: Add support for powerpc-linux.
* gnu/packages/gl.scm (mesa)[inputs]: Add llvm, glslang for powerpc.
[arguments]: Customize the configure flags for powerpc. Add powerpc
specific phase to skip failing tests.
2021-05-23 22:23:43 +03:00
Efraim Flashner
62282ff40b
gnu: binutils: Fix bug in test suite in libiberty.
* gnu/packages/base.scm (binutils)[source]: Add patch.
* gnu/packages/patches/binutils-libiberty-endianness-bug.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
2021-05-23 22:23:34 +03:00
Efraim Flashner
dc25a9dfa8
gnu: gcc-boot0: Use 128-bit long-double on powerpc-linux.
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: Adjust
configure-flag to also use '--with-long-double-128' on powerpc-linux.
2021-05-23 22:23:27 +03:00
Efraim Flashner
cbdb7d4fea
gnu: bootstrap: Add support for powerpc-linux.
On 923bb70a1b
   gnu:glibc-for-bootstrap: Fix patch.

Run
    ./pre-inst-env guix build --target=powerpc-linux-gnu bootstrap-tarballs

Producing

    /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0

With guix hash -rx /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0

    02xx2ydj28pwv3vflqffinpq1icj09gzi9icm8j4bwc4lca9irxn

* gnu/packages/bootstrap.scm (%bootstrap-executables): Add entries for
powerpc-linux.
(%bootstrap-guile-hash, %bootstrap-coreutils&co, %bootstrap-binutils,
%bootstrap-glibc, %bootstrap-gcc): Add entry for powerpc-linux.
* gnu/packages.scm (%supported-systems): Add powerpc-linux.
(%hydra-supported-systems): Remove powerpc-linux.
* m4/guix.m4: Add powerpc-linux as a supported system.
2021-05-23 22:23:18 +03:00
Marius Bakke
0de7945dc4
gnu: python-pyflakes: Remove obsolete patch.
This patch was added on 'core-updates' in
43c889de85, but no longer necessary since the
update to 2.3.1 in 91741db539.

* gnu/packages/patches/python-pyflakes-fix-tests.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/python-xyz.scm (python-pyflakes)[source](patches): Remove.
2021-05-22 20:03:24 +02:00
Marius Bakke
9df9a878c0
gnu: python-tqdm: Update to 4.60.0.
* gnu/packages/python-xyz.scm (python-tqdm): Update to 4.60.0.
[native-inputs]: Remove PYTHON-NOSE.  Add PYTHON-PYTEST,
PYTHON-PYTEST-ASYNCIO, PYTHON-PYTEST-TIMEOUT, PYTHON-SETUPTOOLS-SCM, and
PYTHON-TOML.
[arguments]: Use pytest instead of nosetests in check phase.
2021-05-22 20:03:24 +02:00
Marius Bakke
3ef5ee3ffb
gnu: Remove 'texlive-amsfonts/patched'.
* gnu/packages/tex.scm (texlive-amsfonts)[arguments]: Add the fix from
'texlive-amsfonts/patched'.
(texlive-amsfonts/patched): Remove variable.
* gnu/packages/python-xyz.scm (python-nbconvert)[native-inputs]: Change from
TEXLIVE-AMSFONTS/PATCHED to TEXLIVE-AMSFONTS.
2021-05-22 20:03:24 +02:00
Marius Bakke
69b048bf62
gnu: guile-static: Fix build without GMP.
* gnu/packages/make-bootstrap.scm (make-guile-static)[arguments]: Add
"--enable-mini-gmp" to #:configure-flags.
2021-05-22 17:28:37 +02:00
Marius Bakke
986e9025a5
gnu: guile-static: Remove obsolete workaround.
* gnu/packages/make-bootstrap.scm (make-guile-static)[arguments]: Don't
disable JIT on ARMv7.
2021-05-22 17:28:37 +02:00
Marius Bakke
4ea6852c5f
Merge branch 'master' into core-updates 2021-05-22 17:21:57 +02:00
Marius Bakke
d4ffa96302
gnu: autotrace: Prepare for GLib 2.68 and later.
* gnu/packages/patches/autotrace-glib-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/graphics.scm (autotrace)[source](patches): New field.
2021-05-22 17:14:17 +02:00
Marius Bakke
fcf45f8d75
gnu: emacs-libgit: Fix installation failure.
* gnu/packages/emacs-xyz.scm (emacs-libgit)[arguments]: Adjust for renamed
source directory.  While at it, removing trailing #t's.
2021-05-22 17:08:15 +02:00
Marius Bakke
2ae0c5d920
gnu: wget: Update to 1.21.1.
* gnu/packages/wget.scm (wget): Update to 1.21.1.
2021-05-22 17:08:15 +02:00
Marius Bakke
8ce6cea907
gnu: gtk-doc: Remove obsolete workaround.
* gnu/packages/gtk.scm (gtk-doc)[arguments]: Remove set-HOME phase.
2021-05-22 17:08:15 +02:00
Marius Bakke
cf45cc2ffb
gnu: libxaw: Update to 1.0.14.
* gnu/packages/xorg.scm (libxaw): Update to 1.0.14.
2021-05-22 17:08:15 +02:00
Marius Bakke
ba8dd0cdd4
gnu: libxt: Update to 1.2.1.
* gnu/packages/xorg.scm (libxt): Update to 1.2.1.
* gnu/packages/patches/libxt-guix-search-paths.patch: Adjust context.
2021-05-22 17:08:15 +02:00
Marius Bakke
a96a9934b5
gnu: xkeyboard-config: Update to 2.32.
* gnu/packages/xorg.scm (xkeyboard-config): Update to 2.32.
2021-05-22 17:08:15 +02:00
Marius Bakke
dca6c3782e
gnu: libxfixes: Update to 6.0.0.
* gnu/packages/xorg.scm (libxfixes): Update to 6.0.0.
2021-05-22 17:08:14 +02:00
Marius Bakke
5c971de2b8
gnu: libxres: Update to 1.2.1.
* gnu/packages/xorg.scm (libxres): Update to 1.2.1.
2021-05-22 17:08:14 +02:00
Marius Bakke
6642195f15
gnu: xorgproto: Update to 2021.4.
* gnu/packages/xorg.scm (xorgproto): Update to 2021.4.
2021-05-22 17:08:14 +02:00
Marius Bakke
ea782f98d9
gnu: util-macros: Update to 1.19.3.
* gnu/packages/xorg.scm (util-macros): Update to 1.19.3.
2021-05-22 17:08:14 +02:00
Marius Bakke
4250b256d7
gnu: doxygen: Update to 1.9.1.
* gnu/packages/patches/doxygen-1.8.17-runtests.patch,
gnu/packages/patches/doxygen-test.patch: Delete files.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/documentation.scm (doxygen): Update to 1.9.1.
[source](patches): Remove.
[home-page]: Use HTTPS.
[arguments]: Disable bibtex test with a phase instead of patch.
2021-05-22 17:08:14 +02:00
Marius Bakke
42db0f4e33
gnu: SWIG: Update to 4.0.2.
* gnu/packages/swig.scm (swig): Update to 4.0.2.
[arguments]: Remove.
2021-05-22 17:08:14 +02:00
Marius Bakke
6daa0b5af3
gnu: Tcl/Tk: Update to 8.6.11.
* gnu/packages/patches/tcl-fix-cross-compilation.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/tcl.scm (tcl): Update to 8.6.11.
[source](patches): Remove.
[arguments]: Remove trailing #t's.
(tk): Update to 8.6.11.1.
[arguments]: Remove trailing #t's and reindent.
2021-05-22 17:08:14 +02:00
Marius Bakke
4119775de1
gnu: libuv: Update to 1.41.0.
* gnu/packages/libevent.scm (libuv): Update to 1.41.0.
[native-inputs]: Change from AUTOCONF-WRAPPER to AUTOCONF.
2021-05-22 17:08:14 +02:00
Marius Bakke
46f2d25b09
gnu: libfaketime: Use absolute 'date' reference.
* gnu/packages/check.scm (libfaketime)[inputs]: Add COREUTILS.
[arguments]: Add phase to substitute the absolute 'date' file name.
2021-05-22 17:08:14 +02:00
Marius Bakke
b3338f10c4
gnu: help2man: Update to 1.48.3.
* gnu/packages/man.scm (help2man): Update to 1.48.3.
2021-05-22 17:08:14 +02:00
Marius Bakke
5d3ac92cc7
gnu: automake: Remove unnecessary conditional.
* gnu/packages/autotools.scm (automake)[inputs]: Add all unconditionally.
2021-05-22 17:08:14 +02:00
Marius Bakke
1496bb5c10
gnu: autoconf: Remove unnecessary conditional.
* gnu/packages/autotools.scm (autoconf-2.69)[inputs]: Add all
unconditionally.
2021-05-22 17:08:14 +02:00
Marius Bakke
b08d989045
gnu: boost: Update to 1.76.0.
* gnu/packages/patches/boost-fix-transitive-linking.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/boost.scm (boost): Update to 1.76.0.
[source](patches): Remove.
2021-05-22 17:08:14 +02:00
Marius Bakke
52f4ba9617
gnu: util-linux: Disable setarch test on all architectures.
* gnu/packages/linux.scm (util-linux)[arguments]: Don't make the
disable-setarch-test phase conditional.  While at it, remove trailing #t's.
2021-05-22 17:08:13 +02:00
Marius Bakke
11284cb321
gnu: gfortran: Remove obsolete workaround.
* gnu/packages/gcc.scm (gfortran): Use GCC directly.
2021-05-22 17:08:13 +02:00
Marius Bakke
b4bf509785
gnu: zstd: Update to 1.5.0.
* gnu/packages/compression.scm (zstd): Update to 1.5.0.
[arguments]: Remove obsolete phase.
2021-05-22 17:08:13 +02:00
Marius Bakke
bd6cb1d4eb
gnu: ninja: Update to 1.10.2.
* gnu/packages/ninja.scm (ninja): Update to 1.10.2.
[arguments]: Remove trailing #t's.
2021-05-22 17:08:13 +02:00
Marius Bakke
13ee1b9ea0
gnu: meson: Update to 0.58.0.
* gnu/packages/build-tools.scm (meson): Update to 0.58.0.
[source](patches): New field.
2021-05-22 17:08:13 +02:00
Marius Bakke
dfd6ca1908
gnu: Meson: Remove special versions.
* gnu/packages/audio.scm (lv2-speech-denoiser, libaudec)[arguments]: Remove
 #:meson.
* gnu/packages/build-tools.scm (meson): Update to 0.57.2.
(meson-0.55, meson-next): Remove variables.
* gnu/packages/datastructures.scm (tllist)[arguments]: Remove.
* gnu/packages/fontutils.scm (fcft)[arguments]: Likewise.
* gnu/packages/gimp.scm (babl, gegl)[arguments]: Remove #:meson.
* gnu/packages/gtk.scm (gdk-pixbuf)[arguments]: Likewise.
* gnu/packages/lua.scm (emilua)[arguments]: Likewise.
* gnu/packages/music.scm (zrythm)[arguments]: Likewise.
* gnu/packages/terminals.scm (foot)[arguments]: Likewise.
* gnu/packages/virtualization.scm (qemu)[native-inputs]: Change from
MESON-NEXT to MESON.
(libvirt)[arguments]: Remove #:meson.
* gnu/packages/wm.scm (wlroots, sway)[arguments]: Likewise.
2021-05-22 17:08:13 +02:00
Marius Bakke
c52eddc70f
gnu: gtkmm: Fix build failure.
* gnu/packages/gtk.scm (gtkmm)[native-inputs]: Add GLIB:BIN.
[propagated-inputs]: Change ATKMM to ATKMM-2.28 and PANGOMM to PANGOMM-2.46.
* gnu/packages/gtk.scm (gtkmm-2)[native-inputs]: Don't inherit from GTKMM.
2021-05-22 17:08:13 +02:00
Marius Bakke
0d2e7dee17
gnu: pangomm@2.42: Update to 2.46.0.
* gnu/packages/gtk.scm (pangomm-2.42): Rename to ...
(pangomm-2.46): ... this.  Update to 2.46.0.
(gtkmm-2)[propagated-inputs]: Adjust accordingly.
2021-05-22 17:08:13 +02:00
Marius Bakke
200ddf3aa3
gnu: cairomm@1.13: Update to 1.14.2.
* gnu/packages/gtk.scm (cairomm-1.13): Rename to ...
(cairomm-1.14): ... this.  Update to 1.14.2.
[build-system, arguments]: Remove.
(pangomm-2.42, gtkmm-2)[propagated-inputs]: Adjust for variable rename.
2021-05-22 17:08:13 +02:00
Marius Bakke
f20de6161b
gnu: ATLAS: Fix build with GCC 10.
* gnu/packages/patches/atlas-gfortran-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/maths.scm (atlas)[source](patches): New field.
2021-05-22 17:08:13 +02:00