Commit Graph

281 Commits

Author SHA1 Message Date
Efraim Flashner
3bc167f42e
gnu: rust: Update to 1.75.0.
* gnu/packages/rust.scm (rust-1.75): New variable.
(rust): Update to 1.75.0.
[arguments]: Adjust substitutions in custom phases for changes in source
code.

Change-Id: I0065d09a297e227e58998455bb90d18304fd6729
2024-02-20 13:57:01 +02:00
Efraim Flashner
1151cd6cf0
gnu: rust-1.55: Build without jemalloc.
* gnu/packages/rust.scm (rust-1.55)[arguments]: Remove references to
jemalloc in custom 'configure phase and set rust to build without
jemalloc.
[inputs]: Remove jemalloc.

Change-Id: I388688111c897b15feb6ccee3374219b82f64169
2024-02-20 13:56:20 +02:00
Efraim Flashner
3a076fc06e
gnu: rust: Use platform-rust-target.
* gnu/packages/rust.scm (nix-system->gnu-triplet-for-rust): Remove
procedure.
(rust-bootstrap)[arguments]: Adjust make-flags, custom 'install phase
to use platform-rust-target.
(rust-1.55)[arguments]: Adjust custom 'configure and 'install phases to
use platform-rust-target.
(make-rust-sysroot)[arguments]: Adjust custom 'configure phase to use
platform-rust-target.

Change-Id: I102d44231c1411ea14ca75170f4884304d11bee1
2024-02-20 13:56:20 +02:00
Efraim Flashner
4bf325381f
gnu: rust: Update to 1.74.1.
* gnu/packages/rust.scm (rust-1.74): New variable.
(rust): Inherit from rust-1.74.
[arguments]: Don't inherit #:tests.

Change-Id: I9724ccbc93bbfd4e1bdf1d6a20dfa7a4d0ea3a5e
2024-02-20 13:56:20 +02:00
Efraim Flashner
072a9c60ab
gnu: rust: Move remove-uninstall-script to rust.
* gnu/packages/rust.scm (rust)[arguments]: Add 'remove-uninstall-script
phase.
(make-rust-sysroot)[arguments]: Remove 'remove-uninstall-script phase.

Change-Id: I45bcaaa89003693b490b914efbfa34236a8f4db6
2024-02-20 13:56:17 +02:00
Ludovic Courtès
db43edaa0a
gnu: Make intermediate packages public but hidden.
This makes those packages visible to (gnu ci), giving them first class
in the eyes of Cuirass and similar tools, in turn ensuring substitutes
are available (this was discovered by running ‘guix weather -c 10’).

* gnu/packages/rust.scm (rust-bootstrap, rust-1.55)
(rust-1.56, rust-1.57, rust-1.58, rust-1.59, rust-1.60)
(rust-1.61, rust-1.62, rust-1.63, rust-1.64, rust-1.65)
(rust-1.66, rust-1.67, rust-1.68, rust-1.69, rust-1.70)
(rust-1.71, rust-1.72, rust-1.73): Make variable public and add
‘hidden?’ property.
(rust): Remove ‘hidden?’ property.
* gnu/packages/java.scm (java-hamcrest-parent-pom)
(java-org-ow2-parent-pom-1.3, java-asm-bootstrap): Make variable public
and add ‘hidden?’ property.
* gnu/packages/ocaml.scm (dune-bootstrap)
(ocaml4.09-dune-bootstrap, ocaml5.0-dune-bootstrap): Likewise.

Change-Id: I32b0ea639a4f1c39466875acdbc9cbadf75c7668
2024-01-14 23:00:02 +01:00
Christopher Baines
d162bd0e72
packages: rust: Memoize make-rust-sysroot results.
To ensure that it just returns a single package record for some given
arguments, as this helps to avoid poor performance of the store connection
object cache.

Performance with computing the cross derivations is important for the data
service, as it's currently very slow to process revisions.

* gnu/packages/rust.scm (make-rust-sysroot): Move code to
make-rust-sysroot/implementation.
(make-rust-sysroot/implementation): New variable.

Change-Id: Ibb30c7398328c87c032bb8828635a34ada935167
2024-01-12 12:06:57 +00:00
Efraim Flashner
5f812344d2
gnu: rust-1.64: Don't make package public.
* gnu/packages/rust.scm (rust-1.64): Use define, not define-public.

