git.iko.soy/typeable/nixpkgs
on master help sign in
make-bootstrap-tools*: fixup after #16406

Our coreutils now uses single-binary-build mode where, by default, simple shebang scripts are used for all the binaries. That doesn't work e.g. with the Linux unpacker which only handles standard binaries and symlinks. Let's use the symlinked mode instead for boostrapping. This does NOT change any stdenv hashes. I only tested the case most important to me: $ nix-build pkgs/top-level/release.nix -A stdenvBootstrapTools.x86_64-linux.test

commitf4792cdc0cffc0d1843f5d8bb3e458546646f67c authorVladimír Čunát <vcunat@gmail.com> dateTue 28 Jun 2016, 09:48 (10 years ago) parent19e80fa
4 files changed+14−5
pkgs/stdenv/darwin/make-bootstrap-tools.nix+4−2 pkgs/stdenv/linux/make-bootstrap-tools-cross.nix+3−1 pkgs/stdenv/linux/make-bootstrap-tools.nix+3−1 pkgs/tools/misc/coreutils/default.nix+4−1
pkgs/stdenv/darwin/make-bootstrap-tools.nix+4−2
@@ -3,9 +3,11 @@
33with import ../../.. { inherit system; };
44
55rec {
6− # We want coreutils without ACL support.
7− coreutils_ = coreutils.override (orig: {
6+ coreutils_ = coreutils.override (args: {
7+ # We want coreutils without ACL support.
88 aclSupport = false;
9+ # Our tooling currently can't handle scripts in bin/, only ELFs and symlinks.
10+ singleBinary = "symlinks";
911 });
1012
1113 build = stdenv.mkDerivation {
pkgs/stdenv/linux/make-bootstrap-tools-cross.nix+3−1
@@ -87,9 +87,11 @@ in
8787
8888rec {
8989
90− # We want coreutils without ACL support.
9190 coreutilsMinimal = (pkgs.coreutils.override (args: {
91+ # We want coreutils without ACL support.
9292 aclSupport = false;
93+ # Our tooling currently can't handle scripts in bin/, only ELFs and symlinks.
94+ singleBinary = "symlinks";
9395 })).crossDrv;
9496
9597 curlMinimal = (pkgs.curl.override {
pkgs/stdenv/linux/make-bootstrap-tools.nix+3−1
@@ -5,9 +5,11 @@ with import ../../.. {inherit system;};
55rec {
66
77
8− # We want coreutils without ACL support.
98 coreutilsMinimal = coreutils.override (args: {
9+ # We want coreutils without ACL support.
1010 aclSupport = false;
11+ # Our tooling currently can't handle scripts in bin/, only ELFs and symlinks.
12+ singleBinary = "symlinks";
1113 });
1214
1315 tarMinimal = gnutar.override { acl = null; };
pkgs/tools/misc/coreutils/default.nix+4−1
@@ -3,6 +3,7 @@
33, selinuxSupport? false, libselinux ? null, libsepol ? null
44, autoconf, automake114x, texinfo
55, withPrefix ? false
6+, singleBinary ? true # you can also pass "symlinks", for example
67}:
78
89assert aclSupport -> acl != null;
@@ -30,7 +31,9 @@ let
3031 outputs = [ "out" "info" ];
3132
3233 nativeBuildInputs = [ perl xz.bin ];
33− configureFlags = [ "--enable-single-binary" ]
34+ configureFlags =
35+ optional (singleBinary != false)
36+ ("--enable-single-binary" + optionalString (isString singleBinary) "=${singleBinary}")
3437 ++ optional stdenv.isSunOS "ac_cv_func_inotify_init=no";
3538
3639 buildInputs = [ gmp ]