Commit graph

173157 commits

Author SHA1 Message Date
Maxim Cournoyer
9d60fdf6a2
Revert "elf: Remove bundled Guile source."
This reverts commit 11cf5b2fe4.
2025-10-30 16:19:49 +09:00
Maxim Cournoyer
e0148efc7f
Revert "gnu: gcc-mesboot: Raise default timeout via property."
This reverts commit f4768a9a9d.
2025-10-30 16:19:47 +09:00
Maxim Cournoyer
f4768a9a9d
gnu: gcc-mesboot: Raise default timeout via property.
It was found to time out in the CI after 21600 seconds.

* gnu/packages/commencement.scm (gcc-mesboot) [properties]: New field.

Change-Id: Idec8a668f4f15e9ed3712d505b82704260b4295d
2025-10-30 16:13:03 +09:00
Maxim Cournoyer
11cf5b2fe4
elf: Remove bundled Guile source.
This module has been included in Guile as (system vm elf) since around version
2.1.

* guix/elf.scm: Delete file.
* CODEOWNERS: De-register module.
* Makefile.am (MODULES): Likewise.
* etc/teams.scm (core): Likewise.
* gnu/build/linux-modules.scm: Adjust imports.
* gnu/packages/gnuzilla.scm (icecat-minimal) [modules]: Likewise.
* gnu/packages/librewolf.scm (librewolf): Likewise.
* gnu/packages/sequoia.scm (sequoia): Likewise.
* gnu/packages/tor-browsers.scm (make-torbrowser): Likewise.
* gnu/packages/version-control.scm (hg-commitsigs): Likewise.
* guix/build/debug-link.scm: Likewise.
* guix/build/gnu-build-system.scm: Likewise.
* guix/build/gremlin.scm: Likewise.
* guix/build/meson-build-system.scm: Likewise.
* guix/grafts.scm (graft-derivation/shallow): Likewise.
* guix/scripts/pack.scm (wrapped-package): Likewise.
* tests/debug-link.scm: ("elf-debuglink", "set-debuglink-crc"): Likewise.
* tests/gremlin.scm: Likewise.
* guix/build-system/gnu.scm (%default-gnu-imported-modules): Remove (guix elf).

Change-Id: I86ac4237fdd820a6b54dc0fe7a7d10403a290ef9
2025-10-30 16:13:03 +09:00
Maxim Cournoyer
2c1fe0df11
Use mmap for the elf parser, reducing memory usage.
The `file->bytevector' new procedure uses a memory mapped bytevector, so
parsing the ELF file reads only the sections needed, not the whole file.

* guix/scripts/pack.scm (wrapped-package): Use file->bytevector.
* guix/build/gremlin.scm (file-dynamic-info): Likewise.
(validate-needed-in-runpath): Likewise.
(strip-runpath): Likewise, and write to bytevector directly, avoiding a port.
(set-file-runpath): Likewise.
* tests/gremlin.scm (read-elf): Delete procedure.
("elf-dynamic-info-needed, executable"): Use file-dynamic-info.
("strip-runpath"): Likewise.
("elf-dynamic-info-soname"): Likewise.
 guix/build/debug-link.scm (set-debuglink-crc): Use file->bytevector.
* tests/debug-link.scm (read-elf): Delete procedure.
("elf-debuglink"): Rename to...
("elf-debuglink, no .gnu_debuglink section"): ... this.
("elf-debuglink", "set-debuglink-crc"): Use external store, and adjust to use
file->bytevector.
* gnu/packages/gnuzilla.scm (icecat-minimal) [#:phases]
{build-sandbox-whitelist}: Use `file-runpath'.
* gnu/packages/librewolf.scm (librewolf): Likewise.

