Skip to content

Comments

build-support/rust/sysroot: remove#378006

Merged
winterqt merged 1 commit intoNixOS:masterfrom
alyssais:rust-sysroot-remove
Feb 1, 2025
Merged

build-support/rust/sysroot: remove#378006
winterqt merged 1 commit intoNixOS:masterfrom
alyssais:rust-sysroot-remove

Conversation

@alyssais
Copy link
Member

The sysroot derivation used by buildRustPackage hasn't built since c263e0b ("cargo,clippy,rustc,rustfmt: 1.81.0 -> 1.82.0"). That means that it's never built on 24.11, so there can't be anybody relying on it working on any supported version Nixpkgs. In the meantime, it's causing maintenance friction — I've spent a lot of time trying to figure out how to build it as part of the transition away from fetchCargoTarball, before realising that it doesn't work anyway and must be unused. It can come back in the future if somebody wants to maintain it.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. label Jan 30, 2025
@nix-owners nix-owners bot requested review from figsoda, winterqt and zowoq January 30, 2025 15:11
@alyssais alyssais force-pushed the rust-sysroot-remove branch from 39f0691 to f7ad056 Compare January 30, 2025 15:12
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jan 30, 2025
The sysroot derivation used by buildRustPackage hasn't built since
c263e0b ("cargo,clippy,rustc,rustfmt: 1.81.0 -> 1.82.0").  That
means that it's never built on 24.11, so there can't be anybody
relying on it working on any supported version Nixpkgs.  In the
meantime, it's causing maintenance friction — I've spent a lot of time
trying to figure out how to build it as part of the transition away
from fetchCargoTarball, before realising that it doesn't work anyway
and must be unused.  It can come back in the future if somebody wants
to maintain it.
@alyssais alyssais force-pushed the rust-sysroot-remove branch from f7ad056 to c8127fc Compare January 30, 2025 15:24
@wegank wegank added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Feb 1, 2025
@winterqt winterqt merged commit 9d0d52a into NixOS:master Feb 1, 2025
27 of 29 checks passed
@alyssais alyssais deleted the rust-sysroot-remove branch February 2, 2025 11:56
@ShamrockLee
Copy link
Contributor

Could we backport this PR? This will make backporting #382550 much easier by eliminating the sysroot-related global assertion.

@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Mar 19, 2025

Backport failed for release-24.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-24.11
git worktree add -d .worktree/backport-378006-to-release-24.11 origin/release-24.11
cd .worktree/backport-378006-to-release-24.11
git switch --create backport-378006-to-release-24.11
git cherry-pick -x c8127fc287c344b9578458e69c760e36d4284749

@alyssais
Copy link
Member Author

Would be willing to merge a manual backport.

@ShamrockLee
Copy link
Contributor

Would be willing to merge a manual backport.

It's now PR #391339.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants