From 3332f332b947c4a8aeaaf74a5807c2c52e77a29d Mon Sep 17 00:00:00 2001 From: isabel Date: Sat, 22 Jun 2024 10:39:58 +0100 Subject: [PATCH] fix: don't use bash to call the builds allow them to infer from the shebang --- foundation/src/stages/stage1/bash/default.nix | 3 ++- foundation/src/stages/stage1/binutils/default.nix | 3 ++- foundation/src/stages/stage1/bison/default.nix | 3 ++- foundation/src/stages/stage1/coreutils/default.nix | 3 ++- foundation/src/stages/stage1/diffutils/default.nix | 3 ++- foundation/src/stages/stage1/findutils/default.nix | 3 ++- foundation/src/stages/stage1/gawk/boot.nix | 3 ++- foundation/src/stages/stage1/gawk/default.nix | 3 ++- foundation/src/stages/stage1/gcc/default.nix | 3 ++- foundation/src/stages/stage1/gcc/v4.6.cxx.nix | 3 ++- foundation/src/stages/stage1/gcc/v4.6.nix | 3 ++- foundation/src/stages/stage1/gcc/v8.nix | 3 ++- foundation/src/stages/stage1/gnum4/default.nix | 3 ++- foundation/src/stages/stage1/gnumake/default.nix | 3 ++- foundation/src/stages/stage1/gnutar/boot.nix | 3 ++- foundation/src/stages/stage1/gnutar/default.nix | 3 ++- foundation/src/stages/stage1/gnutar/musl.nix | 3 ++- foundation/src/stages/stage1/musl/boot.nix | 3 ++- foundation/src/stages/stage1/musl/default.nix | 3 ++- foundation/src/stages/stage1/python/default.nix | 3 ++- foundation/src/stages/stage1/xz/default.nix | 3 ++- foundation/src/stages/stage1/zlib/default.nix | 3 ++- foundation/src/stages/stage2/bash/default.nix | 3 ++- foundation/src/stages/stage2/binutils/default.nix | 3 ++- foundation/src/stages/stage2/coreutils/default.nix | 3 ++- foundation/src/stages/stage2/diffutils/default.nix | 3 ++- foundation/src/stages/stage2/findutils/default.nix | 3 ++- foundation/src/stages/stage2/gawk/default.nix | 3 ++- foundation/src/stages/stage2/gcc/default.nix | 3 ++- foundation/src/stages/stage2/glibc/default.nix | 3 ++- foundation/src/stages/stage2/gnugrep/default.nix | 3 ++- foundation/src/stages/stage2/gnumake/default.nix | 3 ++- foundation/src/stages/stage2/gnupatch/default.nix | 3 ++- foundation/src/stages/stage2/gnused/default.nix | 3 ++- foundation/src/stages/stage2/gnutar/default.nix | 3 ++- foundation/src/stages/stage2/gzip/default.nix | 3 ++- foundation/src/stages/stage2/patchelf/default.nix | 3 ++- 37 files changed, 74 insertions(+), 37 deletions(-) diff --git a/foundation/src/stages/stage1/bash/default.nix b/foundation/src/stages/stage1/bash/default.nix index 8565c70..a4eebac 100644 --- a/foundation/src/stages/stage1/bash/default.nix +++ b/foundation/src/stages/stage1/bash/default.nix @@ -109,7 +109,8 @@ in export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib" export AR="tcc -ar" export LD=tcc - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/binutils/default.nix b/foundation/src/stages/stage1/binutils/default.nix index bcd43fb..0a323e9 100644 --- a/foundation/src/stages/stage1/binutils/default.nix +++ b/foundation/src/stages/stage1/binutils/default.nix @@ -133,7 +133,8 @@ in export AR="tcc -ar" export lt_cv_sys_max_cmd_len=32768 export CFLAGS="-D__LITTLE_ENDIAN__=1" - bash ./configure ${builtins.concatStringsSep " " configureFlags} + chmod +x ./configure + ./configure ${builtins.concatStringsSep " " configureFlags} # Build make -j $NIX_BUILD_CORES all-libiberty all-gas all-bfd all-libctf all-zlib all-gprof diff --git a/foundation/src/stages/stage1/bison/default.nix b/foundation/src/stages/stage1/bison/default.nix index 573adb1..b01ba1f 100644 --- a/foundation/src/stages/stage1/bison/default.nix +++ b/foundation/src/stages/stage1/bison/default.nix @@ -89,7 +89,8 @@ in cd bison-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/coreutils/default.nix b/foundation/src/stages/stage1/coreutils/default.nix index 0f037e2..77869a6 100644 --- a/foundation/src/stages/stage1/coreutils/default.nix +++ b/foundation/src/stages/stage1/coreutils/default.nix @@ -101,7 +101,8 @@ in # Configure export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib" export LD=tcc - bash ./configure ${builtins.concatStringsSep " " configureFlags} + chmod +x ./configure + ./configure ${builtins.concatStringsSep " " configureFlags} # Build make -j $NIX_BUILD_CORES AR="tcc -ar" MAKEINFO="true" diff --git a/foundation/src/stages/stage1/diffutils/default.nix b/foundation/src/stages/stage1/diffutils/default.nix index 9829ca7..440abad 100644 --- a/foundation/src/stages/stage1/diffutils/default.nix +++ b/foundation/src/stages/stage1/diffutils/default.nix @@ -90,7 +90,8 @@ in # Configure export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib" export LD=tcc - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} diff --git a/foundation/src/stages/stage1/findutils/default.nix b/foundation/src/stages/stage1/findutils/default.nix index e4ac41f..244752f 100644 --- a/foundation/src/stages/stage1/findutils/default.nix +++ b/foundation/src/stages/stage1/findutils/default.nix @@ -95,7 +95,8 @@ in export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib" export AR="tcc -ar" export LD=tcc - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} diff --git a/foundation/src/stages/stage1/gawk/boot.nix b/foundation/src/stages/stage1/gawk/boot.nix index bd0abd8..e58c063 100644 --- a/foundation/src/stages/stage1/gawk/boot.nix +++ b/foundation/src/stages/stage1/gawk/boot.nix @@ -68,7 +68,8 @@ in export CC="tcc -B ${stage1.tinycc.mes.libs.package}/lib" export ac_cv_func_getpgrp_void=yes export ac_cv_func_tzset=yes - bash ./configure \ + chmod +x ./configure + ./configure \ --build=${platform.build} \ --host=${platform.host} \ --disable-nls \ diff --git a/foundation/src/stages/stage1/gawk/default.nix b/foundation/src/stages/stage1/gawk/default.nix index c4015fc..457fca7 100644 --- a/foundation/src/stages/stage1/gawk/default.nix +++ b/foundation/src/stages/stage1/gawk/default.nix @@ -96,7 +96,8 @@ in export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib" export AR="tcc -ar" export LD=tcc - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} diff --git a/foundation/src/stages/stage1/gcc/default.nix b/foundation/src/stages/stage1/gcc/default.nix index 978fa6d..16752f3 100644 --- a/foundation/src/stages/stage1/gcc/default.nix +++ b/foundation/src/stages/stage1/gcc/default.nix @@ -200,7 +200,8 @@ in export CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${stage1.musl.package}/lib/libc.so" export LIBRARY_PATH="${stage1.musl.package}/lib" - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/gcc/v4.6.cxx.nix b/foundation/src/stages/stage1/gcc/v4.6.cxx.nix index 459fde6..028e44f 100644 --- a/foundation/src/stages/stage1/gcc/v4.6.cxx.nix +++ b/foundation/src/stages/stage1/gcc/v4.6.cxx.nix @@ -162,7 +162,8 @@ in export CPLUS_INCLUDE_PATH="$C_INCLUDE_PATH" export LIBRARY_PATH="${stage1.musl.package}/lib" - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/gcc/v4.6.nix b/foundation/src/stages/stage1/gcc/v4.6.nix index 5568ac3..7dade6f 100644 --- a/foundation/src/stages/stage1/gcc/v4.6.nix +++ b/foundation/src/stages/stage1/gcc/v4.6.nix @@ -163,7 +163,8 @@ in export ac_cv_func_memcpy=yes export ac_cv_func_strerror=yes - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/gcc/v8.nix b/foundation/src/stages/stage1/gcc/v8.nix index c738289..0479de7 100644 --- a/foundation/src/stages/stage1/gcc/v8.nix +++ b/foundation/src/stages/stage1/gcc/v8.nix @@ -167,7 +167,8 @@ in export CPLUS_INCLUDE_PATH="$C_INCLUDE_PATH" export LIBRARY_PATH="${stage1.musl.package}/lib" - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/gnum4/default.nix b/foundation/src/stages/stage1/gnum4/default.nix index 06c126c..7110754 100644 --- a/foundation/src/stages/stage1/gnum4/default.nix +++ b/foundation/src/stages/stage1/gnum4/default.nix @@ -88,7 +88,8 @@ in cd m4-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/gnumake/default.nix b/foundation/src/stages/stage1/gnumake/default.nix index b51f9cc..51b6f8c 100644 --- a/foundation/src/stages/stage1/gnumake/default.nix +++ b/foundation/src/stages/stage1/gnumake/default.nix @@ -104,7 +104,8 @@ in # Configure export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib" export LD=tcc - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} diff --git a/foundation/src/stages/stage1/gnutar/boot.nix b/foundation/src/stages/stage1/gnutar/boot.nix index 16586e2..347c489 100644 --- a/foundation/src/stages/stage1/gnutar/boot.nix +++ b/foundation/src/stages/stage1/gnutar/boot.nix @@ -55,7 +55,8 @@ in # Configure export CC="tcc -B ${stage1.tinycc.mes.libs.package}/lib" - bash ./configure \ + chmod +x ./configure + ./configure \ --build=${platform.build} \ --host=${platform.host} \ --disable-nls \ diff --git a/foundation/src/stages/stage1/gnutar/default.nix b/foundation/src/stages/stage1/gnutar/default.nix index 647e19c..a2e0ba2 100644 --- a/foundation/src/stages/stage1/gnutar/default.nix +++ b/foundation/src/stages/stage1/gnutar/default.nix @@ -98,7 +98,8 @@ in cd tar-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/gnutar/musl.nix b/foundation/src/stages/stage1/gnutar/musl.nix index b968384..d40c59c 100644 --- a/foundation/src/stages/stage1/gnutar/musl.nix +++ b/foundation/src/stages/stage1/gnutar/musl.nix @@ -59,7 +59,8 @@ in export ac_cv_sizeof_unsigned_long=4 export ac_cv_sizeof_long_long=8 export ac_cv_header_netdb_h=no - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/musl/boot.nix b/foundation/src/stages/stage1/musl/boot.nix index 9c1b8c7..a846790 100644 --- a/foundation/src/stages/stage1/musl/boot.nix +++ b/foundation/src/stages/stage1/musl/boot.nix @@ -118,7 +118,8 @@ in src/misc/wordexp.c # Configure - bash ./configure \ + chmod +x configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/musl/default.nix b/foundation/src/stages/stage1/musl/default.nix index fa94e91..a8ddd6e 100644 --- a/foundation/src/stages/stage1/musl/default.nix +++ b/foundation/src/stages/stage1/musl/default.nix @@ -98,7 +98,8 @@ in src/misc/wordexp.c # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/python/default.nix b/foundation/src/stages/stage1/python/default.nix index 47ff27f..55d4d64 100644 --- a/foundation/src/stages/stage1/python/default.nix +++ b/foundation/src/stages/stage1/python/default.nix @@ -107,7 +107,8 @@ in export C_INCLUDE_PATH="${stage1.zlib.package}/include" export LIBRARY_PATH="${stage1.zlib.package}/lib" export LD_LIBRARY_PATH="$LIBRARY_PATH" - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} diff --git a/foundation/src/stages/stage1/xz/default.nix b/foundation/src/stages/stage1/xz/default.nix index 5b80aa0..7f1c13e 100644 --- a/foundation/src/stages/stage1/xz/default.nix +++ b/foundation/src/stages/stage1/xz/default.nix @@ -91,7 +91,8 @@ in export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib" export AR="tcc -ar" export LD=tcc - bash ./configure \ + chmod +x configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage1/zlib/default.nix b/foundation/src/stages/stage1/zlib/default.nix index 0014419..698eae1 100644 --- a/foundation/src/stages/stage1/zlib/default.nix +++ b/foundation/src/stages/stage1/zlib/default.nix @@ -86,7 +86,8 @@ in # Configure export CC=musl-gcc - bash ./configure --prefix=$out + chmod +x configure + ./configure --prefix=$out # Build make -j $NIX_BUILD_CORES diff --git a/foundation/src/stages/stage2/bash/default.nix b/foundation/src/stages/stage2/bash/default.nix index 506fcf8..d5aa9e3 100644 --- a/foundation/src/stages/stage2/bash/default.nix +++ b/foundation/src/stages/stage2/bash/default.nix @@ -97,7 +97,8 @@ in cd bash-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/binutils/default.nix b/foundation/src/stages/stage2/binutils/default.nix index 8a6ab7e..9045b45 100644 --- a/foundation/src/stages/stage2/binutils/default.nix +++ b/foundation/src/stages/stage2/binutils/default.nix @@ -123,7 +123,8 @@ in ${lib.strings.concatMapSep "\n" (file: "patch -Np1 -i ${file}") patches} # Configure - bash ./configure ${builtins.concatStringsSep " " configureFlags} + chmod +x ./configure + ./configure ${builtins.concatStringsSep " " configureFlags} # Build make -j $NIX_BUILD_CORES diff --git a/foundation/src/stages/stage2/coreutils/default.nix b/foundation/src/stages/stage2/coreutils/default.nix index f9c6ebd..a9308c1 100644 --- a/foundation/src/stages/stage2/coreutils/default.nix +++ b/foundation/src/stages/stage2/coreutils/default.nix @@ -102,7 +102,8 @@ in cd coreutils-${cfg.version} # Configure - bash ./configure ${builtins.concatStringsSep " " configureFlags} + chmod +x ./configure + ./configure ${builtins.concatStringsSep " " configureFlags} # Build make -j $NIX_BUILD_CORES diff --git a/foundation/src/stages/stage2/diffutils/default.nix b/foundation/src/stages/stage2/diffutils/default.nix index 3e8962e..f43ab15 100644 --- a/foundation/src/stages/stage2/diffutils/default.nix +++ b/foundation/src/stages/stage2/diffutils/default.nix @@ -89,7 +89,8 @@ in cd diffutils-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/findutils/default.nix b/foundation/src/stages/stage2/findutils/default.nix index a39f3e6..8eae467 100644 --- a/foundation/src/stages/stage2/findutils/default.nix +++ b/foundation/src/stages/stage2/findutils/default.nix @@ -89,7 +89,8 @@ in cd findutils-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/gawk/default.nix b/foundation/src/stages/stage2/gawk/default.nix index 44748b1..f57b41c 100644 --- a/foundation/src/stages/stage2/gawk/default.nix +++ b/foundation/src/stages/stage2/gawk/default.nix @@ -95,7 +95,8 @@ in cd gawk-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/gcc/default.nix b/foundation/src/stages/stage2/gcc/default.nix index bbe293b..3c60135 100644 --- a/foundation/src/stages/stage2/gcc/default.nix +++ b/foundation/src/stages/stage2/gcc/default.nix @@ -194,7 +194,8 @@ in export CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${stage1.musl.package}/lib/libc.so" export LIBRARY_PATH="${stage1.musl.package}/lib" - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/glibc/default.nix b/foundation/src/stages/stage2/glibc/default.nix index 6a4d539..3d036de 100644 --- a/foundation/src/stages/stage2/glibc/default.nix +++ b/foundation/src/stages/stage2/glibc/default.nix @@ -94,7 +94,8 @@ in cd build # libstdc++.so is built against musl and fails to link export CXX=false - bash ../configure \ + chmod +x ../configure + ../configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/gnugrep/default.nix b/foundation/src/stages/stage2/gnugrep/default.nix index 455253d..b7a9a48 100644 --- a/foundation/src/stages/stage2/gnugrep/default.nix +++ b/foundation/src/stages/stage2/gnugrep/default.nix @@ -94,7 +94,8 @@ in cd grep-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/gnumake/default.nix b/foundation/src/stages/stage2/gnumake/default.nix index 9c4f081..30850f1 100644 --- a/foundation/src/stages/stage2/gnumake/default.nix +++ b/foundation/src/stages/stage2/gnumake/default.nix @@ -105,7 +105,8 @@ in ${lib.strings.concatMapSep "\n" (file: "patch -Np1 -i ${file}") patches} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/gnupatch/default.nix b/foundation/src/stages/stage2/gnupatch/default.nix index a3cb474..ea95094 100644 --- a/foundation/src/stages/stage2/gnupatch/default.nix +++ b/foundation/src/stages/stage2/gnupatch/default.nix @@ -90,7 +90,8 @@ in cd patch-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/gnused/default.nix b/foundation/src/stages/stage2/gnused/default.nix index d9735b9..a1b4696 100644 --- a/foundation/src/stages/stage2/gnused/default.nix +++ b/foundation/src/stages/stage2/gnused/default.nix @@ -96,7 +96,8 @@ in cd sed-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/gnutar/default.nix b/foundation/src/stages/stage2/gnutar/default.nix index d0b75ba..dbdfaaf 100644 --- a/foundation/src/stages/stage2/gnutar/default.nix +++ b/foundation/src/stages/stage2/gnutar/default.nix @@ -95,7 +95,8 @@ in cd tar-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/gzip/default.nix b/foundation/src/stages/stage2/gzip/default.nix index 9f16f10..45aaf2d 100644 --- a/foundation/src/stages/stage2/gzip/default.nix +++ b/foundation/src/stages/stage2/gzip/default.nix @@ -88,7 +88,8 @@ in cd gzip-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \ diff --git a/foundation/src/stages/stage2/patchelf/default.nix b/foundation/src/stages/stage2/patchelf/default.nix index b34d1ed..e7681a6 100644 --- a/foundation/src/stages/stage2/patchelf/default.nix +++ b/foundation/src/stages/stage2/patchelf/default.nix @@ -89,7 +89,8 @@ in cd patchelf-${cfg.version} # Configure - bash ./configure \ + chmod +x ./configure + ./configure \ --prefix=$out \ --build=${platform.build} \ --host=${platform.host} \