Fixes: <https://issues.guix.gnu.org/59365>
Fixes: #1262
Change-Id: I43b77ed0cdc38994ea89d3d401e0d136aa6b187a
2025-10-30 16:13:03 +09:00
Maxim Cournoyer
e1994a0214
syscalls: Add mmap support.
* guix/build/syscalls.scm (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC)
(PROT_SEM, MAP_SHARED, MAP_PRIVATE, MAP_FAILED)
(MS_ASYNC, MS_INVALIDATE, MS_SYNC)
(%mmap-guardian, %unmapped-bytevectors): New variables.
(unmapped-bytevector?, pump-mmap-guardian, %mmap, mmap, %munmap, munmap)
(%msync, msync): New procedures.
* guix/build/io.scm: New file.
* Makefile.am: Register it.
* tests/syscalls.scm (strace-output): New variable.
("mmap and munmap", "file->bytevector, reading", "file->bytevector, writing")
("manual munmap does not lead to double free"): New tests.

Change-Id: I19ec687899eda635559e91200dd8d98669b0e35f
2025-10-30 16:13:03 +09:00
Maxim Cournoyer
36a90a1a04
gnu: hunspell: Update to 1.7.2.
* gnu/packages/hunspell.scm (hunspell): Update to 1.7.2.
[native-inputs]: Add gettext-minimal.

Change-Id: Ibdc4378c90a1a1fbad0134f6d7744fad2aac3d86
2025-10-30 16:13:03 +09:00
Maxim Cournoyer
db051f5715
gnu: autoconf: Update to 2.72.
* gnu/packages/autotools.scm (autoconf): Point to autoconf-2.72.
* gnu/packages/dbm.scm (bdb-4.8) [native-inputs]: Replace autoconf with
autoconf-2.69.

Change-Id: Ifa0fdd7bab21aa585e729f4e6ccf8ab15b0f73f3
2025-10-30 16:13:03 +09:00
Maxim Cournoyer
1fc884a374
gnu: help2man: Update to 1.49.3.
* gnu/packages/man.scm (help2man): Update to 1.49.3.

Change-Id: I9fc62620e89ca1f66b5ec402b19c639425ee5ecb
2025-10-30 16:13:03 +09:00
Maxim Cournoyer
e6f3c37fa2
gnu: gettext-minimal: Update to 0.26.
* gnu/packages/gettext.scm (gettext-minimal): Update to 0.26.

Change-Id: I7d594b6a89a7e12a5e0ed2da7875407800e33415
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
6c3e5f1665
gnu: acl: Update to 2.3.2.
* gnu/packages/acl.scm (acl): Update to 2.3.2.

