Commit graph

635 commits

Author SHA1 Message Date
Josselin Poiret
60e069e484
gnu: Add glibc-locales-2.35.
* gnu/packages/base.scm (glibc-locales-2.35): Add glibc-locales variant.

Change-Id: I72da524f7ff0cd897630c79c111dd7273065da0a
2024-08-31 10:45:04 +02:00
Josselin Poiret
56402ca868
gnu: make-glibc-locales: Modernize.
* gnu/packages/base.scm (make-glibc-locales): Switch to G-Expressions.

Change-Id: I10efbded72c3e01261a8651fec0a7d9ea29fadad
2024-08-31 10:45:04 +02:00
Josselin Poiret
04af0fff52
gnu: glibc-2.35: Disable C++ compiler for build.
* gnu/packages/base.scm (glibc-2.33): Move disabling the compiler from here...
(glibc-2.35): to here, and update the comment.

Change-Id: Ie2511486f0e5791929f1f48529be7cc88c9553c2
2024-08-31 10:45:04 +02:00
Josselin Poiret
e369fa017b
gnu: glibc-2.35: Use CVE-2023-4911 again.
* gnu/packages/base.scm (glibc-2.35): Use glibc-2.35-CVE-2023-4911.patch which
was forgotten when ungrafting.

Change-Id: I7774f67b50ba3be1246325ea9f40ac31e3dbc74f
2024-08-31 10:45:04 +02:00
Josselin Poiret
39ee286510
gnu: glibc/fixed: Remove variable.
* gnu/packages/base.scm (glibc/fixed): Remove variable.

Change-Id: I7882976eecd63fe7ccbbaabfe63484d258c4a167
2024-08-31 10:45:04 +02:00
Josselin Poiret
b6ea2c48f6
gnu: glibc: Update patches following upstream's master branch.
* gnu/packages/patches/glibc-2.39-git-updates.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/base.scm (glibc): Use it.

Change-Id: I13ff3fa2eddd8296d138f87c9069487e9543b3bd
2024-08-31 10:45:03 +02:00
Ludovic Courtès
c7377b7e04
gnu: Remove leftover references to ‘%glibc/hurd-configure-flags’.
This is a followup to 901b3c2a9db1935149d6ee366bf6f2a325391740.

* gnu/packages/base.scm (glibc/hurd-headers): Remove reference to
‘%glibc/hurd-configure-flags’.
* gnu/packages/cross-base.scm (cross-libc*): Likewise.

Change-Id: Iac43d84e3407c16a0f3f926d795b55c7b7ac73fd
2024-08-31 10:45:02 +02:00
Josselin Poiret
74e49ef9dc
gnu: glibc: Remove unneeded workaround configure flags for Hurd.
* gnu/packages/base.scm (%glibc/hurd-configure-flags): Remove variable.
(glibc): Stop using %glibc/hurd-configure-flags.

Change-Id: I5cbdf8956a826d1eb25c449d4bc8a16d87dc8b80
2024-08-31 10:45:02 +02:00
Maxim Cournoyer
d803f8ae41
gnu: glibc-2.33: Use gexps to fix build.
* gnu/packages/base.scm (glibc-2.33) [arguments]: Use gexps to resolve a build
error.

Change-Id: I3916360beb7016f2e03528ecfb1a31186cc5d6e2
2024-08-31 10:44:59 +02:00
Josselin Poiret
70b2015ec5
gnu: glibc: Update to 2.39.
* gnu/packages/base.scm (glibc): Update it.  Remove --enable-crypt as it is no
longer included in 2.39.  Remove upstreamed patch for hurd.
* gnu/packages/patches/glibc-2.38-hurd-ucontext.patch: Remove patch.
* gnu/local.mk (dist_patch_DATA): Unregister it.

Change-Id: Idf9ae3ff6cbbe45f1c9bfbc2c78a331f118e0129
2024-08-31 10:44:51 +02:00
Janneke Nieuwenhuizen
6b9a733507
gnu: glibc-2.33: Resurrect.
* gnu/packages/base.scm (glibc-2.33)[arguments]: Use arguments from glibc-2.35.