Change-Id: I475e8b1028a716f1d04a4aea5da4d6e7ca2a87d7
2023-12-13 10:08:43 +02:00
Efraim Flashner
2700ed8ee6
gnu: rust: Add triplets for Windows.
* gnu/packages/rust.scm (nix-system->gnu-triplet-for-rust): Add entries
for i686-mingw and x86_64-mingw.

Change-Id: I13615c1548d96863bc32620269d82975e4599c08
2023-11-28 07:59:43 +02:00
Efraim Flashner
f284ca9a1b
gnu: rust: Add triplet for the Hurd.
* gnu/packages/rust.scm (nix-system->gnu-triplet-for-rust): Add entries
for i586-pc, i686-pc.

Change-Id: I0b7bdc3c0445430b5f4ea79d8e052b6ef276f11b
2023-11-28 07:59:43 +02:00
Efraim Flashner
584bd0bb3d
gnu: Add make-rust-sysroot.
* gnu/packages/rust.scm (make-rust-sysroot): New procedure.

Change-Id: I5ce4b7a3aab0a9e8d254159e2fbc6cf6b3442c32
2023-11-28 07:59:43 +02:00
Efraim Flashner
273bd81188
gnu: rust: Allow using custom rust-src for rust-analyzer.
* gnu/packages/rust.scm (rust)[arguments]: Rewrite 'wrap-rust-analyzer
phase to allow using a custom RUST_SRC_PATH.

Change-Id: Id811bc8d09c0f955ece9c9e6267a0ae96e61f105
2023-11-28 07:59:22 +02:00
Efraim Flashner
bb108d7efd
gnu: rust-analyzer: Move to rust.scm.
* gnu/packages/rust-apps.scm (rust-analyzer): Move ...
* gnu/packages/rust.scm (rust-analyzer): ... to here.

Change-Id: I24db3731370f6e798b919409a32abec4a115c913
2023-11-28 07:59:07 +02:00
Efraim Flashner
845091073d
gnu: Remove rust-src-1.64.
* gnu/packages/rust.scm (rust-src-1.64): Remove variable.

Change-Id: I88f7ebed18e478f3982cad3c8586cff64dada1bb
2023-11-28 07:59:00 +02:00
Efraim Flashner
2c6b585f05
gnu: rust: Update to 1.73.0.
* gnu/packages/rust.scm (rust): Update to 1.73.0.
[arguments]: Add phase to skip some tests using cargo publish.

Change-Id: I3b0539ce036805f606bfbc1a1bba98a95d4a22fe
2023-11-28 07:58:06 +02:00
Herman Rimm
54e88d8da5
gnu: Add rust-1.73.
* gnu/packages/rust.scm (rust-1.73): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Change-Id: I97ab62112cd9386427d3cf8f9f6e1700492966b1
2023-10-23 09:29:37 +03:00
Efraim Flashner
d45992833b
gnu: Add rust-1.72.
* gnu/packages/rust.scm (rust-1.72): New variable.
2023-10-18 11:36:31 +03:00
Efraim Flashner
519995f36f
gnu: Add rust-1.71.
* gnu/packages/rust.scm (rust-1.71): New variable.
2023-10-18 11:36:31 +03:00
Efraim Flashner
322b124936
gnu: rust: Fix test failures on some architectures.
* gnu/packages/rust.scm (rust)[arguments]: Adjust custom phase
'patch-process-tests to enable tests to pass on all architectures.
2023-10-18 11:36:06 +03:00
Efraim Flashner
020aca2a1f
gnu: rust: Wrap rust-analyzer with rust source.
* gnu/packages/rust.scm (rust)[outputs]: Add rust-src output.
[arguments]: Add a phase to install the rust sources and a phase to wrap
the rust-analyzer binary with the path to the rust sources.
2023-10-18 11:35:53 +03:00
Efraim Flashner
df93d8a9f8
gnu: rust: Build more tools.
* gnu/packages/rust.scm (rust)[outputs]: Rename 'rustfmt' output to
'tools'.
[arguments]: Adjust 'build, 'check and 'install phases to also provide
clippy and rust-analyzer.
2023-10-18 11:35:40 +03:00
Efraim Flashner
14d87c3827
gnu: rust: Update to 1.70.0.
* gnu/packages/rust.scm (rust): Update to 1.70.0.
[arguments]: Remove 'patch-cargo-env-shebang phase. Adjust custom phases
'disable-tests-requiring-git, disable-tests-requiring-mercurial,
'patch-command-uid-gid-test for changes in the source.  Simplify custom
phases 'disable-tests-broken-on-aarch64, 'patch-process-tests,
'patch-command-exec-tests, 'disable-interrupt-tests.
2023-10-18 11:35:40 +03:00
Fries
839f16dbee
gnu: rust: Add make-ignore-test-list function.
A little helper function to make creating a list to ignore tests easier.

* gnu/packages/rust.scm (make-ignore-test-list): New function.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2023-10-18 11:35:39 +03:00
Fries
299a223835
gnu: Add rust-1.70.
* gnu/packages/rust.scm (rust-1.70): New variable.
* gnu/packages/patches/rust-1.70-fix-rustix-build.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register file.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2023-10-18 11:35:39 +03:00
Fries
fb04d0139e
gnu: Add rust-1.69.
* gnu/packages/rust.scm (rust-1.69): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2023-10-18 11:35:39 +03:00
Christopher Baines
54fd990973
gnu: rust-1.55: Remove i586-gnu from supported-systems.
* gnu/packages/rust.scm (rust-1.55)[supported-systems]: Remove i586-gnu.
2023-09-16 09:20:52 +01:00
Distopico
a4514556df
gnu: rust-analyzer: Fix build of version 2022-01-10.
* gnu/packages/rust-apps.scm (rust-analyzer): Update dependency
rust-notify-5-pre.13.

This fixes the build of `rust-analyzer@2022-01-10`, which required a pinned
version of `rust-notify` (`rust-notify-5-pre.13`) to compile and
rust >= 1.64.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-09-09 15:54:38 +02:00
Efraim Flashner
6ac2ed146c
gnu: rust: Update to 1.68.2.
* gnu/packages/rust.scm (rust): Update to 1.68.2.
[arguments]: Adjust 'skip-shebang-tests phase to moved files. Add
'adjust-rpath-values phase to link to shared libraries.
2023-08-14 19:37:26 +03:00
Efraim Flashner
3f00f46ada
Revert "gnu: rust-bootstrap: Remove aarch64 as a supported architecture."
This reverts commit c56d57110d.

rust-bootstrap *IS* supported on aarch64-linux, and the build farm will
catch up eventually.
2023-05-09 16:54:29 +03:00
Efraim Flashner
c56d57110d
gnu: rust-bootstrap: Remove aarch64 as a supported architecture.
This is so that we can merge the branch, building rust for aarch64-linux
on CI is very time intensive.

* gnu/packages/rust.scm (rust-bootstrap)[supported-systems]: Remove
aarch64-linux.
2023-05-09 09:54:37 +03:00
Efraim Flashner
9566721292
gnu: rust: Re-enable aarch64-linux support.
* gnu/packages/rust.scm (rust)[arguments]: Only enable parallel-builds
on x86_64-linux. Add a make-flag to adjust CFLAGS. In the custom 'build
phase remove an unneeded environment variable.
[supported-architectures]: Add aarch64-linux.
2023-05-07 19:29:43 +03:00
Efraim Flashner
fc750b6ac5
gnu: rust-1.68: Update to 1.68.2.
* gnu/packages/rust.scm (rust-1.68): Update to 1.68.2.
2023-05-07 19:29:31 +03:00
Ricardo Wurmus
6eb2d719bc
gnu: rust: Disable tests that fail on aarch64.
* gnu/packages/rust.scm (rust)[arguments]: Add phase
'disable-tests-broken-on-aarch64.
2023-05-07 19:29:31 +03:00
Efraim Flashner
ebde6b712a
Revert "gnu: rust: Remove more bundled sources."
This reverts commit 7e777d70e67cc90f019988aa2af68bbf1fe25c00.

