lol

{libllvm,isl,libiberty,libmpc}: fix references to /usr/bin/uname on native FreeBSD (#356763)

authored by misuzu.tngl.sh and committed by

GitHub 4a30ef65 e79b7de8

+25 -2
+6
pkgs/by-name/li/libiberty/package.nix
··· 14 14 15 15 postUnpack = "sourceRoot=\${sourceRoot}/libiberty"; 16 16 17 + # needed until config scripts are updated to not use /usr/bin/uname on FreeBSD native 18 + # updateAutotoolsGnuConfigScriptsHook doesn't seem to work here 19 + postPatch = '' 20 + substituteInPlace ../config.guess --replace-fail /usr/bin/uname uname 21 + ''; 22 + 17 23 configureFlags = [ "--enable-install-libiberty" ] 18 24 ++ lib.optional (!staticBuild) "--enable-shared"; 19 25
+5
pkgs/by-name/li/libmpc/package.nix
··· 1 1 { lib, stdenv, fetchurl 2 2 , gmp, mpfr 3 + , updateAutotoolsGnuConfigScriptsHook 3 4 }: 4 5 5 6 # Note: this package is used for bootstrapping fetchurl, and thus ··· 20 21 enableParallelBuilding = true; 21 22 22 23 buildInputs = [ gmp mpfr ]; 24 + nativeBuildInputs = [ 25 + # needed until config scripts are updated to not use /usr/bin/uname on FreeBSD native 26 + updateAutotoolsGnuConfigScriptsHook 27 + ]; 23 28 24 29 doCheck = true; # not cross; 25 30
+7 -1
pkgs/development/compilers/llvm/common/llvm/default.nix
··· 24 24 , which 25 25 , sysctl 26 26 , buildLlvmTools 27 + , updateAutotoolsGnuConfigScriptsHook 27 28 , debugVersion ? false 28 29 , doCheck ? !stdenv.hostPlatform.isAarch32 && (if lib.versionOlder release_version "15" then stdenv.hostPlatform.isLinux else true) 29 30 && (!stdenv.hostPlatform.isx86_32 /* TODO: why */) && (!stdenv.hostPlatform.isMusl) ··· 112 113 "shadowstack" 113 114 ]; 114 115 115 - nativeBuildInputs = [ cmake ] 116 + nativeBuildInputs = [ 117 + cmake 118 + # while this is not an autotools build, it still includes a config.guess 119 + # this is needed until scripts are updated to not use /usr/bin/uname on FreeBSD native 120 + updateAutotoolsGnuConfigScriptsHook 121 + ] 116 122 ++ (lib.optional (lib.versionAtLeast release_version "15") ninja) 117 123 ++ [ python ] 118 124 ++ optionals enableManpages [
+7 -1
pkgs/development/libraries/isl/generic.nix
··· 11 11 , gmp 12 12 , autoreconfHook 13 13 , buildPackages 14 + , updateAutotoolsGnuConfigScriptsHook 14 15 }: 15 16 16 17 stdenv.mkDerivation { ··· 25 26 26 27 strictDeps = true; 27 28 depsBuildBuild = lib.optionals (lib.versionAtLeast version "0.24") [ buildPackages.stdenv.cc ]; 28 - nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isRiscV && lib.versionOlder version "0.24") [ autoreconfHook ]; 29 + nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isRiscV && lib.versionOlder version "0.24") [ 30 + autoreconfHook 31 + ] ++ [ 32 + # needed until config scripts are updated to not use /usr/bin/uname on FreeBSD native 33 + updateAutotoolsGnuConfigScriptsHook 34 + ]; 29 35 buildInputs = [ gmp ]; 30 36 31 37 inherit configureFlags;