1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-07 13:40:36 +02:00
Commit Graph

355 Commits

Author SHA1 Message Date
Ludovic Courtès
ad461613d9 gnu: Use self-references to inputs for #:disallowed-references.
This allows ‘package-input-rewriting’ to operate as expected on these
packages.  Failing that, rewritten packages would still carry references to
non-rewritten packages in #:disallowed-references.

* gnu/packages/admin.scm (wpa-supplicant-gui): Use ‘this-package-native-input’
for #:disallowed-references.
* gnu/packages/fontutils.scm (freetype): Likewise.
* gnu/packages/glib.scm (glib-minimal): Likewise.
* gnu/packages/gnome.scm (cogl, gnome-shell): Likewise.
* gnu/packages/groff.scm (groff-minimal): Likewise.
* gnu/packages/gstreamer.scm (gstreamer): Likewise.
* gnu/packages/gtk.scm (gtk+): Likewise.
* gnu/packages/inkscape.scm (inkscape/pinned): Likewise.
* gnu/packages/java.scm (icedtea-8, openjdk9, openjdk10)
(openjdk11): Likewise.
* gnu/packages/linux.scm (f2fs-tools/static): Likewise.
* gnu/packages/man.scm (man-db): Likewise.
* gnu/packages/openldap.scm (389-ds-base): Likewise.
* gnu/packages/qt.scm (qtbase-5): Likewise.
* gnu/packages/rrdtool.scm (rrdtool): Likewise.
* gnu/packages/rust.scm (rust-bootstrapped-package): Likewise.
* gnu/packages/statistics.scm (r-with-tests): Likewise.
(r-minimal): Likewise.
* gnu/packages/texinfo.scm (info-reader): Likewise.
* gnu/packages/tls.scm (gnutls): Likewise.
(openssl-1.1): Likewise.
* gnu/packages/version-control.scm (git-minimal): Likewise.
(git): Likewise.
(gource): Likewise.
* gnu/packages/web.scm (mod-wsgi): Likewise.
* gnu/packages/xfce.scm (xfdesktop): Likewise.
* gnu/packages/perl.scm (perl-libtime-parsedate): Update comment.
* gnu/packages/video.scm (v4l-utils-minimal): Add FIXME comment.

Change-Id: I118ecd5894c24c53ec52c9208b0025ccfa3dd68a
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-11-09 22:13:37 +01: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
Efraim Flashner
838200a1f2 gnu: Add rust-1.88.
* gnu/packages/rust.scm (rust-1.88): New variable.

Change-Id: I158e90b421ae37e463c25eff221a903fd16a0286
Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-08-21 19:09:03 +08:00
Efraim Flashner
7b7f4f58c3 gnu: Add rust-1.87.
* gnu/packages/rust.scm (rust-1.87): New variable.

Change-Id: Ic7a6d98595f222109c720d3dd81f6180e8746add
Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-08-21 19:09:03 +08:00
Efraim Flashner
3fa7d00920 gnu: Add rust-1.86.
* gnu/packages/rust.scm (rust-1.86): New variable.

Change-Id: I01f4d4e0953199b6f26d639274b69c0c4c4164dd
Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-08-21 19:09:03 +08:00
Morgan Smith
2425b66ba5 gnu: rust-bootstrapped-package: Use modify-inputs.
* gnu/packages/rust.scm (rust-bootstrapped-package)[native-inputs]: Use
modify-inputs.
[arguments]: Set the #:disallowed-references argument.

Change-Id: Idf7390eeb3035bc509a21903e38aa0071603b484
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-08-21 19:08:56 +08:00
Efraim Flashner
e05f08a4e8 gnu: rust-1.75: Use rust-bootstrap-1.74 on some platforms.
* gnu/packges/rust.scm (rust-1.75)[arguments]: When building with
rust-bootstrap-1.74 add the add-cc-shim-to-path phase.
[native-inputs]: Build with rust-bootstrap-1.74 on platforms which have
support.
[inputs]: Replace llvm-15 with llvm-17.
(rust-1.76)[arguments]: Remove added add-cc-shim-to-path phase.
[inputs]: Don't replace llvm.

Change-Id: I3bbf5c6dd64617bdd100cc274fe754ffc1325223
2025-08-21 19:08:56 +08:00
Morgan Smith
e4169eafef gnu: Add rust-bootstrap-1.74.
* gnu/packages/rust.scm(rust-bootstrap-1.74): New variable.
(rust-bootstrap): Rename to rust-bootstrap-1.54.
(rust-1.55)[native-inputs]: Adjust accordingly.
* gnu/packages/emacs-xyz.scm (emacs-flycheck-rust)[native-inputs]: Adjust
accordingly.

Change-Id: Id88e200015ed6ab246407e37eeb4159cb4df195d
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-08-21 19:08:56 +08:00
Efraim Flashner
14c3cb1341 gnu: mrustc: Update to 0.11.2-1.06b87d1.
* gnu/packages/rust.scm (%mrustc-source): Update to 0.11.2-1.06b87d1.
[source]: Adjust snippet to allow for more compression types.

Co-authored-by: Morgan Smith <Morgan.J.Smith@outlook.com>
Change-Id: Icaa193451c72dfb41b1c87e9e40cfbcccc8aa152
2025-08-21 19:08:56 +08:00
Brennan Vincent
44b94a9276 gnu: rust: Install stdlib manifest with original checksums.
* gnu/packages/rust.scm (rust)[arguments]: Install stdlib manifest with
the original checksums.

Change-Id: I1100ffe4ff67c8e2026e802fc3902ec218e2efee
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-08-21 19:08:56 +08:00
Brennan Vincent
8ce4cae5c3 gnu: rust: Update to 1.85.
* gnu/packages/rust.scm (rust-1.85): New variable.
* gnu/packages/rust.scm (rust): Update to 1.85.
[source]: Update sources to unbundle.

Change-Id: Ifa7b223e478f05830d343f169c5e8b29501ade5c
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-08-21 19:07:57 +08:00
Efraim Flashner
e22c2b8493 gnu: rust: Don't wrap rust-analyzer with proc-macro-srv.
This is apparently not the correct action.

* gnu/packages/rust.scm (rust)[arguments]: Adjust the custom
'wrap-rust-analyzer phase to not wrap rust-analyzer with
rust-analyzer-proc-macro-srv.

Change-Id: I71e284f209a87b4c23c0657b564ab10de05e0937
2025-08-21 19:07:42 +08:00
Efraim Flashner
b9ce21a0e6 gnu: rust: Adjust skipped tests on riscv64-linux.
* gnu/packages/rust.scm (rust)[arguments]: Adjust the custom
'disable-tests-broken-on-riscv64 phase for tests broken on
riscv64-linux.

Change-Id: I6ffd451c75b45351a94cc07c5f4cf2db665aeef7
2025-08-21 19:07:41 +08:00
Efraim Flashner
9b3840ac5e gnu: rust: Adjust skipped tests on aarch64-linux.
* gnu/packages/rust.scm (rust)[arguments]: Adjust the custom
'disable-tests-broken-on-aarch64 phase for tests broken on
aarch64-linux.

Change-Id: I2ecad6134612e9558adea148b879b9a00aac12c6
2025-08-21 19:07:33 +08:00
Efraim Flashner
0f7ba06b6f gnu: rust: Update to 1.84.
* gnu/packages/rust.scm (rust): Update to 1.84.
[source]: Adjust snippet for directories to delete.
[arguments]: Only add 'disable-tests-broken-on-aarch64 phase for
aarch64.  Adjust other test modifying phases for changes in the test
suite.
[native-inputs]: Replace the clang-runtime sources from 17 to 19.
[properties]: Update the llvm cpu architecture.

Change-Id: I17a357534d168d87f11f497b25c297003bb76f2a
2025-08-21 19:07:30 +08:00
Efraim Flashner
035a319407 gnu: rust: Remove install script from all outputs.
* gnu/packages/rust.scm (rust)[arguments]: Adjust the custom
'remove-uninstall-script phase to not install the uninstall script in
any output.

Change-Id: I8be03d0badabb587668a7b44758702f3e17d2654
2025-08-21 19:07:29 +08:00
Efraim Flashner
0636946d93 gnu: Add rust-1.84.
* gnu/packages/rust.scm (rust-1.84): New variable.

Change-Id: Id803abe219dac829b1eb4bc4af9f4e43724980c7
2025-08-21 19:07:29 +08:00
Efraim Flashner
271fb33582 gnu: Add rust-1.83.
* gnu/packages/rust.scm (rust-1.83): New variable.

Change-Id: I662217b48ffc55bc3be9471c4ae886a349c95fbf
2025-08-21 19:07:29 +08:00
Efraim Flashner
79b676ff82 gnu: rust-analyze: Link to rust-analyze-proc-macro-srv.
* gnu/packages/rust.scm (rust)[arguments]: Build proc-macro-srv-cli
during the 'build phase.  Adjust the 'install phase to manually install
rust-analyzer-proc-macro-srv.  Adjust the 'wrap-rust-analyzer phase to
give the path to rust-analyzer-proc-macro-srv.

Change-Id: I6b8dcdca20183551a576fe2f0f5dd50dbe99d08c
2025-08-21 19:07:27 +08:00
Jean-Baptiste Note
7c43acd025 gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path.
* gnu/packages/rust.scm (rust)[native-search-paths]: Add
CARGO_HTTP_CAINFO native-search-path so that Cargo honors custom
certificates (a la GIT_SSL_CAINFO).

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Change-Id: I3eca13d8e12cbfd680cd33e22ff6d1aea7a7e379
2025-01-06 12:19:01 +02:00
Efraim Flashner
07bdee0277 gnu: mrustc: Update to 0.11.0-1.5e01a76.
* gnu/packages/rust.scm (%mrustc-commit): Update to newest commit.
(%mrustc-source): Update to 0.11.0-1.5e01a76.  Add a patch.  Adjust the
snippet to not use vendored openssl.
(rust-bootstrap)[source]: Remove patch, remove patch-flags.  Add to the
snippet a substitution for compatibility with llvm-13.
[inputs]: Remove input labels.  Remove conditional use of clang.
[arguments]: Allow parallel building on all architectures.  Update the
make-flags.  Replace the 'unpack phase to unpack the mrustc sources.
Delete the custom 'set-mrustc-sources and 'patch-cargo-checksum phases.
Adjust the custom 'patch-makefiles phase.  Adjust the 'configure and
'build phases to no longer use clang on some architectures.
* gnu/packages/patches/mrustc-patches.patch: New file.
* gnu/packages/patches/rustc-1.54.0-src.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Update it.

Change-Id: I7e444abe4b386b1bb77f05a278ddef45152ddb3c
2025-01-06 12:15:04 +02:00
Maxim Cournoyer
283ecf51fc gnu: rust-1.55: Use minimal variant of python-wrapper.
This should help reduce the number of times rebuilding the rust bootstrap
chain from scratch is needed when updating packages.

* gnu/packages/rust.scm (rust-1.55) [native-inputs]: Replace python-wrapper
with python-minimal-wrapper.

Change-Id: I92c88192c75353b22f374d5c301776d2bcc6b1db
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-01-06 12:14:58 +02:00
Efraim Flashner
d3185f33cd gnu: rust-bootstrap: Don't use parallel-build.
* gnu/packages/rust.scm (rust-bootstrap)[arguments]: Change
parallel-build? to be false on all architectures.

Change-Id: I36aa984f9d47e01d35270423dbf44d57182854f0
2025-01-06 12:14:57 +02:00
Efraim Flashner
46abb5212e gnu: make-rust-sysroot: Adjust for newer cross-gcc.
* gnu/packages/rust.scm (make-rust-sysroot/implementation)
[native-inputs]: Add gcc-14.

Change-Id: If9bc74bfe2e236accc39dc09e03b28dee62e332d
2024-12-05 14:09:20 +02:00
Efraim Flashner
d3c929a4bd gnu: make-rust-sysroot: Simplify native-inputs.
* gnu/packages/rust.scm (make-rust-sysroot/implementation)
[native-inputs]: Combine the different modify-input branches into one.

Change-Id: Ia7df5d1566099f9934a76b2660f46a55547c88b9
2024-12-05 14:07:47 +02:00
Efraim Flashner
be53521d4c gnu: make-rust-sysroot: Accept other mingw targets.
* gnu/packages/rust.scm (make-rust-sysroot/implementation)[arguments]:
Adjust the custom 'patch-for-mingw phase to generate the name of the
mingw input package based on the target architecture.
[inputs, native-inputs]: Use make-mingw-w64 to choose the mingw package
for the target.

Change-Id: I48638095a504675753e65fdb6f0286c31cebde66
2024-12-05 13:20:18 +02:00
Brennan Vincent
ff785d32e3 gnu: rust: Update to 1.82.
gnu/packages/rust.scm (rust-1.81)[source]: Add patch to fix bootstrap of
1.82 on riscv64.
gnu/packages/rust.scm (rust-1.82): New variable.
gnu/packages/rust.scm (rust): Update to 1.82.
[source]: Update snippet for newer version.
[arguments]: Disable more tests in the 'disable-tests-requiring-crates.io
phase.

Change-Id: If6ff59011edca7a230946a3ba77b51f26cd47789
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-11-28 11:05:03 +02:00
Efraim Flashner
defbf22797 gnu: make-rust-sysroot: Adjust for newer rust version.
* gnu/packages/rust.scm (make-rust-sysroot)[arguments]: Adjust
'unbundle-xz phase for changes in vendored libraries.  Delete inherited
'enable-profiling phase.

Change-Id: I27a5fc2e2a3f9ad3a32b71d1d28d984fb5bcc37e
2024-11-28 11:04:19 +02:00
Efraim Flashner
b8ad77fa1d gnu: rust: Build with clang sources for version 17.
* gnu/packages/rust.scm (rust)[native-inputs]: Update clang-source to 17.

Change-Id: I2b63b0c311eca9d66ea91deead26cf815018e977
2024-11-28 11:04:19 +02:00
Brennan Vincent
b78c6991e4 gnu: rust: Update to 1.81.
gnu/packages/rust.scm (rust-1.81): New variable.
gnu/packages/rust.scm (rust): Update to 1.81.

Change-Id: Idb1958364225bebb9aa415419083b6ab97d7c4c7
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-11-28 11:04:19 +02:00
Brennan Vincent
89d6561de9 gnu: rust: Update to 1.80.
gnu/packages/rust.scm (rust): Update to 1.80.

Change-Id: Ife65cb52362a30df8aabd4255a3fdc3c3d60e7bb
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-11-28 11:04:18 +02:00
Brennan Vincent
31fafd2270 gnu: Add rust-1.80.
gnu/packages/rust.scm (rust-1.80): New variable.

Change-Id: Ie7dd276f7b4d606660557f3da42064b04dda1435
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-11-28 11:04:18 +02:00
Brennan Vincent
40d3ae1132 gnu: rust: Update to 1.79.
* gnu/packages/rust.scm (rust): Update to 1.79.
[source]: Adjust snippet of removed bundled sources.

Change-Id: Ic43b4c540413a0e1a08d46cca5a092badc221753
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-11-28 11:04:18 +02:00
Brennan Vincent
d3f5963b7c gnu: rust: Update to 1.78.
* gnu/packages/rust.scm (rust): Update to 1.78.
[source]: Adjust removal of bundled source libraries.
[arguments]: Add a phase skipping tests requiring crates.io.
(rust-1.78)[source]: Add patch.
* gnu/packages/patches/rust-1.78-unwinding-fix.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.

Change-Id: I7bf37a9321447ac21644af0e2d023b8bc556da59
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-11-28 11:04:08 +02:00
Maxim Cournoyer
f719373583 gnu: make-rust-sysroot/implementation: Use gexps.
* gnu/packages/rust.scm (make-rust-sysroot/implementation): Use gexps.

Change-Id: Ie35ca201c2a55f00023dad02a0d1121b6f298812
2024-08-31 10:44:46 +02:00
Efraim Flashner
6c5edd3e68 gnu: rust: Fix building.
* gnu/packages/rust.scm (rust)[arguments]: Adjust 'unpack-compiler-rt
phase to correctly copy the sources into the target directory.  Adjust
'enable-profiling phase to come after an existing phase.
[native-inputs]: Add clang-runtime-source.

