Skip to content

freshBootstrapTools.bootstrapTools: switch to llvm-readtapi#383108

Merged
reckenrode merged 1 commit intoNixOS:staging-nextfrom
reckenrode:push-ktvvzpwrloop
Feb 18, 2025
Merged

freshBootstrapTools.bootstrapTools: switch to llvm-readtapi#383108
reckenrode merged 1 commit intoNixOS:staging-nextfrom
reckenrode:push-ktvvzpwrloop

Conversation

@reckenrode
Copy link
Contributor

After the LLVM update, it is no longer necessary to use tapi. The library can also be dropped because a vendored version is now used with ld64 instead of the full dylib.

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: stdenv Standard environment label Feb 18, 2025
@nix-owners nix-owners bot requested review from emilazy and toonn February 18, 2025 13:42
@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 Feb 18, 2025
@paparodeo
Copy link
Contributor

paparodeo commented Feb 18, 2025

should this target staging-next as the build breaks on master due to using old ld64?

@reckenrode reckenrode marked this pull request as draft February 18, 2025 15:54
After the LLVM update, it is no longer necessary to use tapi. The
library can also be dropped because a vendored version is now used with
ld64 instead of the full dylib.
@reckenrode reckenrode changed the base branch from master to staging-next February 18, 2025 15:55
@reckenrode reckenrode marked this pull request as ready for review February 18, 2025 15:55
@reckenrode
Copy link
Contributor Author

I re-targeted staging-next due to the need for the ld64 update. I’ll merge once all checks pass.

@paparodeo
Copy link
Contributor

paparodeo commented Feb 18, 2025

looks like #379368 broke the build:

error: unpack/bin/bash missing lib for @rpath/libreadline.8.dylib
using the attribute `bashNonInteractive` rather than `bash` fixes the build for me.
diff --git a/pkgs/stdenv/darwin/stdenv-bootstrap-tools.nix b/pkgs/stdenv/darwin/stdenv-bootstrap-tools.nix
index 1f50bcf5188a..a45291072abd 100644
--- a/pkgs/stdenv/darwin/stdenv-bootstrap-tools.nix
+++ b/pkgs/stdenv/darwin/stdenv-bootstrap-tools.nix
@@ -1,7 +1,7 @@
 {
   lib,
   stdenv,
-  bash,
+  bashNonInteractive,
   bzip2,
   coreutils,
   cpio,
@@ -130,7 +130,7 @@ stdenv.mkDerivation (finalAttrs: {
       cp ${getBin coreutils_}/bin/* $out/bin
       (cd $out/bin && rm vdir dir sha*sum pinky factor pathchk runcon shuf who whoami shred users)
 
-      cp -d ${getBin bash}/bin/{ba,}sh $out/bin
+      cp -d ${getBin bashNonInteractive}/bin/{ba,}sh $out/bin
       cp -d ${getBin diffutils}/bin/* $out/bin
       cp ${getBin findutils}/bin/{find,xargs} $out/bin
       cp -d ${getBin gawk}/bin/{g,}awk $out/bin
@@ -190,7 +190,7 @@ stdenv.mkDerivation (finalAttrs: {
 
       # tools needed to unpack bootstrap archive
       mkdir -p unpack/bin unpack/lib
-      cp -d ${getBin bash}/bin/{bash,sh} unpack/bin
+      cp -d ${getBin bashNonInteractive}/bin/{ba,}sh unpack/bin
       cp ${getBin coreutils_}/bin/mkdir unpack/bin
       cp ${getBin gnutar}/bin/tar unpack/bin
       cp ${getBin xz}/bin/xz unpack/bin

@vcunat
Copy link
Member

vcunat commented Feb 18, 2025

Confirmed. Pushed as bd4cd0a to resolve that channel blocker.

@reckenrode reckenrode merged commit 72c9cb1 into NixOS:staging-next Feb 18, 2025
45 of 47 checks passed
@reckenrode reckenrode deleted the push-ktvvzpwrloop branch February 18, 2025 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: stdenv Standard environment 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants