Commit graph

164290 commits

Author SHA1 Message Date
Zheng Junjie
0cbc920900
gnu: openjdk10: Fix build with gcc-14.
* gnu/packages/java.scm (openjdk10)[arguments]<#:phases>: Add
-Wno-error=int-conversion to with-extra-cflags.

Change-Id: I55a1166d081686b42598826899bde7a64e75f373
2025-07-18 20:17:36 +02:00
Zheng Junjie
ca2237bc54
gnu: openjdk9: Fix build with gcc-14.
* gnu/packages/java.scm (openjdk9)[arguments]<#:phases>: Add
-Wno-error=int-conversion to with-extra-cflags.
[inputs]: Replace libelf with elfutils.

Change-Id: Ic880d6b416cfd07e8e22e9037d8d8812645b3a80
2025-07-18 20:17:35 +02:00
Zheng Junjie
eb0029e103
gnu: icedtea-7: Build with gcc-13.
Fixes: guix/guix#703

* gnu/packages/java.scm (icedtea-7)[native-inputs]: Add gcc-13.

Change-Id: I2c50004d33ca85ee82fbc51f6e4456ad9b8d55c7
2025-07-18 20:17:35 +02:00
Zheng Junjie
7f0ed8d2cb
gnu: hplip: Fix build on gcc 14.
* gnu/packages/cups.scm (hplip)[arguments]<#:phases>: Also Add
-Wno-error=implicit-int to relax gcc-14's strictness.

Change-Id: If1dcaffad3e18c8070656451f3f22960f9eb4c16
2025-07-18 20:17:35 +02:00
Zheng Junjie
232af934ea
gnu: mesa-utils: Fix build for gcc-14.
* gnu/packages/gl.scm (mesa-utils)[arguments]<#:configure-flags>:
Add "CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types".

Change-Id: I21ba52e18a70c01996af45997707872528e8b55e
2025-07-18 20:17:35 +02:00
宋文武
290281b3ad
gnu: qtbase: Skip failing test.
* gnu/packages/qt.scm (qtbase)[arguments]: Skip 'tst_qdate' in the check phase.

Fixes: #709
Change-Id: I8ac55f31ab78d0ae82fd95b3f42f3ad2239be198
2025-07-18 20:17:35 +02:00
Zheng Junjie
db4eafca9d
gnu: qtlocation-5: Fix build.
Fixes guix/guix#712

* gnu/packages/patches/qtlocation-5.15.8-mapboxgl-gcc13.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/qt.scm (qtlocation-5)[source]:
 <patches>: use it.
 <snippet>: unvendor rapidjson and protozero.
[inputs]: Add rapidjson and protozero.

Change-Id: I57b32863ae905d26539b43296cea8c1a18f91170
2025-07-18 20:17:35 +02:00
Zheng Junjie
fe60ed992e
gnu: libsoup-minimal: Update to 3.6.4.
* gnu/packages/gnome.scm (libsoup-minimal): Update to 3.6.4.

Change-Id: Ifbf90c450f18b5756dd289408183b509bc2f48a7
2025-07-18 20:17:35 +02:00
Zheng Junjie
884b6e9615
gnu: libarchive: Explicitly disable openssl.
* gnu/packages/backup.scm (libarchive)[arguments]<#:configure-flags>:
Add --without-openssl.

Change-Id: Id64849ca319fc191998175ffb3ceba07c1bff744
2025-07-18 20:17:35 +02:00
Zheng Junjie
a23d7877ea
gnu: kwayland-5: Fix build.
* gnu/packages/patches/kwayland-5-fix-build.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/kde-frameworks.scm (kwayland-5): Use It.

Change-Id: Ida72b1bdcacd59c112d1dceda669627e3bbe7110
2025-07-18 20:17:35 +02:00
Zheng Junjie
3d2efdbd33
gnu: libstdc++: Fix build for gcc-13.
* gnu/packages/gcc.scm (make-libstdc++)[arguments]: use patch-tzdb.cc phase
for gcc >= 13.