Change-Id: I2e05fa86c4eaf8c2f5f3562d9f7939cd881cde3f
2024-08-31 10:44:44 +02:00
Milkey Mouse
3a930659a4 gnu: rust: Add profiling support.
* gnu/packages/rust.scm (rust-1.52)
[phases] <unpack-profiler-rt, enable-profiling>: New phases.

Change-Id: Iecb4aef518e52f71ff7f539778bf0341288a3458
2024-08-31 10:44:36 +02:00
Ludovic Courtès
c48f446444 gnu: rust: Run linker under C.UTF-8 instead of en_US.UTF-8.
This is a followup to 02d21712be1eb31a917313662b924763e81affb3.

* gnu/packages/rust.scm (rust-1.55)[arguments]: In
‘set-linker-locale-to-utf8’, change to C.UTF-8.

Change-Id: I94f27123ca8ac4761fd9bae6267c3a9d122b3a1d
2024-08-31 10:44:21 +02:00
Maxime Devos
90f7b09550 gnu: rust: Add 'bash' input for 'wrap-program'.
It is required for cross-compilation.

* gnu/packages/rust.scm
(rust-bootstrap)[inputs]: Add 'bash-minimal'.
(rust-1.55)[inputs]: Likewise.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I8f0f71b236504d6a2e04c5823fbf20f926485992
2024-08-31 10:42:45 +02:00
Efraim Flashner
6736533dcb gnu: rust: Update to 1.77.1.
* gnu/packages/rust.scm (rust-1.77): Update to 1.77.1.
[arguments]: Skip another test when building for riscv64-linux.

Change-Id: I5a38ed2a809b911be5750646c29c44fcac1f0d02
2024-07-19 00:46:42 +03:00
Efraim Flashner
4fbfb4ddde gnu: rust: Skip another test on riscv64-linux.
* gnu/packages/rust.scm (rust)[arguments]: When building for
riscv64-linux skip another test.

Change-Id: I2ec02d2fc441b890a576972e321a576cd13a1c8e
2024-07-19 00:44:54 +03:00
Brennan Vincent
80f58e508f gnu: rust: Update to 1.77.0.
* gnu/packages/rust.scm (rust): Base main rust package on rust-1.77.
[source]: Remove another vendored copy of zlib.

Change-Id: Ia4611b0ea153bce1de97e711af6d3f7396a6bf85
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-07-19 00:43:50 +03:00
Efraim Flashner
25421f3719 gnu: rust: Skip another test on riscv64-linux.
* gnu/packages/rust.scm (rust)[arguments]: When building for
riscv64-linux skip another test.

Change-Id: I29654d0c2f7a62a8a0e5beeea3bc899510cedc71
2024-07-19 00:42:49 +03:00
Brennan Vincent
c76176a6c6 gnu: rust: Update to 1.76.0.
* gnu/packages/rust.scm (rust): Update to 1.76.0.
[source]: Remove another copy of jemalloc.
[properties]: Update clang-compiler-cpu-architecture to 17.

Change-Id: I363d789ab22d2937eeb3846dec460ac902c44255
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-07-19 00:40:13 +03:00
Christopher Baines
67b212ff60 gnu: rust: Guard against unsupported rust targets.
As cross-libc may return #f in this case, and the config.toml file
construction will also fail if the platform rust-target is #f..

* gnu/packages/rust.scm (make-rust-sysroot/implementation): Guard against
unsupported rust targets.

Change-Id: Ia0d5c889c6f5cd3478ad985c79feb9ba1c472c29
2024-07-15 22:34:24 +01:00
Efraim Flashner
41891ea973 gnu: Add rust-1.79.
* gnu/packages/rust.scm (rust-1.79): New variable.

Change-Id: Idf54e6504eca7e8cf8a49e664e5aa6c8ff18555d
2024-06-26 12:35:26 +03:00
Efraim Flashner
0fd8c0031e gnu: Add rust-1.78.
* gnu/packages/rust.scm (rust-1.78): New variable.

Change-Id: Iab24c4f130e208d9152448d7be5899ab8c13456f
2024-06-26 12:35:26 +03:00
Brennan Vincent
a47b695926 gnu: Add rust-1.77.0.
* gnu/packages/rust.scm (rust-1.77): New variable.

Change-Id: Ia4611b0ea153bce1de97e711af6d3f7396a6bf85
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-06-26 12:35:26 +03:00