Commit graph

84379 commits

Author SHA1 Message Date
Raghav Gururajan
ef5b32310b
gnu: Add gtk.
* gnu/packages/gtk.scm (gtk): New variable.
* gnu/packages/patches/gtk4-respect-GUIX_GTK4_PATH.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
2021-10-02 10:54:13 +00:00
Mathieu Othacehe
26117f0d57
gnu: vulkan-loader: Fix include path location.
* gnu/packages/vulkan.scm (vulkan-loader)[arguments]<#:configure-flags>: Point
to the vulkan-headers package that contains the include files.
[native-inputs]: Move vulkan-headers from here ...
[inputs]: ... to here.
2021-10-02 10:54:13 +00:00
Ricardo Wurmus
63c7bb62c4
gnu: 389-ds-base: Substitute more tool references.
* gnu/packages/openldap.scm (389-ds-base)[arguments]: Substitute references to
"ip" and "openssl".
[inputs]: Add iproute.
2021-10-01 22:09:26 +02:00
Thiago Jung Bauermann
ed756b4709
gnu: gdb-9.2: Fix build with GCC 10 on powerpc64le-linux.
* gnu/packages/patches/gdb-9.2-sim-ppc-fno-common.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/gdb.scm (gdb-9.2)[source]: Use it.
2021-10-01 09:42:54 +00:00
Ricardo Wurmus
a76232340a
gnu: gnumach: Add -fcommon to GCC flags.
* gnu/packages/hurd.scm (gnumach)[arguments]: Add -fcommon GCC flag.
2021-09-30 22:32:07 +02:00
Ricardo Wurmus
51a9b8fd8f
gnu: 389-ds-base: Update to 1.4.4.17.
* gnu/packages/openldap.scm (389-ds-base): Update to 1.4.4.17.
[source]: Use release tarball from Github.
[arguments]: Remove wrapping of readnsstate.
2021-09-30 15:32:35 +02:00
Ricardo Wurmus
6cd6b0abe7
gnu: 389-ds-base: Restore definition of pythondir.
* gnu/packages/openldap.scm (389-ds-base)[arguments]: Import python-version
from (guix build python-build-system); define pythondir before using it in
fix-install-location-of-python-tools.
2021-09-30 15:32:35 +02:00
Ludovic Courtès
2bec19199e
style: Really honor '--input-simplification=always'.
* guix/scripts/style.scm (simplify-package-inputs): Use (const #t) when
POLICY is 'always.
2021-09-30 00:06:30 +02:00
Ludovic Courtès
b00fbabdf6
gnu: guile: Use 'modify-inputs' where appropriate.
* gnu/packages/guile.scm (guile-3.0)[propagated-inputs]: Use
'modify-inputs'.
(guile-3.0/libgc-7)[propagated-inputs]: Likewise.
(guile-for-guile-emacs)[native-inputs]: Likewise.
* gnu/packages/make-bootstrap.scm (make-guile-static): Likewise.
2021-09-30 00:06:30 +02:00
Ludovic Courtès
f17517d6c8
gnu: skribilo: Disable tests.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Pass #:tests? #f.
2021-09-30 00:06:30 +02:00
Ludovic Courtès
da8be73d5b
gnu: guile-static: Disable JIT on GNU/Hurd.
* gnu/packages/make-bootstrap.scm (make-guile-static): Pass
"--disable-jit" when targeting GNU/Hurd.
2021-09-30 00:06:30 +02:00
Ludovic Courtès
191c1992b8
gnu: make-bootstrap: Remove more input labels.
* gnu/packages/make-bootstrap.scm (%binutils-static-stripped)[inputs]:
Remove.
[arguments]: Turn #:builder into a gexp.
(%mes-minimal-stripped)[inputs]: Remove.
[arguments]: Turn #:builder into a gexp.
(make-guile-static-stripped): Likewise.
2021-09-30 00:06:29 +02:00
Ludovic Courtès
26d31db742
gnu: make-bootstrap: Remove input labels.
* gnu/packages/make-bootstrap.scm (%static-inputs): Remove labels.
(%static-binaries)[arguments]: Special-case 'name' for "bash-static".
(%linux-libre-headers-stripped)[inputs]: Remove label.
(%mes-minimal)[native-inputs]: Remove label.
(tarball-package)[native-inputs]: Remove labels.
[inputs]: Remove.
[arguments]: Rewrite as a gexp.
(%bootstrap-tarballs)[inputs]: Remove labels.
2021-09-30 00:06:29 +02:00
Mathieu Othacehe
b77782f702
gnu: guile-email: Fix build.
* gnu/packages/patches/guile-email-fix-tests.patch: New file.
* gnu/local.mk (DIST_PATCH_DATA): Add it.
* gnu/packages/guile-xyz.scm (guile-email): Use it.
2021-09-29 12:59:38 +00:00
Efraim Flashner
8d02c2c39e
gnu: mariadb: Update to 10.5.12.
* gnu/packages/databases.scm (mariadb): Update to 10.5.12.
[source]: Remove patches.
[arguments]: In custom 'adjust-tests phase, update list of skipped
tests. Also remove tests already listed in mysql-test/unstable-tests.
* gnu/packages/patches/mariadb-CVE-2021-27928.patch,
gnu/packages/patches/mariadb-cmake-compat.patch: Remove files.
* gnu/local.mk (dist_patch_DATA): Remove them.
2021-09-29 11:00:32 +03:00
Efraim Flashner
b1ef2deb66
gnu: mariadb: Honor parallel-tests?.
* gnu/packages/databases.scm (mariadb)[arguments]: In custom 'check
phase honor #:parallel-tests? flag.
2021-09-29 10:04:45 +03:00
Ludovic Courtès
acbce4ea41
gnu: guile-xapian: Fix compilation with Guile 3.0.7.
* gnu/packages/guile-xyz.scm (guile-xapian)[source]: Add 'modules' and
'snippet'.
2021-09-28 23:57:33 +02:00
Thiago Jung Bauermann
106181c0a0
gnu: make-bootstrap: Enable tests in static gawk build.
The tests were disabled because gawk’s extension mechanism doesn’t work
when it’s built statically, and some tests fail because of that.

Another alternative is to disable the extension mechanism during
configuration time, which causes the testsuite to pass again.

* gnu/packages/make-bootstrap.scm (%static-inputs)[gawk]<#:tests?>: Remove.
<#:configure-flags>: Add.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-09-28 23:45:01 +02:00
Ludovic Courtès
7d30e6e5c2
gnu: make-bootstrap: Allow compilation of the statically-link gawk.
Previously, linking would fail due to the '-fno-common' default in GCC 10:

  ld: /gnu/store/…-glibc-2.33-static/lib/libc.a(getopt.o): in function `_getopt_internal_r':
  (.text+0x6e0): multiple definition of `_getopt_internal_r'; support/libsupport.a(getopt.o):/tmp/guix-build-gawk-5.1.0.drv-0/gawk-5.1.0/support/getopt.c:404: first defined here
  ld: /gnu/store/…-glibc-2.33-static/lib/libc.a(getopt.o): in function `_getopt_internal':

Reported by Thiago Jung Bauermann <bauermann@kolabnow.com>.

* gnu/packages/make-bootstrap.scm (%static-inputs) <gawk>: Remove
getopt.o from libsupport.a.
2021-09-28 23:45:00 +02:00
Mathieu Othacehe
3f78935275
gnu: freetalk: Fix build.
* gnu/packages/messaging.scm (freetalk)[arguments]: Pass the -fcommon flag to
fix the build with GCC 10.
2021-09-28 12:44:46 +00:00
Mathieu Othacehe
26cb0c3960
gnu: syslinux: Fix build.
* gnu/packages/patches/syslinux-gcc10.patch: New file.
* gnu/packages/patches/syslinux-strip-gnu-property.patch: New file.
* gnu/local.mk (DIST_PATCH_DATA): Add them.
* gnu/packages/bootloaders.scm (syslinux)[source]: Use them.
[arguments]: Only strip debug symbols.
2021-09-28 12:39:30 +00:00
Mathieu Othacehe
81a34a90d7
doc: Update postgresql defaut socket directory.
This is a follow-up of: 502925655d.

* doc/guix.texi (Database Services): Update the PostgreSQL default socket
directory value.
2021-09-27 20:28:21 +00:00
Mathieu Othacehe
d27e871ebb
tests: base: Fix the screendump test.
* gnu/tests/base.scm (run-basic-test): Look for the screendump capture where
it has been saved, in the output directory.
2021-09-27 20:07:16 +00:00
Mathieu Othacehe
98a62011b0
gnu: foomatic-filters: Fix build.
* gnu/packages/cups.scm (foomatic-filters)[arguments]: Pass the -fcommon flag
to fix compilation with GCC 10.
2021-09-27 19:47:38 +00:00
Mathieu Othacehe
502925655d
services: database: Change postgresql default socket.
Adapt to the postgresql default socket directory set to /var/run/postgresql.

* gnu/services/databases.scm (<postgresql-config-file>)[socket-directory]: Set
to /var/run/postgresql.
(<postgresql-role-configuration>): Ditto.
* gnu/tests/databases.scm (run-postgresql-test): Adapt it.
2021-09-27 19:22:56 +00:00
Maxime Devos
02c4344554
gnu: gusb: Don't build introspection data when cross-compiling.
This fixes a configure error when cross-compiling and doesn't
cause any rebuilds.

* gnu/packages/gnome.scm (gusb)[arguments]<#:configure-flags>:
  Set 'introspection' and 'vapi' to false.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-09-27 18:36:00 +00:00
Maxime Devos
38df0c0334
gnu: libxvmc: Pass --disable-malloc0returnsnull when cross-compiling.
This fixes a configure error when cross-compiling and doesn't
cause any rebuilds.

* gnu/packages/xorg.scm (libxvmc)[arguments]<#:configure-flags>:
  Add malloc0flags.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-09-27 18:36:00 +00:00
Maxime Devos
4b339c7e3d
gnu: libxv: Pass --disable-malloc0returnsnull when cross-compiling.
This fixes a configure error when cross-compiling and doesn't
cause any rebuilds.

* gnu/packages/xorg.scm (libxv)[arguments]<#:configure-flags>:
  Add malloc0flags.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-09-27 18:36:00 +00:00
Maxime Devos
afdeef0dcb
gnu: xev: Pass --disable-malloc0returnsnull when cross-compiling.
This fixes a configure error when cross-compiling and doesn't
cause any rebuilds.

* gnu/packages/xorg.scm (xev)[arguments]<#:configure-flags>:
  Add malloc0flags.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-09-27 18:36:00 +00:00
Maxime Devos
211c3ac423
gnu: llvm: Let it cross-compile.
The derivation when compiling natively remains the same,
so this doesn't cause any rebuilds.

* gnu/packages/llvm.scm (llvm-12)[arguments]<#:configure-flags>: Set
  LLVM_TABLEGEN, LLVM_DEFAULT_TARGET_TRIPLE, LLVM_TARGET_ARCH and
  LLVM_TARGETS_TO_BUILD when cross-compiling.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-09-27 18:36:00 +00:00
Maxime Devos
de47a6e13b
gnu: pkg-config: Fix typo in search paths.
* gnu/packages/pkg-config.scm
  (pkg-config-for-build)[native-search-paths]: Use "PKG_CONFIG_PATH_FOR_BUILD"
  instead of "PKG_CONFIG_PATH".

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-09-27 18:36:00 +00:00
Ludovic Courtès
7c5f01d556
ci: Adjust 'channel-build-system' to monadic style.
* gnu/ci.scm (channel-build-system): Adjust to new monadic style.
2021-09-27 17:55:53 +02:00
Ludovic Courtès
4bd69850df
packages: Use 'guile-for-grafts' for grafting.
The call to 'guile-for-grafts' had been inadvertently replaced by a call
to 'default-guile' in commit 9e5812ac59.
Unfortunately Guile 3.0.7 still occasionally segfaults while grafting
so we still need 2.0 here.

* guix/packages.scm (package->derivation, package->cross-derivation):
Use 'guile-for-grafts' instead of 'default-guile'.
2021-09-27 17:55:53 +02:00
Efraim Flashner
8e220c2332
gnu: python-graphql-relay: Enable tests.
* gnu/packages/python-xyz.scm (python-graphql-relay)[arguments]: Use
custom 'check phase.
[native-inputs]: Add python-pytest, python-pytest-asyncio.
2021-09-27 08:57:15 +03:00
Efraim Flashner
e187ce20d2
gnu: python-graphql-relay: Update to 3.1.0.
* gnu/packages/python-xyz.scm (python-graphql-relay): Update to 3.1.0.
[propagated-inputs]: Remove python-promise and python-six.
2021-09-27 08:51:00 +03:00
Ludovic Courtès
9980ac0f99
marionette: Print a line when a test succeeds.
* gnu/build/marionette.scm (system-test-runner): Add call to
'test-runner-on-test-end!'.
2021-09-26 23:35:58 +02:00
Ludovic Courtès
89b0544293
tests: Reduce boilerplate for users of 'system-test-runner'.
* gnu/tests/audio.scm, gnu/tests/base.scm, gnu/tests/ci.scm,
gnu/tests/cups.scm, gnu/tests/databases.scm, gnu/tests/desktop.scm,
gnu/tests/dict.scm, gnu/tests/docker.scm, gnu/tests/file-sharing.scm,
gnu/tests/ganeti.scm, gnu/tests/guix.scm, gnu/tests/ldap.scm,
gnu/tests/linux-modules.scm,
gnu/tests/mail.scm, gnu/tests/messaging.scm, gnu/tests/monitoring.scm,
gnu/tests/networking.scm, gnu/tests/nfs.scm,
gnu/tests/package-management.scm, gnu/tests/reconfigure.scm,
gnu/tests/rsync.scm, gnu/tests/security-token.scm,
gnu/tests/singularity.scm, gnu/tests/ssh.scm, gnu/tests/telephony.scm,
gnu/tests/version-control.scm, gnu/tests/virtualization.scm,
gnu/tests/web.scm: Remove (mkdir #$output) (chdir #$output) and
pass #$output as argument to 'system-test-runner'.
2021-09-26 23:20:56 +02:00
Ludovic Courtès
7d72829448
marionette: 'system-test-runner' can create output directory.
* gnu/build/marionette.scm (system-test-runner): Take optional
'log-directory' parameter.  Add 'test-begin' handler and honor
LOG-DIRECTORY.
2021-09-26 23:10:29 +02:00
Ludovic Courtès
9b9bfc7ac2
marionette: 'system-test-runner' dumps test log upon failure.
* gnu/build/marionette.scm (system-test-runner): In 'test-end' handler,
when SUCCESS? is false, dump log content to the current error port.
2021-09-26 23:09:23 +02:00
Ludovic Courtès
c6a8d6db77
gnu: texlive: Remove remaining uses of deprecated packages.
This is a followup to b949f34f31 and
7269f0c1b2.

* gnu/packages/tex.scm (texlive-hyperref)[propagated-inputs]: Use
TEXLIVE-URL instead of TEXLIVE-LATEX-URL.
(texlive-pdftex)[propagated-inputs]: Use TEXLIVE-KNUTH-LIB instead of
TEXLIVE-FONTS-KNUTH-LIB.
(texlive-context)[propagated-inputs]: Use TEXLIVE-STMARYRD instead of
TEXLIVE-FONTS-STMARYRD.
2021-09-25 18:52:05 +02:00
Ludovic Courtès
afe8c67ac1
union: Do not warn about "ld.so.cache" collisions.
This is a followup to f85efa86e7.

* guix/build/union.scm (%harmless-collisions): Add "ld.so.cache".
2021-09-25 18:52:05 +02:00
Ludovic Courtès
1fb75128a5
tests: Adjust to SRFI-64 as found in Guile 3.0.7.
In Guile 3.0.7, 'test-runner-current' is set to #f upon 'test-end'.
Consequently, the previous strategy, where we'd call
'test-runner-current' after 'test-end', no longer works.  Instead, set
the test runner in each test right before 'test-begin'.

* gnu/build/marionette.scm (system-test-runner): New procedure.
* gnu/tests/audio.scm (run-mpd-test): Replace (exit (= ...)) idiom
by (test-runner-current (system-test-runner)).
* gnu/tests/base.scm (run-basic-test)
(run-cleanup-test, run-mcron-test, run-nss-mdns-test): Likewise.
* gnu/tests/ci.scm (run-laminar-test): Likewise.
* gnu/tests/cups.scm (run-cups-test): Likewise.
* gnu/tests/databases.scm (run-memcached-test)
(run-postgresql-test, run-mysql-test): Likewise.
* gnu/tests/desktop.scm (run-elogind-test): Likewise.
* gnu/tests/dict.scm (run-dicod-test): Likewise.
* gnu/tests/docker.scm (run-docker-test): Likewise.
(run-docker-system-test): Likewise.
* gnu/tests/file-sharing.scm (run-transmission-daemon-test): Likewise.
* gnu/tests/ganeti.scm (run-ganeti-test): Likewise.
* gnu/tests/guix.scm (run-guix-build-coordinator-test): Likewise.
(run-guix-data-service-test): Likewise.
* gnu/tests/ldap.scm (run-ldap-test): Likewise.
* gnu/tests/linux-modules.scm (run-loadable-kernel-modules-test-base): Likewise.
* gnu/tests/mail.scm (run-opensmtpd-test)
(run-exim-test, run-dovecot-test, run-getmail-test): Likewise.
* gnu/tests/messaging.scm (run-xmpp-test)
(run-bitlbee-test, run-quassel-test): Likewise.
* gnu/tests/monitoring.scm (run-prometheus-node-exporter-server-test)
(run-zabbix-server-test): Likewise.
* gnu/tests/networking.scm (run-inetd-test, run-openvswitch-test)
(run-dhcpd-test, run-tor-test, run-iptables-test, run-ipfs-test): Likewise.
* gnu/tests/nfs.scm (run-nfs-test)
(run-nfs-server-test, run-nfs-root-fs-test): Likewise.
* gnu/tests/package-management.scm (run-nix-test): Likewise.
* gnu/tests/reconfigure.scm (run-switch-to-system-test)
(run-upgrade-services-test, run-install-bootloader-test): Likewise.
* gnu/tests/rsync.scm (run-rsync-test): Likewise.
* gnu/tests/security-token.scm (run-pcscd-test): Likewise.
* gnu/tests/singularity.scm (run-singularity-test): Likewise.
* gnu/tests/ssh.scm (run-ssh-test): Likewise.
* gnu/tests/telephony.scm (run-jami-test): Likewise.
* gnu/tests/version-control.scm (run-cgit-test): Likewise.
(run-git-http-test, run-gitolite-test, run-gitile-test): Likewise.
* gnu/tests/virtualization.scm (run-libvirt-test, run-childhurd-test): Likewise.
* gnu/tests/web.scm (run-webserver-test, run-php-fpm-test)
(run-hpcguix-web-server-test, run-tailon-test, run-patchwork-test): Likewise.
2021-09-25 18:52:05 +02:00
Ludovic Courtès
df46bef48e
gexp: Leave grafting as is when lowering allowed/disallowed references.
Fixes <https://issues.guix.gnu.org/50676>.
Reported by Mathieu Othacehe <othacehe@gnu.org>.

Commit a779363b6a was partially incorrect:
references passed to #:allowed-references or #:references-graphs *can*
be lowered as references to grafted elements.  This is for example the
case when doing:

  (computed-file "partition.img" exp
                  #:options `(#:references-graphs ,inputs))

Here INPUTS must be lowered as a reference to suitably grafted elements.
Failing to do that, the reference graph will not match the actual
INPUTS.

However, when building a package, those references must indeed refer
only to ungrafted packages.  This commit preserves that by having build
systems pass #:graft? #f.

* guix/gexp.scm (lower-reference-graphs, lower-references): Remove uses
of 'without-grafting'.  This reverts
a779363b6a.
* guix/build-system/cmake.scm (cmake-build, cmake-cross-build):
Pass #:graft? #f.
* guix/build-system/glib-or-gtk.scm (glib-or-gtk-build)
(glib-or-gtk-cross-build): Likewise.
* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Likewise.
* guix/build-system/meson.scm (meson-build, meson-cross-build): Likewise.
* guix/build-system/trivial.scm (trivial-build, trivial-cross-build):
Likewise.
* tests/gexp.scm ("lower-object, computed-file + grafts"): New test.
* tests/packages.scm ("trivial with #:allowed-references + grafts"): New
test.
2021-09-25 00:41:32 +02:00
Ludovic Courtès
9fbe4b88c2
gnu: emacs-geiser-guile: Depend on Guile 3.0.
* gnu/packages/emacs-xyz.scm (emacs-geiser-guile)[inputs]: Depend on GUILE-3.0.
2021-09-24 16:59:00 +02:00
Ludovic Courtès
9b09a753a9
gnu: guile@2.2: Build with '-fexcess-precision=standard' on i686.
* gnu/packages/guile.scm (guile-2.2)[arguments]: New field.
(guile-3.0)[arguments]: Inherit arguments from GUILE-2.0 instead of GUILE-2.2
2021-09-24 16:57:31 +02:00
Ludovic Courtès
5b674fe5c3
gnu: glib: Actually skip tests that fail on i686.
* gnu/packages/glib.scm (glib)[arguments]: In 'disable-failing-tests'
phase, when 'target-x86-32?' returns true, skip several tests in
timer.c.
2021-09-22 16:37:04 +02:00
Mathieu Othacehe
d58e52b071
installer: keymap: Fix optional fields handling.
Fixes: <https://issues.guix.gnu.org/50723>.

The keymap xml contains optional shortDescription and description fields. The
assoc-ref call on those fields can return false, handle it correctly.

* gnu/installer/keymap.scm (xkb-rules->models+layouts): Introduce a new
"maybe-empty" helper to deal with optional fields. Use it for shortDescription
and description fields.
2021-09-21 20:35:49 +00:00
Felix Gruber
a3324e5753
gnu: 4dtris: Fix build.
* gnu/packages/games.scm (4dtris)[attributes]: Add -fcommon to CFLAGS
  and use search-input-directory to find SDL include path.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-09-21 13:50:53 +00:00
Ludovic Courtès
f762d63ec0
gnu: cmake: Skip CPack TXZ test on i686.
Fixes <https://issues.guix.gnu.org/50617>.

* gnu/packages/cmake.scm (%common-build-phases): Turn into a procedure
and adjust users.  When 'target-x86-32?' returns true, add
'skip-cpack-txz-test'.
2021-09-21 10:08:35 +02:00
Ludovic Courtès
68933659cb
base32: Work around (ash x N) miscompilation at '-O1' and below.
Fixes <https://issues.guix.gnu.org/50696>.
Reported by Marius Bakke <marius@gnu.org>.

* guix/base32.scm (bit-field): Introduce 'minus-start' syntax and use it.
2021-09-21 09:45:21 +02:00