1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-07 21:50:35 +02:00
Commit Graph

455 Commits

Author SHA1 Message Date
Ludovic Courtès
1ae20f03f4 gnu: Reference the inherited inputs values.
This commit was made by running this command:

  sed -e's/modify-inputs (package-\([a-z-]*\)inputs [a-zA-Z0-9-]\+)/modify-inputs \1inputs/g' -i gnu/packages/*.scm

… and then reverting individual hunks where the change would trigger unbound
variable warnings or other issues (such as ‘native-inputs’ is bound in the
body of the ‘inputs’ field, but it refers to the ‘native-inputs’ thunk defined
just above).

Change-Id: I6d94819f2809313fa1fbefc61897502ee7d66fab
2026-03-20 13:27:16 +01:00
Ludovic Courtès
2a50c9598b gnu: Reference the inherited ‘arguments’ value.
This commit was made by running this command:

  sed -e's/substitute-keyword-arguments (package-arguments [a-zA-Z0-9-]\+)/substitute-keyword-arguments arguments/g' -i gnu/packages/*.scm

… and then:

  1. reverting changes from ‘gnu/packages/rust.scm’ and
     ‘gnu/packages/java.scm’ since they would incur derivation changes and/or
     breakage;
  2. reverting the change for ‘gcc-final’ in ‘gnu/packages/commencement.scm’;
  3. reverting the change for ‘onnx-optimizer’, ‘openquest’, and ‘certbot’,
     which use ‘substitute-keyword-arguments’ for arguments that are not
     inherited (and thus ‘arguments’ would be unbound);
  4. reverting the change for ‘insight-toolkit-legacy’ and ‘wine64-staging’
     which make bogus assumptions about inherited arguments.

Change-Id: I122a7cf517b6b63cae38944b5d33ade4b1f5a89c
2026-03-20 13:27:15 +01:00
Maxim Cournoyer
2ce1fbc553 gnu: ftgl: Fix build.
* gnu/packages/patches/ftgl-ftcontour-type.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/gl.scm (ftgl) [source]: Apply it.

Change-Id: Ifaf78e18cd2d1ec1c706ebb5d649d7ead7df335a
2026-03-06 14:52:05 +01:00
Efraim Flashner
dbd4fd0e71 gnu: rust-cbindgen-cli: Build with newer clang.
* gnu/packages/rust-apps.scm (rust-bindgen-cli)[inputs]: Replace clang
with clang-18.
(rust-bindgen-cli-next): Remove variable.
* gnu/packages/gl.scm (mesa-opencl)[native-inputs]: Remove field.

Change-Id: I1ba0afbd46ac4c70807376c4993af431b775d699
2026-02-21 10:17:03 +01:00
Nicolas Graves
330909db92 gnu: mesa: Add python-packaging to native-inputs.
* gnu/packages/gl.scm (mesa)[native-inputs]: Add python-packaging.

Change-Id: I0a1c5ec7efc7c6d51491b418d90dfa4126c08c14
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-02-07 12:28:31 +01:00
Sharlatan Hellseher
b80dbd7d43 gnu: piglit: Use python-numpy@1.
* gnu/packages/gl.scm (piglit):
[inputs]: Remove python-numpy; add python-numpy-1.

Change-Id: I9d8975ebaff57e56fe293b7f2c6f5c86aa181115
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
2026-01-25 21:21:04 +01:00
Nicolas Graves
430bc7066a gnu: glad-0.1: Switch to pyproject.
* gnu/packages/gl.scm (glad-0.1):
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve them.
<#:tests?>: Disable them.
[native-inputs]: Add python-setuptools.

Change-Id: I3e2afc6238bd5d53af1104bd569e826a7759df3f
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-01 19:34:35 +00:00
John Kehayias
b26b379a28 gnu: glad: Use xvfb-run-for-tests.
This prevents xorg-server from having over 1,000 dependents.

* gnu/packages/gl.scm (glad)[native-inputs]: Use xvfb-run-for-tests instead of
xvfb-run.

Change-Id: I6b2fea1ba92395eef08fab77e5225b2abd95a954
2025-12-18 22:06:54 -05:00
Giacomo Leidi
c425bac93d Update Giacomo's email address.
The change was automated via:

git grep -l goodoldpaul@autistici.org |
    xargs sed -i 's/goodoldpaul@autistici.org/therewasa@fishinthecalculator.me/g'

* .mailmap: New entry.

Change-Id: I1629388334695d221647afe6a14faf61af5fe0d6
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
2025-12-03 14:38:09 +09:00
Ludovic Courtès
9fcfb93944 gnu: Use ‘define-deprecated-package’ for deprecated packages.
Use ‘define-deprecated-package’ instead of (define x (deprecated-package …))
throughout gnu/packages/*.scm.

Change-Id: I4e176da9ac660327489dab256ca4d12c4e78fe8d
2025-10-23 19:35:06 +02:00
Maxim Cournoyer
3fa30960ea gnu: mesa-opencl: Introduce rust-bindgen-cli-next to avoid mesa rebuild.
* gnu/packages/rust-apps.scm (rust-bindgen-cli-next): New variant.
(rust-bindgen-cli) [inputs]: Revert to use default clang.
* gnu/packages/gl.scm (mesa-opencl) [native-inputs]: Replace rust-bindgen-cli
with rust-bindgen-cli-next.

Change-Id: Ia1acb30869d368f54a3b41250ef4d95ebbcd90b0
2025-10-01 08:29:13 +09:00
Maxim Cournoyer
b733de0dce gnu: mesa-opencl-icd: Deprecate in favor of mesa-opencl.
The previously used Clover backend has been removed.

* gnu/packages/gl.scm (mesa-opencl-icd): Define as deprecated, using as
replacement...
(mesa-opencl): ... this, absorbing its icd file adjusting phase.
[#:modules]: New field.
[#:phases] {use-absolute-file-name-in-rusticl}: New phase.

Change-Id: If7ff766557dd37928e70d8e3ae03d7f1f467ab8a
2025-10-01 08:07:19 +09:00
Maxim Cournoyer
e2f6d4f961 gnu: mesa-opencl: Use the new rusticl OpenCL backend.
The previously used Clover backend has been removed.

* gnu/packages/gl.scm (mesa-opencl) [#:configure-flags]: Remove
gallium-opencl flag. Add gallium-rusticl and gallium-rusticl-enable-drivers.
* gnu/packages/rust-apps.scm (rust-bindgen-cli) [inputs]: Replace clang with
clang-18.

Change-Id: I4e3557816c9a5bb5c652295f1351c3bd8eac608d
2025-10-01 07:25:37 +09:00
Liliana Marie Prikler
9687e9d6d5 mesa: Re-enable dependency fallbacks.
* gnu/packages/gl.scm (mesa)[#:configure-flags]: Add “--wrap-mode=nodownload”.

(cherry picked from commit f0b058a54140fec3d2bb35a86496929d04a833c1)
2025-09-30 16:48:21 +09:00
John Kehayias
dd72e1b65d gnu: mesa: Update to 25.2.3.
* gnu/packages/gl.scm (mesa): Update to 25.2.3.

Change-Id: I28cee586fc49ba5aad9fa362260357e96d76977f
2025-09-30 16:48:21 +09:00
Sharlatan Hellseher
291929f785 gnu: meson: Update to 1.9.0.
* gnu/packages/build-tools.scm (meson): Update to 1.9.0.
[build-system]: Use pyproject.
[native-inputs]: Add python-setuptools.
[#:phases]: Adjust 'wrap phase for pyproject-build-system.
(meson-1.8): Remove variable.
* gnu/packages/gl.scm (mesa)[arguments]: Remove #:meson.

Co-authored-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Co-authored-by: Dariqq <dariqq@posteo.net>
Change-Id: I31932f24d1a54b8c79987296daaeb5a5285a8344
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Co-authored-by: John Kehayias <john@guixotic.coop>
(cherry picked from commit 3bcc621b2f4be2f75aaf2d8fa175f4f8df4f5688)
2025-09-30 16:48:21 +09:00
John Kehayias
58c345f56c gnu: libxml2: Update to 2.14.6; deprecate python-libxml2.
Python bindings for libxml2 are now built as part of libxml2; remove all
python-libxml2 inputs for libxml2 (nearly all already had libxml2) and
deprecate the package.  This was done manually using

git grep python-libxml2 gnu/packages

to find affected packages and then check all their input fields.

With the update to libxml2, we can remove all the libxml2-next* variants.
This change was automated with:

git grep -rl libxml2-next | xargs sed -i 's/\(libxml2-next\|libxml2-next-for-grafting\)/libxml2/g'

* gnu/packages/xml.scm (libxml2): Update to 2.14.6.
[arguments]<#:phases>: Add configure-python phase (from python-libxml2).
[native-inputs]: Add pkg-config and python-minimal.
(libxml2-next, libxml2-next/fixed, libxml2-next-for-grafting): Remove.
(python-libxml2): Deprecate in favor of libxml2.

Change-Id: I2976f2fde086e9bc345d661edbdc125abbb7a753
2025-09-30 16:48:20 +09:00
Maxim Cournoyer
ecdb88fcfb gnu: mesa: Update to 25.2.2.
* gnu/packages/gl.scm (mesa): Update to 25.2.2.

Change-Id: Iad91783d151000f6a7e43ce5d59f4b9b38aedc45
2025-09-30 16:48:18 +09:00
John Kehayias
23cc98e691 gnu: mesa: Update to 25.2.1.
* gnu/packages/gl.scm (mesa): Update to 25.2.1.

Change-Id: I4ee0255e6208b282ccca139c56e051a08170e026
2025-09-30 16:48:17 +09:00
John Kehayias
877a00dfa7 gnu: mesa: Update to 25.2.0.
Note: this is not the first "stable" release, but making this available for
testing as some configuration we used have been dropped upstream.

* gnu/packages/gl.scm (mesa): Update to 25.2.0.
[arguments]<#:meson>: Use meson-1.8.
<#:configure-flags>: Remove osmesa and gallium-xa flags (no longer available).
* gnu/packages/rust-crates.scm (mesa-cargo-inputs): Add rustc-hash.

Change-Id: I36d59582b5d827f78040a248a54fd11e2f982393
2025-09-30 16:48:17 +09:00
John Kehayias
05b9e21f40 gnu: mesa: Update to 25.1.6.
* gnu/packages/gl.scm (mesa): Update to 25.1.6.

Change-Id: I42e6d33411aea3876d84477212f5e21fadcf2605
2025-09-30 16:48:16 +09:00
Philipp Berger
f782f70cce gnu: mesa: Re-enable X11 protocol support for the DRI2 extension.
Starting with Mesa 24.3, X11 protocol support for the DRI2 extension is
no longer enabled by default.  The developers are phasing it out in
favor of DRI3, and have moved it into an optional 'legacy-x11' feature.
Re-enable it to retain hardware acceleration on older systems that do
not support DRI3.

* gnu/packages/gl.el (mesa)[arguments]<#:configure-flags>: Add
'-Dlegacy-x11=dri2'.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2025-09-30 16:48:16 +09:00
Maxim Cournoyer
c17cd7d964 gnu: mesa: Update to 25.1.5.
* gnu/packages/gl.scm (mesa): Update to 25.1.5.

Change-Id: Ic05db30a9c4d8ee8c165eb8455c245aa2e2afd85
2025-09-30 16:48:16 +09:00
Maxim Cournoyer
10482f731e Reapply "Update Maxim's email address."
This reverts commit a7db92d9b3, this time with
the more careful command, to avoid a world rebuild:

grep -rl --exclude-dir=build --exclude-dir=patches --exclude=ld-wrapper.in \
  --exclude=sitecustomize.py --exclude=guix-emacs.el maxim.cournoyer@gmail.com |
  xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g'

Change-Id: I0871f5cf9ace79e34e78e24154d0da6ea95a3a91
2025-09-18 13:44:12 +09:00
Maxim Cournoyer
a7db92d9b3 Revert "Update Maxim's email address."
This reverts commit d0d87a744d. Oops! This
caused a world rebuild.

Change-Id: I25fff644b2b61d0ee93d69b457b04c72b5b74d15
2025-09-18 12:07:31 +09:00
Maxim Cournoyer
d0d87a744d Update Maxim's email address.
The change was automated via:

  git grep -l maxim.cournoyer@gmail.com |
    xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g'

* .mailmap: New entry.

Change-Id: Iaa88b1e51c94159c49138fb43910badb990eb169
2025-09-18 08:05:19 +09:00
Sughosha
1c9be166c1 gnu: Add nanovg.
* gnu/packages/gl.scm (nanovg): New variable.

Change-Id: I89333066029e5277c979854c5f96b5e60d999579
Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
2025-09-17 14:14:20 +02:00
Hilton Chain
30c63b4678 gnu: mesa: Use subproject sources from (gnu packages rust-crates).
* gnu/packages/rust-crates.scm (mesa-cargo-inputs): New variable.
* gnu/packages/gl.scm (mesa)[arguments]<#:phases>: Use it in
‘patch-subproject-sources’ phase.

Change-Id: Iaddcd488b0394ef4448bb6155349623ec4e8fb8a
2025-08-21 19:08:25 +08:00
Maxim Cournoyer
38a020ed8e gnu: glad: Update to 2.0.8 and run tests.
* gnu/packages/gl.scm (glad): Update to 2.0.8.
[build-system]: Switch to pyproject-build-system.
[#:phases] {check}: New phase override.
[native-inputs]: Add python-setuptools, python-wheel and xvfb-run.

Change-Id: I20594a2bc880e080c089a7b9ae1a07cd332b5dce
2025-08-01 11:47:41 +09:00
宋文武
86c5509e28 gnu: ftgl: Fix build with newer freetype.
* gnu/packages/gl.scm (ftgl) [arguments]: Add -fpermissive to CXXFLAGS.

Change-Id: Id9d7c14b608c8352898467ecdff708b2b752b09c
2025-07-18 20:17:38 +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
Nicolas Graves
117de9378b gnu: soil: Add lint-hidden-cpe-vendors property.
* gnu/packages/gl.scm (soil)[properties]: Add lint-hidden-cpe-vendors.

Signed-off-by: Zheng Junjie <z572@z572.online>
2025-06-23 12:32:52 +08:00
Efraim Flashner
86524126a4 gnu: mesa: Adjust skipped tests on riscv64-linux.
* gnu/packages/gl.scm (mesa)[arguments]: Adjust the
'disable-failing-test phase on riscv64-linux for changes in the sources.

Change-Id: If78345c1fb67fc6c83d5b32d40319e13b3e80831
2025-06-11 08:45:44 +03:00
John Kehayias
3aa0d9de4b gnu: mesa: Update to 25.1.3.
* gnu/packages/gl.scm (mesa): Update to 25.1.3.

Change-Id: I1c19b1fab28400b6e9cce01a41813afb643242d1
2025-06-08 15:35:41 -04:00
John Kehayias
70a890468f gnu: mesa: Update to 25.1.2.
* gnu/packages/gl.scm (mesa): Update to 25.1.2.

Change-Id: I545b299ed95a5bf8966d8ff6365526d3a3a1f512
2025-06-08 15:35:40 -04:00
John Kehayias
21236055fe gnu: mesa: Update to 25.1.1.
* gnu/packages/gl.scm (mesa): Update to 25.1.1.

Change-Id: I3ab477ce7334b4ef066e7fd3c6adfdd35e8cea76
2025-06-08 15:35:35 -04:00
John Kehayias
9bdbef2e75 gnu: mesa: Update to 25.0.5.
* gnu/packages/gl.scm (mesa): Update to 25.0.5.

Change-Id: Iff5908185278c46053f2b687498774d1fea0bfb0
2025-06-08 15:35:34 -04:00
John Kehayias
d0c26df241 gnu: mesa: Update to 25.0.4.
* gnu/packages/gl.scm (mesa): Update to 25.0.4.

Change-Id: I3589d8e3b2570009f430b5b2068c98c469645ff6
2025-06-08 15:35:33 -04:00
John Kehayias
00ff01b4f1 gnu: mesa: Update to 25.0.3.
* gnu/packages/gl.scm (mesa): Update to 25.0.3.

Change-Id: I020a797b448cfa529bfc2849072ffc90ccd91371
2025-06-08 15:35:29 -04:00
John Kehayias
7c6070e61c gnu: mesa: Update to 25.0.2.
* gnu/packages/gl.scm (mesa): Update to 25.0.2.

Change-Id: I2daa62441a760577de5ae28bab4de1a46773a194
2025-06-08 15:35:27 -04:00
John Kehayias
a65ebe5fad gnu: mesa: Update to 24.3.2.
* gnu/packages/gl.scm (mesa): Update to 24.3.2.

Change-Id: Ie003db7cedb768752ad89cdfde039cdf4f5ce124
2025-01-05 20:28:22 -05:00
Efraim Flashner
ce7443bb67 gnu: mesa: Build asahi vulkan driver on aarch64-linux.
* gnu/packages/gl.scm (mesa)[arguments]: Adjust the configure-flags to
also build the asahi vulkan driver when building for aarch64.

Change-Id: I65320d254734b93c2d0a0891cdf329e7b3ff0c12
2025-01-05 20:28:19 -05:00
John Kehayias
e11df98795 gnu: mesa: Update to 24.3.1.
* gnu/packages/gl.scm (mesa): Update to 24.3.1.
[arguments]: Add 'set-home-directory phase (build tries to use a
shader cache, though this without it won't fail to build).

Change-Id: I1fd7d1fe20109ccdd7386a82ecf7d415999c262a
2025-01-05 20:28:17 -05:00
Andreas Enge
0376420e87 gnu: mesa: Use standard meson.
The meson variable now points to version 1.5.2, and meson-1.5 is
not defined.

* gnu/packages/gl.scm (mesa)[arguments]: Remove #:meson.

Change-Id: I2fa5aebdab048ef53488d2976173dab67134471e
2024-11-27 12:43:04 +01:00
John Kehayias
40b6729fd7 gnu: mesa: Update to 24.2.5.
* gnu/packages/gl.scm (mesa): Update to 24.2.5.

Change-Id: I84b8af46617fb414b564ceda6e9772dcee3f48d6
2024-11-05 11:56:51 -05:00
John Kehayias
22a2b66a82 gnu: mesa: Update to 24.2.4.
* gnu/packages/gl.scm (mesa): Update to 24.2.4.

Change-Id: I60a43d0344ff901c18d2b025aad7f0f9b925593b
2024-11-05 11:56:47 -05:00
John Kehayias
c236894563 gnu: mesa: Update to 24.2.3.
* gnu/packages/gl.scm (mesa): Update to 24.2.3.

Change-Id: I910baba6e1f5b9d4fb15dc37551d3dd5baabb940
2024-11-05 11:56:46 -05:00
aurtzy
6832edf804 gnu: mesa: Enable NVK driver for x86_64 architecture.
* gnu/packages/gl.scm (mesa)[native-inputs]: Add rust, rust-bindgen-cli,
rust-cbindgen-0.26 for x86_64.
[arguments]<#:meson>: Use newer version of meson to satisfy NVK build
requirements.
<#:configure-flags>: Use "auto" for 'vulkan-drivers' flag when target arch is
x86_64.
<#:phases>: Add 'patch-subproject-sources phase to patch rust subproject
sources when target arch is x86_64.
* gnu/packages/crates-io.scm (rust-paste-1, rust-proc-macro2-1, rust-quote-1,
rust-syn-2, rust-unicode-ident-1): Add a comment about being dependencies of
mesa.

Change-Id: I76e3db5072ca3c718155b188ca64b52766d55f36
Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-11-05 11:56:44 -05:00
Efraim Flashner
e13f4b10c5 gnu: mesa: Fix build on arm architectures.
* gnu/packages/gl.scm (mesa)[inputs]: When building for an arm platform
add python-pycparser.
[arguments]: When building for aarch64 or armhf don't add kmsro as a
gallium driver.
* gnu/packages/python-xyz.scm (python-pycparser): Mark as a dependency
for mesa.

Change-Id: I61182157418a6667fcbb0d4280c959a708119b0d
2024-11-05 11:56:38 -05:00
John Kehayias
fda63ca521 gnu: mesa: Update configure flags.
Previously, in 1ed0283fcc, mesa's configuration
options were altered to use "auto" as needed, while it looks like this was
inadvertently changed in 9b2a3e023f.  This meant
i915 dropped from x86/x86_64.  This commit restores the "auto" behavior where
it matched our previous driver list (or restored missing drivers).  See mesa's
meson.build for all options.

* gnu/packages/gl.scm (mesa)[arguments]: For gallium-drivers, use
"softpipe,llvmpipe" instead of the deprecated "swrast" option.  Use "auto"
in gallium-drivers and vulkan-drivers where it provides the same driver
list (or restores ones dropped from x86/x86_64).  Comment on differences from
"auto" where we don't use it.

Change-Id: I920701f71d19578f4913fda7372273955f0a9847
2024-11-05 11:56:31 -05:00