Change-Id: I40856a121b8687fe822fd70039215da57568f244
2024-08-31 10:44:49 +02:00
Janneke Nieuwenhuizen
f6aa4bd960
gnu: glibc-2.33: Fix source build.
* gnu/packages/base.scm (glibc-2.33)[source]: Use patches from glibc-2.35.

Change-Id: Idfcad60a39bdfd54d6126c1b440c8915ec2d4df2
2024-08-31 10:44:48 +02:00
Maxim Cournoyer
b07c028a84
gnu: base: Add cautionary comments for canonical-package, %final-inputs usage.
* gnu/packages/base.scm (canonical-package, %final-inputs): Add comments.

Change-Id: I8b2f5802127dbde169850a7931a64fb5eb503b7c
2024-08-31 10:44:47 +02:00
Zheng Junjie
f23b8893bb
gnu: tzdata: Update to 2023d.
* gnu/packages/base.scm (tzdata): Update to 2023d.
[inputs]: update tzcode.

Change-Id: I54618cb6fedbed3c14a239d2d18a58938f331b51
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-08-31 10:44:29 +02:00
Janneke Nieuwenhuizen
0ff267cdf2
gnu: glibc/hurd: Install include/mach/machine symlink.
* gnu/packages/base.scm (glibc): When building for the Hurd, add phase
`create-machine-symlink'.
* gnu/packages/cross-base.scm (cross-libc*): Likewise.

Change-Id: I61fa081ce081f05bed918a438fd9d4eec94ef4bf
2024-08-31 10:44:28 +02:00
Josselin Poiret
a0c1787816
gnu: glibc-locales: Fix build.
Change-Id: I34112114b76e75cb2e517d0965286ba8c11a5d6c

* gnu/packages/base.scm (make-glibc-locales): Delete the new glibc
'install-utf8-c-locale phase.

Change-Id: I843ea0a4fb34dba42e3a2e5ceafb85db7060089f
2024-08-31 10:44:26 +02:00
Janneke Nieuwenhuizen
69581a541a
gnu: glibc/hurd: Update to 2.38.
* gnu/packages/base.scm (glibc/hurd): Define to glibc.

Change-Id: I4c07ba3971dfe6bfba07e943648420b603c40e29
2024-08-31 10:44:24 +02:00
Ludovic Courtès
c24db4693f
gnu: binutils-gold: Fix typo.
Fixes a regression introduced in
8e9573784f06ec2af96f9298c6dd4346688888fb.

* gnu/packages/base.scm (binutils-gold): Use ‘unquote-splicing’ for the
optional ‘skip-gold-testsuite’ phase.

Change-Id: Ia08dfe66496aaf2c05df6d3832557f9856ad84a8
2024-08-31 10:44:23 +02:00
Ludovic Courtès
77ee97628a
gnu: binutils: Use gexps.
This is the result of applying ‘guix style -S arguments’ and making
small adjustments.

* gnu/packages/base.scm (binutils)[arguments]: Use gexps.
(binutils-2.33, binutils-gold): Likewise.
* gnu/packages/commencement.scm (binutils-mesboot0, binutils-mesboot1)
(binutils-boot0, binutils-final): Likewise.
* gnu/packages/cross-base.scm (cross-binutils*): Adjust accordingly.
* gnu/packages/embedded.scm (make-propeller-binutils): Use gexps.
* gnu/packages/make-bootstrap.scm (%binutils-static): Use gexps.

Change-Id: I59cbe29760784b09e6d4e80beca9153cb9b495a7
2024-08-31 10:44:23 +02:00
Ludovic Courtès
e7fdcffc73
gnu: binutils: Update to 2.41.
* gnu/packages/base.scm (binutils): Update to 2.41.
[properties]: Remove.
[native-inputs]: New field.
(binutils+documentation): Remove.
(binutils-2.33)[native-inputs]: New field.
(binutils-gold): Inherit from BINUTILS.
[native-inputs]: Use ‘modify-inputs’ to preserve BISON.
* gnu/packages/commencement.scm (binutils-boot0)[arguments]: Pass
‘--disable-gprofng’.
[native-inputs]: New field.
(binutils-final): Move below ‘libstdc++’.
[native-inputs]: New field.
[arguments]: Add libstdc++ to #:allowed-references.
Extend #:configure-flags to libstdc++ is found.

Change-Id: I72750ca46ffd484d26608c4cec2931edb06b19a5
2024-08-31 10:44:22 +02:00
Ludovic Courtès
0678ca426d
Revert "gnu: coreutils: Disable 64-bit time_t on 32-bit systems."
This reverts commit 4eebb73295.

The ‘--disable-year2038’ flag appears to be unnecessary (tested on
i686-linux).  More importantly, it’s potentially harmful as it could
prevent rebuilds after year 2038 due to timestamp inconsistencies as
they wrap around, and could make the tools unusable altogether.

Change-Id: Iad828d38f84bd1824b83731ac3a3897da4b8b6d3
2024-08-31 10:44:20 +02:00
Ludovic Courtès
9f31674fa0
gnu: make: Update to 4.4.1.
* gnu/packages/base.scm (gnu-make): Update to 4.4.1.

Change-Id: I0caff2d3ea008e627544728646fcb066b69775f0
2024-08-31 10:44:19 +02:00
Ludovic Courtès
563538a4e2
gnu: diffutils: Update to 3.10.
* gnu/packages/base.scm (diffutils): Update to 3.10.
* gnu/packages/patches/diffutils-fix-signal-processing.patch: Delete.
* gnu/local.mk (dist_patch_DATA): Remove it.

Change-Id: I795fa93938f8723090887d33574baa1a392ef42e
2024-08-31 10:44:18 +02:00
Ludovic Courtès
5f238e3e36
gnu: grep: Update to 3.11.
* gnu/packages/base.scm (grep): Update to 3.11.

Change-Id: Ia9d8d4748ab4faffee1f013d55000e11c6b86c11
2024-08-31 10:44:18 +02:00
Ludovic Courtès
6538474df7
gnu: glibc: Add patch for ‘ucontext’ on x86_64-gnu (GNU/Hurd).
Suggested by Sergey Bugaev.

* gnu/packages/patches/glibc-2.38-hurd-ucontext.patch: New file.
* gnu/packages/base.scm (glibc)[source]: Use it.
* gnu/local.mk (dist_patch_DATA): Add it.

Change-Id: Ib74e93f2414eda2ec4b3e01fc2bb67b02838fabb
2024-08-31 10:42:49 +02:00
Ludovic Courtès
6a554dbc0d
gnu: glibc-utf8-locales: Add the C.UTF-8 locale.
* gnu/packages/base.scm (%default-utf8-locales): Add "C".
(make-glibc-utf8-locales): Delete "C" from LOCALES for glibc versions
lower than or equal to 2.35.

Change-Id: I6a6faa68dc18bf0f87c372109a17f476d3561278
2024-08-31 10:42:49 +02:00
Ludovic Courtès
92727f4af5
gnu: commencement: Remove ‘glibc-utf8-locales’ from ‘%final-inputs’.
* gnu/packages/commencement.scm (%boot5-inputs): Make an alias for
‘%boot4-inputs’.
(with-boot5): Turn into an alias for ‘with-boot4’.
(%final-inputs): Override ‘native-inputs’ of GAWK.  Remove "locales"
entry.
(canonical-package): Add “glibc-utf8-locales” entry.
* gnu/packages/base.scm (libc-utf8-locales-for-target): Use
‘canonical-package’.
* gnu/packages/gawk.scm (gawk)[native-inputs]: New field.
* gnu/packages/texinfo.scm (texinfo)[native-inputs]: Add
‘libc-utf8-locales-for-target’.

Change-Id: I2283ffc6c6000c98ad2db89c04d581e050667c94
2024-08-31 10:42:49 +02:00
Ludovic Courtès
7c575fac52
gnu: glibc: Improve handling of empty .a files.
This partially reverts 3b2de6529b9d77c8a74d431859a3ec334e9603c2, itself
a followup to 25b30622b4.

* gnu/packages/base.scm (glibc)[arguments]: In ‘move-static-libs’ phase,
remove ‘empty-static-libraries’ variable and rewrite
‘empty-static-library?’ to check file type and size.
* gnu/packages/commencement.scm (make-gcc-toolchain): Remove ‘copy-file’
call to create ‘librt.a’.

Change-Id: I33c6825d5b1e6e790dfff494bac1da07d3389e77
2024-08-31 10:42:47 +02:00
Ludovic Courtès
ed0cd12a82
gnu: glibc: Install C.UTF-8 locale.
* gnu/packages/base.scm (glibc)[arguments]: Add ‘install-utf8-c-locale’
phase.
(glibc-2.35)[arguments]: Delete ‘install-utf8-c-locale’ phase.
(glibc-2.33, glibc-2.32, glibc-2.31): Inherit from ‘glibc-2.35’.

Change-Id: I7ba515184c7b7c40eaefd355639ffef8eeca66d8
2024-08-31 10:42:47 +02:00
Ludovic Courtès
9dbba02382
gnu: glibc: Update to 2.38.
* gnu/packages/patches/glibc-2.38-ldd-x86_64.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/base.scm (glibc): Update to 2.38.
[source]: Adjust list of patches.
[arguments]: Add ‘--enable-crypt’.
(glibc-2.35): New variable.

Change-Id: I040b724c47d2ee5f90f2deb03a4828e79d1bfc4e
2024-08-31 10:42:47 +02:00
Ludovic Courtès
61c6d0bdd8
gnu: glibc-utf8-locales: Generalize and use gexps.
Previously code was dependent on the ‘name’ field of the GLIBC package.

* gnu/packages/base.scm (make-glibc-utf8-locales): Use gexps.  Replace
references to ‘%build-inputs’ by calls to ‘which’.  Replace reference to
‘version’ by (package-version this-package).

Change-Id: I1e7003047aa85df74069b233191ab331b5f887b6
2024-08-31 10:42:46 +02:00
spacecadet
968c6da422
gnu: grep: Fix PCRE matches (grep -P).
* gnu/packages/base.scm (grep)[inputs]: Replace pcre with pcre2.
[arguments]: Add "--enable-perl-regexp" to #:configure-flags to
detect broken PCRE in future.

Change-Id: I612564ca9ceae6aeee325368f34b2aa35eba0c40
2024-08-31 10:42:46 +02:00
Maxim Cournoyer
f59df1aa3c
build-systems: gnu: Export %default-gnu-imported-modules and %default-gnu-modules.
Until now users would have to cargo cult or inspect the private
%default-modules variable of (guix build-systems gnu) to discover which
modules to include when extending the used modules via the #:modules argument.

The renaming was automated via the command:

  $ git grep -l %gnu-build-system-modules
    | xargs sed 's/%gnu-build-system-modules/%default-gnu-imported-modules/' -i

* guix/build-system/gnu.scm (%gnu-build-system-modules): Rename to...
(%default-gnu-imported-modules): ... this.
(%default-modules): Rename to...
(%default-gnu-modules): ... this.  Export.
(dist-package, gnu-build, gnu-cross-build): Adjust accordingly.

Change-Id: Idef307fff13cb76f3182d782b26e1cd3a5c757ee
2024-08-31 10:42:16 +02:00
Maxim Cournoyer
80961d40f2
gnu: glibc: Add $TZDIR native search path.
* gnu/packages/base.scm (glibc) [native-search-paths]: Add $TZDIR.
2024-08-31 10:42:04 +02:00
Maxim Cournoyer
831001c581
gnu: patch: Update to latest commit [security fixes].
* gnu/packages/base.scm (patch): Rename to...
(patch/pinned): ... this.  Hide package.
(patch): New variable.
* gnu/packages/commencement.scm (patch-mesboot): Inherit from patch/pinned.
(patch-boot0): Likewise.
(%final-inputs): Replace patch with patch/pinned.
* gnu/packages/lisp.scm (cl-asdf): Likewise.
* guix/packages.scm (%standard-patch-inputs): Replace patch with patch/pinned.

Fixes: https://issues.guix.gnu.org/47144
Reported-by: Mark H Weaver <mhw@netris.org>
Change-Id: I54ae41b735f5ba0ebad30ebdfaabe0ccdc3f9873
2024-06-24 08:51:45 -04:00
Maxim Cournoyer
eb4dc1b9ae
gnu: patch: Fix indentation.
* gnu/packages/base.scm (patch): Re-indent package.

Change-Id: I97a5d8054ebacc779bead6093d150c44acdcc91c
2024-05-30 11:35:13 -04:00
Liliana Marie Prikler
bbb9b66316
gnu: Add python-tzdata.
* gnu/packages/time.scm (python-tzdata): New variable.
* gnu/packages/base.scm (tzdata): Update comment.
2024-02-03 10:55:06 +01:00
Efraim Flashner
3e41b252cf
gnu: Adjust to removing ed.scm and nano.scm
This is a follow-up to f6817e71df and
e11e65a9ad.

* gnu/installer.scm, gnu/packages/algebra.scm, gnu/packages/base.scm,
gnu/packages/cook.scm, gnu/packages/lisp.scm,
gnu/packages/patchutils.scm, gnu/packages/version-control.scm,
gnu/packages/web-browsers.scm, gnu/system.scm: Adjust module imports.

Change-Id: I25e5519fa003c35a14b81c3dda37b24527858634
2023-12-25 19:58:21 +02:00
Ludovic Courtès
4a6cef9d66
gnu: glibc-locales@2.37: Mark as hidden.
Fixes <https://issues.guix.gnu.org/67586>.

* gnu/packages/base.scm (glibc-locales/hurd): Wrap in ‘hidden-package’.

Change-Id: If4f4aa1ef66c53ee0bb52eaea533241652e48cca

Reported-by: Nils Landt <nils@landt.email>
Change-Id: I5150f13be9c3b23e7abe408f815c56f498c92ecb
2023-12-06 23:50:04 +01:00
Janneke Nieuwenhuizen
9442b53c6b
gnu: Add ‘libc-locales-for-target’ and related.
Partly fixes <https://issues.guix.gnu.org/66472>.

This is a followup to 95ea1277ae.

* gnu/packages/base.scm (glibc-locales/hurd): New variable
(libc-locales-for-target): Use it in new procedure.
(libc-utf8-locales-for-target): New procedure.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Change-Id: I16e187fcc65a5d4a3b065066b45ef9e45d1875f6
2023-12-02 12:25:45 +01:00
Ludovic Courtès
95ea1277ae
gnu: commencement: Use locales for the right libc version on GNU/Hurd.
Fixes <https://issues.guix.gnu.org/66472>.

Until now, we were unconditionally using ‘glibc-utf8-locales’, which
targets the glibc version used on Linux (2.35) rather than that used on
the Hurd (2.37).  This would lead to build failures due to the inability
to use locale encoding when targeting i586-gnu.

* gnu/packages/base.scm (glibc-utf8-locales/hurd): New variable.
* gnu/packages/commencement.scm (glibc-utf8-locales-final/hurd): New
variable.
(%boot5-inputs): Use it when ‘target-hurd?’ returns #t.
(%final-inputs): Likewise.

Change-Id: I1666d615dffbe3561cf2d9612b85cd31a48a7dcd
2023-11-25 16:29:25 +01:00
Liliana Marie Prikler
1328c4cca5
gnu: glibc: Fix CVE-2023-4911.
* gnu/packages/patches/glibc-2.35-CVE-2023-4911.patch: New file.
* gnu/local.mk: Register it here.
* gnu/packages/base.scm (glibc/fixed): New variable.
(glibc): Use it as replacement.
2023-10-12 06:49:02 +02:00
Ludovic Courtès
ae50099c46
gnu: glibc-utf8-locales: Reintroduce input labels.
Since 2f73ea3487,
‘make-glibc-utf8-locales’ couldn’t be passed a package with a name other
than “glibc” (in particular “glibc-hurd”) since the builder expects the
name “glibc” in ‘%build-inputs’.

* gnu/packages/base.scm (make-glibc-utf8-locales): Reintroduce labels in
‘native-inputs’.
2023-10-01 22:58:19 +02:00
Maxim Cournoyer
a6170fcd2b
gnu: Remove extraneous imports.
Found by running 'guild compile -W3 gnu/packages/$module.scm', using guild
from the upcoming Guile.

* gnu/packages/admin.scm: Remove extraneous imports.
* gnu/packages/avr.scm: Likewise.
* gnu/packages/base.scm: Likewise.
* gnu/packages/bootloaders.scm: Likewise.
* gnu/packages/firmware.scm: Likewise.
* gnu/packages/linphone.scm: Likewise.
* gnu/packages/telephony.scm: Likewise.
* gnu/packages/cran.scm: Likewise.
* gnu/packages/kde.scm: Likewise.
* gnu/packages/libcanberra.scm: Likewise.
* gnu/packages/libreoffice.scm: Likewise.
* gnu/packages/mes.scm: Likewise.
* gnu/packages/mingw.scm: Likewise.
* gnu/packages/serialization.scm: Likewise.
* gnu/packages/sync.scm: Likewise.
* gnu/packages/syncthing.scm: Likewise.
* gnu/packages/terminals.scm: Likewise.
* gnu/packages/version-control.scm: Likewise.
* gnu/packages/video.scm: Likewise.
* gnu/packages/wm.scm: Likewise.
* gnu/packages/emulators.scm: Likewise.

Reviewed-by: Ludovic Courtès <ludo@gnu.org>
2023-09-17 16:22:03 -04:00
Janneke Nieuwenhuizen
b2cc649999
gnu: glibc/hurd: Add unsubmitted getauxval patch from upstream.
This support building of gdk-pixbuf, gobject-introspection.

* gnu/packages/patches/glibc-hurd-getauxval.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/base.scm (glibc/hurd)[source]: Use it.
2023-09-14 23:52:37 +02:00
Josselin Poiret
6c447ababf
gnu: gcc-toolchain: Add empty librt.a.
* gnu/packages/commencememnt.scm (make-gcc-toolchain): Add empty librt.a.
* gnu/packages/base.scm (gcc): Add a warning regarding the missing librt.a.
2023-08-25 14:35:22 +02:00
Christopher Baines
560cb51e7b
gnu: commencement: Use system in %final-inputs.
Otherwise this causes odd issues, I presume arising from when %current-system
differs from the system argument passed to %final-inputs.

* gnu/packages/commencement.scm (%final-inputs): Set %current-system to
system.
* gnu/packages/base.scm (%final-inputs): Add optional system parameter.
* gnu/ci.scm (base-packages): New procedure to memoize the base packages
depending on system.
(package->job): Pass system to base-packages.

Co-authored-by: Josselin Poiret <dev@jpoiret.xyz>
Signed-off-by: Josselin Poiret <dev@jpoiret.xyz>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-08-18 16:02:34 +02:00
Janneke Nieuwenhuizen
97677bbda0
gnu: diffutils: Remove test-perror2 from XFAIL_TESTS on the Hurd.
* gnu/packages/base.scm (diffutils)[arguments]: When building natively on the
Hurd, Move "large-subopt" test from #:make-flags' XFAIL_TESTS to a new
'skip-tests' phase.  Remove #:make-flags for the Hurd, as "test-perror2" now
passes.
2023-07-20 10:11:32 +02:00
Janneke Nieuwenhuizen
bc8c6e2368
gnu: findutils: Move test-strerror_r from XFAIL to skip on the Hurd.
* gnu/packages/base.scm (findutils)[arguments]: When building natively on the
Hurd, remove #:make-flags as "test-strerror_r" fails non-deterministically.
Instead, add 'skip-test' phase and skip it.
2023-07-20 10:11:32 +02:00
Janneke Nieuwenhuizen
3cc72873d3
Revert "gnu: sed: Skip failing test on GNU/Hurd."
This reverts commit 7797570479, as
the gnulib "tests-perror2" test now passes.
2023-07-20 10:11:32 +02:00