~ruther/guix-local

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
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
635da6eb — Efraim Flashner 1 year, 1 month ago
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
6f4a5edb — Efraim Flashner 1 year, 1 month ago
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
b4242796 — Efraim Flashner 1 year, 1 month ago
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
1e644e0b — Efraim Flashner 1 year, 1 month ago
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
1558811c — Efraim Flashner 1 year, 1 month ago
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
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
5f756ac8 — Zheng Junjie 1 year, 1 month ago
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
d8fb8e4b — Zheng Junjie 1 year, 1 month ago
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
03a7e8c3 — Zheng Junjie 1 year, 1 month ago
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
3d016035 — Zheng Junjie 1 year, 1 month ago
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
4c5848b6 — Christopher Baines 1 year, 1 month ago
gnu: bootstrap: %bootstrap-glibc: Fix linking on armhf-linux.

* gnu/packages/bootstrap.scm (%bootstrap-glibc)[arguments]<#:builder>:
Correct parentheses.

Change-Id: Ie0f55cff88ebc8ab1fba72e5a8abfa711f94731f
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
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
b4173865 — Ludovic Courtès 1 year, 2 months ago
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
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>
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>
c4a100f3 — Leo Nikkilä 1 year, 5 months ago
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>
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>
Next