This makes it impractical to update several libraries without a rust
rebuild. Since rust doesn't retain a reference to these libraries it
isn't clear that this is the best choice.
2023-05-07 19:29:26 +03:00
Efraim Flashner
a1a17393f4
gnu: Add rust-1.68.
* gnu/packages/rust.scm (rust-1.68): New variable.
2023-05-07 19:29:26 +03:00
Efraim Flashner
1476c3de3a
gnu: rust: Remove more bundled sources.
* gnu/packages/rust.scm (rust)[source]: Adjust snippet to remove more
bundled sources.
[arguments]: Add a phase to set flags to use more system libraries.
[inputs]: Add curl, libgit2, libssh, xz, zlib.
2023-05-07 19:29:26 +03:00
Efraim Flashner
e96ccb3152
gnu: rust-1.61: Remove riscv64-linux jemalloc workaround.
* gnu/packages/rust.scm (rust-1.61)[source]: Adjust snippet to remove
workaround for jemalloc library.
2023-05-07 19:29:25 +03:00
Efraim Flashner
f1b14a1524
gnu: rust-1.55: Remove bundled libraries.
* gnu/packages/rust.scm (rust-1.55)[source]: Adjust snippet to remove
bundled libraries.
2023-05-07 19:29:25 +03:00
Efraim Flashner
f4a6d989bb
gnu: rust-bootstrap: Remove bundled libraries.
* gnu/packages/rust.scm (rust-bootstrap)[source]: Adjust snippet to
remove bundled libraries.
2023-05-07 19:29:25 +03:00
Efraim Flashner
9ac27d1b82
gnu: rust: Fix test suite on some architectures.
* gnu/packages/rust.scm (rust)[arguments]: In the custom
'patch-process-tests phase rewrite the logic for skipping some tests so
that it doesn't cause errors on aarch64-linux or riscv64-linux.
2023-05-07 19:29:20 +03:00
Efraim Flashner
5dfab2374f
gnu: rust-1.67: Build with llvm-15.
* gnu/packages/rust.scm (rust-1.67)[inputs]: Replace llvm with llvm-15.
2023-05-07 19:29:09 +03:00
Efraim Flashner
2ed667dd92
gnu: rust-1.55: Explicitly use llvm-13.
* gnu/packages/rust.scm (rust-1.55)[inputs]: Clarify llvm is llvm-13.
2023-05-07 19:28:58 +03:00
Efraim Flashner
a280d7938e
gnu: rust-bootstrap: Explicitly use llvm-13.
* gnu/packages/rust.scm (rust-bootstrap)[inputs]: Clarify llvm is
explicitly llvm-13.
2023-05-07 19:28:58 +03:00
Efraim Flashner
f4c3f2be94
gnu: rust: Update to 1.67.
* gnu/packages/rust.scm (rust): Update to 1.67.
[arguments]: Add a phase to skip tests requiring mercurial. Extend the
custom 'patch-process-tests phase.
(rust-1.64)[arguments]: Adjust 'patch-cargo-checksums phase to patch
another file.
* guix/build/cargo-build-system.scm (package): Adjust to remove
Cargo.toml.orig file if it exists.
2023-05-07 19:28:57 +03:00
Efraim Flashner
424d2bb54b
gnu: Add rust-1.67.
* gnu/packages/rust.scm (rust-1.67): New variable.
2023-05-07 19:28:57 +03:00
Efraim Flashner
8766759041
gnu: Add rust-1.66.
* gnu/packages/rust.scm (rust-1.66): New variable.
2023-05-07 19:28:57 +03:00
Efraim Flashner
82649c6cd7
gnu: rust: Remove bundled compiled libraries.
* gnu/packages/rust.scm (rust-bootstrap)[source]: Adjust snippet to also
remove bundled pre-compiled shared libraries.
(rust-1.55): Same.
2023-05-07 19:28:56 +03:00
Efraim Flashner
8fe5ed47cb
gnu: rust: Disable support for aarch64-linux, riscv64-linux.
Support is currently broken and blocks too many other packages.

* gnu/packages/gnome.scm (librsvg-for-system): Only use librsvg on
x86_64-linux.
* gnu/packages/rust.scm (rust-bootstrap)[supported-systems]: Remove
aarch64-linux, riscv64-linux.
2023-04-29 23:22:30 +03:00
Ludovic Courtès
6b5c21e043
gnu: gdb: Distinguish between the "pinned" and the "default" version.
* gnu/packages/gdb.scm (gdb/pinned): New variable.
* gnu/packages/rust.scm (rust)[native-inputs]: Use it instead of GDB.
2023-04-18 17:51:22 +02:00
Christopher Baines
7df09ee0ab
Merge remote-tracking branch 'savannah/master' into core-updates
Conflicts:
	gnu/local.mk
	gnu/packages/autotools.scm
	gnu/packages/cmake.scm
	gnu/packages/gnuzilla.scm
	gnu/packages/haskell.scm
	gnu/packages/pdf.scm
	gnu/packages/python-xyz.scm
	gnu/packages/samba.scm
	gnu/packages/tex.scm
	gnu/packages/tls.scm
	gnu/packages/wxwidgets.scm
2023-03-02 10:55:08 +00:00