Change-Id: I379bc4428abbb951f5befa1d8da5fbac4dfbeeb8
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
da8179893f
gnu: libtool: Update to 2.5.4.
* gnu/packages/autotools.scm (libtool): Update to 2.5.4.
[source]: Delete patches.
[#:phases] {skip-some-tests-on-extra-archs}: New phases.
* gnu/packages/patches/libtool-grep-compat.patch: Delete file.
* gnu/packages/patches/libtool-skip-tests2.patch: Likewise.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.

Change-Id: I6f16e7edd996c5b577acdbbd4905ec63d27b3655
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
c334cf0bb9
gnu: flex: Move bison-for-tests input to native inputs.
If it's truly for tests, it ought to be a native inputs.

* gnu/packages/flex.scm (flex) [inputs]: Delete field, moving bison-for-tests...
[native-inputs]: ... here.

Change-Id: I7fa30de00b1a6386d495403a619f412daa9d1ab5
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
6faa102a04
gnu: flex: Apply a patch fixing a non-deterministic build failure.
* gnu/packages/patches/flex-fix-make-dependencies.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/flex.scm (flex) [source]: Apply it, wrapping the origin in a
bootstrap-origin call to avoid a circular dependency problem.

Change-Id: I7b9994a9239bdafa5c7768b9f954870716c76ad7
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
81fcd98bac
gnu: m4: Update to 1.4.20.
* gnu/packages/m4.scm (m4): Update to 1.4.20.

Change-Id: I8c1d352f8bb7142e196d301254e19c322a9c498a
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
7fc35b3465
gnu: ed: Update to 1.22.2.
* gnu/packages/text-editors.scm (ed): Update to 1.22.2.

Change-Id: Ib2a2fa6c5a5171337849f56edc609db1b506350b
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
1d73b616a9
gnu: bash: Update to 5.3.
* gnu/packages/bash.scm (patch-url): Update URL.
(%patch-series-5.2): Rename to...
(%patch-series-5.3): ... this, and update patch series.
(bash): Update to 5.3.  Adjust for the above accordingly.

Change-Id: Iac8ad192ba8246d500d995382fe46e4cd368eecc
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
9cceaad44a
gnu: readline: Update to 8.3.
* gnu/packages/readline.scm (%patch-series-8.2): Rename to...
(%patch-series-8.3): ... this, and update.
(readline): Update to 8.3.  Adjust for the above.

Change-Id: I9109153748f65650e82f5fcf27e926b888476dd8
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
6dec2fbccb
gnu: xz: Update to 5.8.1.
* gnu/packages/compression.scm (xz): Update to 5.8.1.

Change-Id: I34bd64c5e18ea331e4bfe91d79dd419486296fe3
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
0688d27174
build/gnu: Add a compress-debug-info phase.
This new phase reduces the debug output of large C++ packages such as
qtdeclarative by about 20%.

* guix/build/gnu-build-system.scm (compress-debug-info): New procedure.
(%standard-phases): Register it.

Relates-to: #3617
Change-Id: I9463f1299d97c20eee5d6f685a2f1abbb05545f0
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
2ac2a4877d
build/gnu: Do not attempt to strip Guile byte-compiled files.
This fails and produces noise and spurious debug files.

* guix/build/gnu-build-system.scm (strip) <guile-bytecode?>: New predicate.
Use it to filter out .go files from the files to be stripped.

Change-Id: I3063083a7d04d903d85d28d9526fdec079914fce
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
86b4c975e9
gnu %final-inputs: Add dwz-final.
* gnu/packages/commencement.scm (%final-inputs): Register dwz-final.

Change-Id: Iff6842cbf691d3ea38bdfecc7d3816b0806d6f0d
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
4e2a5b27dd
gnu: Add dwz-final.
* gnu/packages/commencement.scm (dwz-final): New variable.

Change-Id: I2a0453fbca2184e3f31c9b92190dfd7259c5541a
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
c97232c4d3
gnu: Add xxhash-final.
* gnu/packages/commencement.scm (xxhash-final): New variable.

Change-Id: Ib3839b2233026527c8bf942db9cd9904eb079c5f
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
7d5721de9a
gnu: Add elfutils-final.
* gnu/packages/commencement.scm (elfutils-final): New variable.

Change-Id: Ibcd0cdf2ba2d90232f097ea6599548e30aeb20d8
2025-10-30 16:13:02 +09:00
Maxim Cournoyer
88945309b2
gnu: Add dwz.
* gnu/packages/elf.scm (dwz): New variable.

Co-authored-by: Danny Milosavljevic <dannym@friendly-machines.com>
Change-Id: I6d328109c246ee098680a14eed556d29b890a057
2025-10-30 16:13:01 +09:00
Maxim Cournoyer
87a23070f2
gnu: binutils: Use zstd compression level 19.
* gnu/packages/base.scm (binutils) [#:phases]
{use-zstd-compression-level-19}: New phase.
(binutils-gold) [#:phases]
{use-zstd-compression-level-19-for-gold}: New phase.

Change-Id: I0e75329bb231dba39db61a880eb306c58c0acc11
2025-10-30 16:13:01 +09:00
Maxim Cournoyer
6f229017f5
gnu: binutils-boot0: Refactor arguments.
When the inherited binutils package had a #:phases argument, it would replace
that fo binutils-boot0 (being appended), and causing breakage.

* gnu/packages/commencement.scm (binutils-boot0): Do not append the inherited
binutils arguments; modify them with a chained ensure-keyword-arguments and
substitute-keyword-arguments.

Suggested-by: Rutherther <rutherther@ditigal.xyz>
Change-Id: If1245556e363b9a1da2e2bb65c83e3b3aa4ff6de
2025-10-30 16:13:01 +09:00
Maxim Cournoyer
16f0f497cd
gnu: binutils: Enable zstd compression.
* gnu/packages/base.scm (binutils) [native-inputs]: Add pkg-config.
[inputs]: Add zstd:lib.
(binutils-gold) [#:phases] {set-LD_LIBRARY_PATH}: New phase.

Change-Id: I344242724b5978c98dd20d8309de02702e78cf9a
2025-10-30 16:13:01 +09:00
Maxim Cournoyer
3410d8bdc8
gnu: binutils: Do not compress debug sections.
This is in preparation to a new phase which will deduplicate debug symbols
with dwz (and compress them after via objcopy).

* gnu/packages/base.scm (binutils) [#:configure-flags]: Remove
--enable-compressed-debug-sections=all.

Change-Id: I992bc680f3e5f7bb6b7aae81e9311352745402cf
2025-10-30 16:13:01 +09:00
Maxim Cournoyer
afe80d2a63
gnu: binutils: Fix indentation.
* gnu/packages/base.scm (binutils): Fix indentation.

Change-Id: Icd8d298e00ae6c826aaef5f4e59688b6d8374b9e
2025-10-30 16:13:01 +09:00
Maxim Cournoyer
0c1de511f8
gnu: binutils-final: Enable zstd support.
* gnu/packages/commencement.scm (binutils-final)
[#:allowed-references]: Add zstd-final:lib.
[native-inputs]: Add pkg-config-final.
[inputs]: Add zstd-final:lib.

Change-Id: I2c57f376f79ab866bce4456a41e752fcfa5c9826
2025-10-30 16:13:01 +09:00
Maxim Cournoyer
72a99ff1a7
gnu: Add pkg-config-final.
* gnu/packages/commencement.scm (pkg-config-final): New package.
(make-gnu-make-final): Use it.

Change-Id: I1452a09e765de863ac9725ac7924a0a97d3010ca
2025-10-30 16:13:01 +09:00
Maxim Cournoyer
75d24fbfef
gnu: %final-inputs: Use zstd-final.
* gnu/packages/commencement.scm (%final-inputs): Use zstd-final instead of
computing it, now that there's a binding for it.

Change-Id: I3d28538b56f2480397d827cd4dac1275f0d27d66
2025-10-30 16:13:01 +09:00
Maxim Cournoyer
e945001f04
gnu: Add zstd-final.
* gnu/packages/commencement.scm (zstd-final): New variable.

Change-Id: Ic6bef892f35a4bca809ff80dd279190b0f4902bd
2025-10-30 16:13:01 +09:00
Sharlatan Hellseher
cfb5331b36
gnu: python-parabam: Update to 3.0.1-0.be5bd35, fix build.
* gnu/packages/bioinformatics.scm (python-parabam): Update to
be5bd35012d37df8cfa88771325a0273519c8c98 commit.
[source]: Switch to git-fetch.
[arguments] <tests?>: No tests.
<phases>: Add 'cythonize.
[native-inputs]: Remove python-wheel; add python-cython.

Change-Id: I56e2dbeac106f2942289e2b751520b3bf1abb60f
2025-10-29 21:44:27 +00:00
Sharlatan Hellseher
5024471e4c
gnu: python-schema-0.5: Deprecate in favor of python-schema.
There is no any users in Guix main channel, keeping the symbol for one
month.

* gnu/packages/python-xyz.scm (python-schema-0.5): Deprecate variable.

Change-Id: I099b91df49448eae5f38b066eca0ae6f61f80a5c
2025-10-29 21:20:44 +00:00
Hugo Buddelmeijer
e3f81f5955
gnu: python-usbrelay: Fix build.
* gnu/packages/hardware.scm (python-usbrelay): Fix build.
[arguments] <#:phases>: Replace 'check phase.
[native-inputs]: Remove python-wheel.

Change-Id: I8b1de9158c277e83775fad4cab9ce56f87a8caab
2025-10-29 21:02:42 +00:00
Hugo Buddelmeijer
b9c385a274
gnu: python-paho-mqtt: Update to 2.1.0.
* gnu/packages/messaging.scm (python-paho-mqtt): Update to 2.1.0.
[build-system]: Switch to pyproject-build system.
[arguments] <#:phases>: Add 'patch-tests phase, remove replaced 'check
phase.
[native-inputs]: Add python-hatchling.

Change-Id: I150e2854bd92c66abc751ef8f9b9923d9e90dee4
2025-10-29 21:02:42 +00:00
Hugo Buddelmeijer
9324583cdb
gnu: python-ws4py: Update to 0.6.0.
* gnu/packages/python-web.scm (python-ws4py): Update to 0.6.0.
[build-system]: Switch to pyproject-build-system.
[arguments]: Use gexps.
<#:phases>: remove 'python3.7-compatibility phase.
[native-inputs]: Add python-setuptools and python-pytest.

Change-Id: Ia1c4d66f329ca0acd32d2b934836347b19cb711a
2025-10-29 21:02:42 +00:00
Hugo Buddelmeijer
d5e5bbc5cc
gnu: python-gipc: Enable tests.
* gnu/packages/python-xyz.scm (python-gipc)
[arguments] <tests?>: Enable them.
<phases>: Add 'adjust-for-pytest-8 phase.

Change-Id: Ib118dfd8f6cff1400e19880f1a96460fbac343b9
2025-10-29 21:02:42 +00:00
Hugo Buddelmeijer
86f8e74255
gnu: python-asprin: Fix build.
* gnu/packages/potassco.scm (python-asprin): Fix build.
[arguments] <#:phases>: Replace 'check phase.
[native-inputs]: Remove python-wheel.

Change-Id: I1f5b6418e50812bef5ba565877e8cdf4cd04d632
2025-10-29 21:02:42 +00:00
Andreas Enge
4e62f1cc47
Revert "gnu: python-fenics-ufl: Update to 2025.1.0."
This reverts commit 5c522a1abf.

The update breaks depending packages.
2025-10-29 21:56:06 +01:00
Ghislain Vaillant
3ba9d0ce8d
gnu: Add python-aiohttp-retry.
* gnu/packages/python-web.scm (python-aiohttp-retry): New variable.

Change-Id: I46f42d0f6a205a264eb1e9c9d00e3cd792dbfe3c
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-10-29 20:44:08 +00:00
Andreas Enge
06bfb782f8
CODEOWNERS: Really order files alphabetically.
This is a follow-up to commit fe59616ba0
and necessary to keep the file as-is through autogeneration.

* CODEOWNERS: Regenerate file.

Change-Id: I273b0d4142e3cb7ea55351ca46f64001588f7548
2025-10-29 20:46:34 +01:00
Andreas Enge
ce30e397c4
gnu: python-slepc4py: Update to 3.24.0.
* gnu/packages/maths.scm (python-slepc4py): Update to 3.24.0.

Change-Id: I23786bf36ed8dbbdad7f4b18e5985075487c4bcd
2025-10-29 20:40:33 +01:00
Andreas Enge
6aec9a02ee
gnu: python-petsc4py: Update to 3.24.0.
* gnu/packages/maths.scm (python-petsc4py): Update to 3.24.0.

Change-Id: I8c530eadc777bfb26e7539594355f11c03c0f062
2025-10-29 20:40:33 +01:00
Andreas Enge
a41a0ee1ab
gnu: slepc: Update to 3.24.0.
* gnu/packages/maths.scm (slepc): Update to 3.24.0.

Change-Id: I7924a3e1248c8c056f0978784f67f2723437d1f9
2025-10-29 20:40:33 +01:00
Andreas Enge
546bf3de63
gnu: petsc-openmpi: Delete phase.
* gnu/packages/maths.scm (petsc-openmpi)[arguments]<#:phases>
{adjust-pt-scotch-library-names}: Remove.

Change-Id: Id138e82e4ab9f7f68991dfe8f835cc95cd7e3250
2025-10-29 20:40:33 +01:00
Andreas Enge
520dc14d02
gnu: petsc: Update to 3.24.0.
* gnu/packages/maths.scm (petsc): Update to 3.24.0.

Change-Id: Ibf05808578d2c7f50c3949458945ca93725653ec
2025-10-29 20:40:24 +01:00