Change-Id: I6e8ae4b973e80c11d67b7333ec2dfa732d1d016a
2025-07-18 20:17:35 +02:00
Yelninei
91379033b3
gnu: rumpkernel: Update to 0-20250111.
* gnu/packages/hurd.scm (rumpkernel): Update to 0-20250111.
[#:phases]: In build phase set C_INCLUDE_PATH and add -DBUFPAGES=16. Remove HOST_CFLAGS
override.
[inputs]: Add libirqhelp.

Change-Id: Iba710d54bb2cfe54b0b9bfcbf7e273fdf79e7d51
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:35 +02:00
Yelninei
aeb70ebaff
gnu: Add libirqhelp.
* gnu/packages/hurd.scm (libirqhelp): New variable.

Change-Id: Ida9fec5c998ee33366bd33df09f60ac9d0b14489
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Modified-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:35 +02:00
Ludovic Courtès
83e7107401
gnu: motif: Build with GCC 11.
* gnu/packages/lesstif.scm (motif)[native-inputs]: Add GCC 11.

Change-Id: I4eea64de919d11e54a909ecdfafd37f4d06283fc
2025-07-18 20:17:34 +02:00
Ludovic Courtès
42f7c1bb17
gnu: gcc: Fix compilation of libstdc++ for GCC 7 to 13.
With the introduction of GCC 14 as the default compiler, compilation of
libstdc++ of all previous versions would fail due to a different
signature for ‘__cxa_call_terminate’ (a builtin in GCC 14).  This fixes it.

* gnu/packages/patches/gcc-libstdc++-newer-gcc.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/gcc.scm (gcc-7, gcc-8, gcc-9, gcc-10)
(gcc-11, gcc-12, gcc-13): Use it.

Change-Id: I84dc26e46d56259d7d610f19b0521fa9c5499d5e
2025-07-18 20:17:34 +02:00
Ludovic Courtès
ca8e8e206b
gnu: libvpx: Ungraft.
* gnu/packages/video.scm (libvpx)[replacement]: Remove.
[source]: Add ‘libvpx-CVE-2025-5262.patch’.

Change-Id: Ia7211e23586bb07f73f5e3b3d7a298cd6c893bf2
2025-07-18 20:17:34 +02:00
Ludovic Courtès
bf737ede48
gnu: texlive-libkpathsea: Ungraft.
* gnu/packages/tex.scm (texlive-libkpathsea)[replacement]: Remove.
[arguments]: Adjust ‘customize-texmf.cnf’ phase.

Change-Id: I64abeadb82a11cb54d6388e7f5deda65d2e5ba20
2025-07-18 20:17:34 +02:00
Ludovic Courtès
157c0276a8
gnu: cairo: Ungraft.
* gnu/packages/gtk.scm (cairo): Update to 1.18.4.
[replacement]: Remove.
(cairo-1.18.4): Remove.

Change-Id: I44f2b05d813ace209ac49b463fb81699fbb3ba53
2025-07-18 20:17:34 +02:00
Ludovic Courtès
95e87d95f6
gnu: elogind: Ungraft.
* gnu/packages/freedesktop.scm (elogind)[replacement]: Remove.
[arguments]: Adjust ‘fix-pkttyagent-path’ phase.
(elogind/fixed): Remove.

Change-Id: Ie185a59262206118c0f97a6098f368c909ff524e
2025-07-18 20:17:34 +02:00
Yelninei
aa2da7cc2f
gnu: fakeroot: Update to 1.37.1.2.
* gnu/packages/linux.scm (fakeroot): Update to 1.37.1.2.
[native-inputs]: Add perl.

Change-Id: I452e9c1910cf3dbf75064739d4f29f50d7795467
Signed-off-by: Andreas Enge <andreas@enge.fr>
2025-07-18 20:17:34 +02:00
Andreas Enge
fb6c58ba10
gnu: kexec-tools: Update to 2.0.31.
* gnu/packages/linux.scm (kexec-tools): Update to 2.0.31.

Change-Id: Ibd034855cf72d35ac0d5194f7cf968f50089ffd6
Reported-by: Rutherther <rutherther@ditigal.xyz>
2025-07-18 20:17:34 +02:00
Yelninei
91510760ca
gnu: gdbm: Add upstream patch for test issues.
* gnu/packages/patches/gdbm-lockwait-test.patch: New patch.
* gnu/packages/dbm.scm (gdbm): Add it.
* gnu/local.mk: Register it.

Change-Id: I991df13d66ad3cf1b567ee3b3d337215c70be2c6
2025-07-18 20:17:34 +02:00
Yelninei
72dbcff937
gnu: glibc: Merge with glibc/hurd.
* gnu/packages/base.scm (%glibc-patches): Add patches from glibc/hurd.
(glibc/hurd): Define to glibc.

Change-Id: I6acc83bafeafadc0e257575fd8b9641e4cbf1f92
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:34 +02:00
Rutherther
f9b639a46f
gnu: xz-mesboot: Disable parallel build.
Fixes <https://issues.guix.gnu.org/78453>.

Disables parallel build, because the build gets stuck with parallel builds on
x86_64 at least.

* gnu/packages/commencement.scm (xz-mesboot): Disable parallel builds.

Change-Id: I0367363cbaaeb0ae5730242254c918cd7ec71478
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:33 +02:00
Yelninei
0f88bff11c
gnu: libxcrypt: Remove now unnecessary Hurd64 patch.
* gnu/packages/crypto.scm (libxcrypt)[arguments]: Remove
‘apply-hurd64-patch’ phase.
* gnu/packages/patches/libxcrypt-hurd64.patch: Remove.
* gnu/local.mk (dist_patch_DATA): Remove it.

Change-Id: Id98b268426ef22219e2bfc5041e7d7965c5f9275
2025-07-18 20:17:33 +02:00
Yelninei
4a30b9da78
gnu: bison: Link with pthread on the Hurd.
* gnu/packages/bison.scm (bison): Add LIBS=-lphtread on the Hurd.
* gnu/packages/commencement.scm (bison-boot0): Strip configure-flags.

Change-Id: If47c10c3a653df5fd07119a6fa53a40527d37b56
2025-07-18 20:17:33 +02:00
Yelninei
be5070df29
gnu: tar: Disable 64bit time_t on the 32bit Hurd.
* gnu/packages/base.scm (tar): Add --disable-year2038 configure-flag for
32bit hurd.
Change-Id: I8573dca7fa848afb968365977c49edbd01e97756

Change-Id: Ie3ab2f7275c9d7163557a8874f7b004dae3c6a17
2025-07-18 20:17:33 +02:00
Yelninei
310b02de41
gnu: util-linux: Disable 64bit time_t on the 32bit Hurd.
* gnu/packages/linux.scm (util-linux): Add --disable-year2038 configure-flag for
32bit hurd.
Change-Id: I5637bb9bf3c02759c7c9ed85c1f0bdf93bf03352

Change-Id: I387dc1559041956874c756d53382e5c8addf8202
2025-07-18 20:17:33 +02:00
Yelninei
efb6047bda
gnu: findutils: Disable 64bit time_t on the 32bit Hurd.
* gnu/packages/base.scm (findutils): Add --disable-year2038 configure-flag for
32bit hurd.

Change-Id: I724f9e2807830d4b028a385e5e7c1f0d2e47e707
2025-07-18 20:17:33 +02:00
Yelninei
6cebf0e1d5
gnu: glibc/hurd: Fix gnulib tests.
With glibc-2.41 several gnulib tests are failing on the Hurd in multiple core packages
- test-once1
- test-pthread_sigmask1
- test-symlink/test-symlinkat

This adds the relevant patches from glibc upstream or the version from the
debian glibc adapted for glibc 2.41.

* gnu/packages/patches/glibc-hurd-2.41-pthread-once.patch: New patch.
* gnu/packages/patches/glibc-hurd-2.41-pthread-sigmask.patch: New patch.
* gnu/packages/patches/glibc-hurd-2.41-symlink.patch: New patch.
* gnu/packages/base.scm (glibc/hurd): Add them.
* gnu/local.mk : Register them.

Change-Id: I90ec984757da54ebbc7cb7817de00f2876f4a81a
2025-07-18 20:17:33 +02:00
Efraim Flashner
635da6eb69
gnu: gettext-minimal: Remove gnulib patch for armhf-linux.
* gnu/packages/gettext.scm (gettext-minimal)[arguments]: Remove phase
adding a patch for gnulib when building for armhf-linux.

Change-Id: Ifd7f73dffa259c731f1cb8a5bdb36b78abcbb1b4
2025-07-18 20:17:33 +02:00
Efraim Flashner
6f4a5edb19
gnu: diffutils-boot0: Add back inherited package arguments.
This was reported by yelninei on IRC.

* gnu/packages/commencement.scm (diffutils-boot0)[arguments]: Inherit
package arguments from diffutils.

Change-Id: Ie438ad47c7262a6df62f6d26c31f78f1338f4bdd
2025-07-18 20:17:33 +02:00
Efraim Flashner
b42427961a
gnu: file-boot0: Remove custom configure-flags on aarch64-linux.
* gnu/packages/commencement.scm (file)[arguments]: Don't disable
dependency-tracking when building on aarch64-linux.

Change-Id: I14c4b3f60af63427153dfd381400709f09f247ec
2025-07-18 20:17:33 +02:00
Efraim Flashner
1e644e0b52
gnu: findutils-boot0: Remove custom configure-flags on aarch64-linux.
* gnu/packages/commencement.scm (findutils-boot0)[arguments]: Don't
disable dependency-tracking when building on aarch64-linux.

Change-Id: Ib6338d8adab7dcfffeb7b0aabfb4f74ee3819119
2025-07-18 20:17:33 +02:00
Efraim Flashner
1558811c31
gnu: diffutils-boot0: Remove custom configure-flags on aarch64-linux.
* gnu/packages/commencement.scm (diffutils-boot0)[arguments]: Don't
disable dependency-tracking when building on aarch64-linux.

Change-Id: I98a445411d472eb78abb55a28733c2f77ac5fd3e
2025-07-18 20:17:33 +02:00
Yelninei
f4ba6f2280
gnu: rumpkernel: Fix build with gcc-14.
* gnu/packages/hurd.scm (rumpkernel): Add -Wno-error=implicit-function-declaration
for the HOST_CC

Change-Id: I4e86cd9900b56a904190e217c21bcfa279c12a5a
2025-07-18 20:17:33 +02:00
Zheng Junjie
5f756ac866
gnu: expat: Update to 2.7.1.
* gnu/packages/xml.scm (expat): Update to 2.7.1.
(expat/fixed): Remove it.
* gnu/packages/patches/expat-CVE-2024-45490.patch: Remove it.
* gnu/packages/patches/expat-CVE-2024-45491.patch: Remove it.
* gnu/packages/patches/expat-CVE-2024-45492.patch: Remove it.
* gnu/local.mk (dist_patch_DATA): Unregister them.

Change-Id: Ia0bc5da202afba0636032e4f4e10051778214944
2025-07-18 20:17:33 +02:00
Zheng Junjie
d8fb8e4bf9
gnu: libarchive: Update to 3.7.7.
* gnu/packages/backup.scm (libarchive): Update to 3.7.7.
* gnu/packages/backup.scm (libarchive/fixed): Delete variable.
* gnu/packages/patches/libarchive-remove-potential-backdoor.patch: Remove it
* gnu/local.mk (dist_patch_DATA): Unregister it.

Change-Id: Ia6474f9dae9a3d1a707d94fcace9bd50b2e3ac4c
2025-07-18 20:17:32 +02:00
Zheng Junjie
03a7e8c362
gnu: cups-minimal: Ungraft.
* gnu/packages/cups.scm (cups-minimal)[replacement]: Remove it.
[source]: Add cups-minimal-Address-PPD-injection-issues.patch.
* gnu/packages/cups.scm (cups-minimal/fixed): Remove it.

Change-Id: Icb5295af42b5a84741a73ed4b662bc8736ab6b2b
2025-07-18 20:17:32 +02:00
Zheng Junjie
3d0160354d
gnu: curl: Ungraft.
* gnu/packages/curl.scm (curl)[replacement]: Remove it.
[source]: Add curl-CVE-2024-8096.patch.
* gnu/packages/curl.scm (curl/fixed): Remove it.

Change-Id: I43e6c1c0c97bc86ce0e4801559eead53a1a07d12
2025-07-18 20:17:32 +02:00
Christopher Baines
4c5848b661
gnu: bootstrap: %bootstrap-glibc: Fix linking on armhf-linux.
* gnu/packages/bootstrap.scm (%bootstrap-glibc)[arguments]<#:builder>:
Correct parentheses.

Change-Id: Ie0f55cff88ebc8ab1fba72e5a8abfa711f94731f
2025-07-18 20:17:32 +02:00
Yelninei
77ac889584
gnu: hurd: Update to 0.9.git20250420.
* gnu/packages/commencement.scm (hurd-headers-boot0): Update to
0.9.git20250420.
* gnu/packages/hurd.scm (hurd-headers): Same.
(hurd): Remove hurd-64bit.patch.
[native-inputs]: Use texinfo instead of texinfo@4.
* gnu/packages/patches/hurd-64bit.patch: Remove patch.
gnu/local.mk: Deregister patch.

Change-Id: Id62664983b2b5e2d6f2791f3290a9129fbf5f1c5
2025-07-18 20:17:32 +02:00
Yelninei
bed285b473
gnu: gnumach: Update to 1.8+git20250304.
* gnu/packages/commencement.scm (gnumach-headers-boot0): Update to 1.8+git20250304.
* gnu/packages/hurd.scm (gnumach-headers): Same.
[native-inputs]: Use automake@1.17.
(gnumach)[native-inputs]: Use automake@1.17.

Change-Id: I74d1a7caf69d2c2d74208eb54c18e3e025e367d7
2025-07-18 20:17:32 +02:00
Ludovic Courtès
b41738654b
gnu: gash: Update to 0.3.1.
Fixes <https://issues.guix.gnu.org/75658>.

Fixes a bug whereby Gash sub-shells would randomly crash, typically when
running ‘configure’ scripts, with:

  ERROR: In procedure fdopen:
  ERROR: In procedure scm_fdes_to_port: Bad file descriptor

The effect is that ‘configure’ would sometimes make wrong guesses,
eventually leading to build failures.

* gnu/packages/shells.scm (gash): Update to 0.3.1.

Change-Id: I5fd48a651601b3c28fbed88dbffaefdef987f1cd
2025-07-18 20:17:32 +02:00
Andy Tai
a358889d80
gnu: gdbm: Update to 1.25.
* gnu/packages/dbm.scm (gdbm): Update to 1.25.

Change-Id: I94771e420cf5752d45d1c3a98f688b9f45ab4be2
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:32 +02:00
Andy Tai
2a248d73ce
gnu: diffutils: Update to 3.12.
* gnu/packages/base.scm (diffutils): Update to 3.12.
[arguments]<#:configure-flags>: When cross-compiling,
add "ac_cv_func_strcasecmp=yes"
"gl_cv_func_strcasecmp_works=yes".

Change-Id: Icf49303e794479a0561e894ab88427c826d56cf3
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:32 +02:00
Leo Nikkilä
c4a100f3c6
gnu: gcc-6: Use libstdc++ headers appropriate for each GCC.
After the "hack" introduced for <https://issues.guix.gnu.org/42392>, all GCCs
are built with the current GCC's libstdc++ headers.  This results in subtly
broken C++ headers in older versions, which aren't necessarily compatible with
libstdc++s from other versions.

For example, this test case works with GCC 11:

    $ guix shell --container --emulate-fhs --pure -e '(@ (gnu packages gcc) gcc)' binutils -- sh -c 'echo -e "#include <cmath>\nint main() { return std::isnan(0); }" | g++ -x c++ -; echo $?'
    0

but fails with GCC 9:

    $ guix shell --container --emulate-fhs --pure -e '(@ (gnu packages gcc) gcc-9)' binutils -- sh -c 'echo -e "#include <cmath>\nint main() { return std::isnan(0); }" | g++ -x c++ -; echo $?'

    In file included from /gnu/store/gkh2rljdrnj24q1q7baa6bhb119251w4-profile/include/c++/cmath:45,
                     from <stdin>:1:
    <stdin>: In function 'int main()':
    <stdin>:2:26: error: '__builtin_isnan' is not a member of 'std'; did you mean '__builtin_isnan'?
    <built-in>: note: '__builtin_isnan' declared here
    1

This specific error can be traced back to the GCC build, where GCC 10 and 11
are configured with:

    checking for ISO C99 support in <math.h> for C++11... yes

but GCC 9 is configured with:

    checking for ISO C99 support in <math.h> for C++11... no

The configure check fails due to errors like these due to the mismatched
libstdc++:

    configure:17817: checking for ISO C99 support in <math.h> for C++11
    […]
    In file included from /gnu/store/y3kk0ybf7hqwndl8xpm61r4a5b3lhwix-libstdc++-11.4.0/include/cmath:41,
                     from /gnu/store/y3kk0ybf7hqwndl8xpm61r4a5b3lhwix-libstdc++-11.4.0/include/math.h:36,
                     from conftest.cpp:41:
    /gnu/store/y3kk0ybf7hqwndl8xpm61r4a5b3lhwix-libstdc++-11.4.0/include/bits/c++config.h:491:18: error: missing binary operator before token "("
      491 | #if __has_builtin(__builtin_is_constant_evaluated)
          |                  ^

Updating libstdc++ to reference each GCC works around this.

* gnu/packages/gcc.scm (libstdc++, libstdc++-headers): Remove variables.
(make-libstdc++-headers): New procedure.
(gcc-6)[native-inputs]: Use it with `this-package'.

Change-Id: Ie05878c83860c4ccc29d66b916d11613e367e142
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Modified-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:32 +02:00
Andy Tai
c6e3584e8d
gnu: gzip: Update to 1.14.
* gnu/packages/compression.scm (gzip): Update to 1.14.

Change-Id: Iabb0a315b6123666dd803fc1c15ec10949184f99
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:32 +02:00
Greg Hogan
b2a20e5fd9
build-system/gnu: Limit load average.
A nice feature of offload builds is that Guix will throttle the start of
new jobs based on the overload-threshold.  There is no equivalent for
local builds, so one must either run builds in serial (--max-jobs=1) and
endure single-threaded builds or run concurrent builds and watch the
system overload as it runs multiple multi-threaded builds.

From a benchmark comparing the compilation of concurrent Folly builds,
the "max-load" option reduced the overall time by 8.3%. Memory use also
drops considerably since we are only running 1/4 of the processes at any
time.

* guix/build/gnu-build-system.scm (build, check): Set max load.

Change-Id: I97f1e3e59880b6ed23faed2038eb5279415e9c95
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:32 +02:00
Andreas Enge
e239958b8b
gnu: mpfr: Update to 4.2.2.
* gnu/packages/multiprecision.scm (mpfr): Update to 4.2.2.

Change-Id: I07df931b5e8be7f4d90cb3b30685f026ac6c6276
2025-07-18 20:17:32 +02:00