mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Revert "Merge pull request #36948 from dtzWill/fix/glibc-libgcc_s"
This reverts commit80ff19a45f
, reversing changes made to43e867a226
.
This commit is contained in:
parent
2b57e9fdd3
commit
319ebef3a3
@ -39,6 +39,22 @@ callPackage ./common.nix { inherit stdenv; } {
|
|||||||
# limit rebuilds by only disabling pie w/musl
|
# limit rebuilds by only disabling pie w/musl
|
||||||
++ stdenv.lib.optional stdenv.hostPlatform.isMusl "pie";
|
++ stdenv.lib.optional stdenv.hostPlatform.isMusl "pie";
|
||||||
|
|
||||||
|
# When building glibc from bootstrap-tools, we need libgcc_s at RPATH for
|
||||||
|
# any program we run, because the gcc will have been placed at a new
|
||||||
|
# store path than that determined when built (as a source for the
|
||||||
|
# bootstrap-tools tarball)
|
||||||
|
# Building from a proper gcc staying in the path where it was installed,
|
||||||
|
# libgcc_s will not be at {gcc}/lib, and gcc's libgcc will be found without
|
||||||
|
# any special hack.
|
||||||
|
preInstall = ''
|
||||||
|
if [ -f ${stdenv.cc.cc}/lib/libgcc_s.so.1 ]; then
|
||||||
|
mkdir -p $out/lib
|
||||||
|
cp ${stdenv.cc.cc}/lib/libgcc_s.so.1 $out/lib/libgcc_s.so.1
|
||||||
|
# the .so It used to be a symlink, but now it is a script
|
||||||
|
cp -a ${stdenv.cc.cc}/lib/libgcc_s.so $out/lib/libgcc_s.so
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
echo SUPPORTED-LOCALES=C.UTF-8/UTF-8 > ../glibc-2*/localedata/SUPPORTED
|
echo SUPPORTED-LOCALES=C.UTF-8/UTF-8 > ../glibc-2*/localedata/SUPPORTED
|
||||||
make -j''${NIX_BUILD_CORES:-1} -l''${NIX_BUILD_CORES:-1} localedata/install-locales
|
make -j''${NIX_BUILD_CORES:-1} -l''${NIX_BUILD_CORES:-1} localedata/install-locales
|
||||||
|
@ -7336,51 +7336,67 @@ in
|
|||||||
|
|
||||||
llvmPackages = recurseIntoAttrs llvmPackages_5;
|
llvmPackages = recurseIntoAttrs llvmPackages_5;
|
||||||
|
|
||||||
llvmPackages_35 = callPackage ../development/compilers/llvm/3.5 {
|
llvmPackages_35 = callPackage ../development/compilers/llvm/3.5 ({
|
||||||
isl = isl_0_14;
|
isl = isl_0_14;
|
||||||
};
|
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv buildPackages.gcc6;
|
||||||
|
});
|
||||||
|
|
||||||
llvmPackages_37 = callPackage ../development/compilers/llvm/3.7 {
|
llvmPackages_37 = callPackage ../development/compilers/llvm/3.7 ({
|
||||||
inherit (stdenvAdapters) overrideCC;
|
inherit (stdenvAdapters) overrideCC;
|
||||||
buildLlvmTools = buildPackages.llvmPackages_37.tools;
|
buildLlvmTools = buildPackages.llvmPackages_37.tools;
|
||||||
targetLlvmLibraries = targetPackages.llvmPackages_37.libraries;
|
targetLlvmLibraries = targetPackages.llvmPackages_37.libraries;
|
||||||
};
|
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv buildPackages.gcc6;
|
||||||
|
});
|
||||||
|
|
||||||
llvmPackages_38 = callPackage ../development/compilers/llvm/3.8 {
|
llvmPackages_38 = callPackage ../development/compilers/llvm/3.8 ({
|
||||||
inherit (stdenvAdapters) overrideCC;
|
inherit (stdenvAdapters) overrideCC;
|
||||||
buildLlvmTools = buildPackages.llvmPackages_38.tools;
|
buildLlvmTools = buildPackages.llvmPackages_38.tools;
|
||||||
targetLlvmLibraries = targetPackages.llvmPackages_38.libraries;
|
targetLlvmLibraries = targetPackages.llvmPackages_38.libraries;
|
||||||
};
|
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv buildPackages.gcc6;
|
||||||
|
});
|
||||||
|
|
||||||
llvmPackages_39 = callPackage ../development/compilers/llvm/3.9 {
|
llvmPackages_39 = callPackage ../development/compilers/llvm/3.9 ({
|
||||||
inherit (stdenvAdapters) overrideCC;
|
inherit (stdenvAdapters) overrideCC;
|
||||||
buildLlvmTools = buildPackages.llvmPackages_39.tools;
|
buildLlvmTools = buildPackages.llvmPackages_39.tools;
|
||||||
targetLlvmLibraries = targetPackages.llvmPackages_39.libraries;
|
targetLlvmLibraries = targetPackages.llvmPackages_39.libraries;
|
||||||
};
|
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv buildPackages.gcc6;
|
||||||
|
});
|
||||||
|
|
||||||
llvmPackages_4 = callPackage ../development/compilers/llvm/4 {
|
llvmPackages_4 = callPackage ../development/compilers/llvm/4 ({
|
||||||
inherit (stdenvAdapters) overrideCC;
|
inherit (stdenvAdapters) overrideCC;
|
||||||
buildLlvmTools = buildPackages.llvmPackages_4.tools;
|
buildLlvmTools = buildPackages.llvmPackages_4.tools;
|
||||||
targetLlvmLibraries = targetPackages.llvmPackages_4.libraries;
|
targetLlvmLibraries = targetPackages.llvmPackages_4.libraries;
|
||||||
};
|
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv buildPackages.gcc6;
|
||||||
|
});
|
||||||
|
|
||||||
llvmPackages_5 = callPackage ../development/compilers/llvm/5 {
|
llvmPackages_5 = callPackage ../development/compilers/llvm/5 ({
|
||||||
inherit (stdenvAdapters) overrideCC;
|
inherit (stdenvAdapters) overrideCC;
|
||||||
buildLlvmTools = buildPackages.llvmPackages_5.tools;
|
buildLlvmTools = buildPackages.llvmPackages_5.tools;
|
||||||
targetLlvmLibraries = targetPackages.llvmPackages_5.libraries;
|
targetLlvmLibraries = targetPackages.llvmPackages_5.libraries;
|
||||||
};
|
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv buildPackages.gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||||
|
});
|
||||||
|
|
||||||
llvmPackages_6 = callPackage ../development/compilers/llvm/6 {
|
llvmPackages_6 = callPackage ../development/compilers/llvm/6 ({
|
||||||
inherit (stdenvAdapters) overrideCC;
|
inherit (stdenvAdapters) overrideCC;
|
||||||
buildLlvmTools = buildPackages.llvmPackages_6.tools;
|
buildLlvmTools = buildPackages.llvmPackages_6.tools;
|
||||||
targetLlvmLibraries = targetPackages.llvmPackages_6.libraries;
|
targetLlvmLibraries = targetPackages.llvmPackages_6.libraries;
|
||||||
};
|
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv buildPackages.gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||||
|
});
|
||||||
|
|
||||||
llvmPackages_7 = callPackage ../development/compilers/llvm/7 {
|
llvmPackages_7 = callPackage ../development/compilers/llvm/7 ({
|
||||||
inherit (stdenvAdapters) overrideCC;
|
inherit (stdenvAdapters) overrideCC;
|
||||||
buildLlvmTools = buildPackages.llvmPackages_7.tools;
|
buildLlvmTools = buildPackages.llvmPackages_7.tools;
|
||||||
targetLlvmLibraries = targetPackages.llvmPackages_7.libraries;
|
targetLlvmLibraries = targetPackages.llvmPackages_7.libraries;
|
||||||
};
|
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv buildPackages.gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||||
|
});
|
||||||
|
|
||||||
llvmPackages_latest = llvmPackages_7;
|
llvmPackages_latest = llvmPackages_7;
|
||||||
|
|
||||||
@ -7499,10 +7515,12 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# For beta and nightly releases use the nixpkgs-mozilla overlay
|
# For beta and nightly releases use the nixpkgs-mozilla overlay
|
||||||
rust = callPackage ../development/compilers/rust {
|
rust = callPackage ../development/compilers/rust ({
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||||
llvm = llvm_7;
|
llvm = llvm_7;
|
||||||
};
|
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||||
|
});
|
||||||
inherit (rust) cargo rustc;
|
inherit (rust) cargo rustc;
|
||||||
|
|
||||||
buildRustCrate = callPackage ../build-support/rust/build-rust-crate { };
|
buildRustCrate = callPackage ../build-support/rust/build-rust-crate { };
|
||||||
@ -8131,9 +8149,11 @@ in
|
|||||||
spark_22 = callPackage ../applications/networking/cluster/spark { version = "2.2.1"; };
|
spark_22 = callPackage ../applications/networking/cluster/spark { version = "2.2.1"; };
|
||||||
|
|
||||||
spidermonkey_1_8_5 = callPackage ../development/interpreters/spidermonkey/1.8.5.nix { };
|
spidermonkey_1_8_5 = callPackage ../development/interpreters/spidermonkey/1.8.5.nix { };
|
||||||
spidermonkey_38 = callPackage ../development/interpreters/spidermonkey/38.nix {
|
spidermonkey_38 = callPackage ../development/interpreters/spidermonkey/38.nix ({
|
||||||
inherit (darwin) libobjc;
|
inherit (darwin) libobjc;
|
||||||
};
|
} // (stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||||
|
}));
|
||||||
spidermonkey_52 = callPackage ../development/interpreters/spidermonkey/52.nix { };
|
spidermonkey_52 = callPackage ../development/interpreters/spidermonkey/52.nix { };
|
||||||
spidermonkey_60 = callPackage ../development/interpreters/spidermonkey/60.nix { };
|
spidermonkey_60 = callPackage ../development/interpreters/spidermonkey/60.nix { };
|
||||||
spidermonkey = spidermonkey_38;
|
spidermonkey = spidermonkey_38;
|
||||||
@ -10364,18 +10384,28 @@ in
|
|||||||
|
|
||||||
hyperscan = callPackage ../development/libraries/hyperscan { };
|
hyperscan = callPackage ../development/libraries/hyperscan { };
|
||||||
|
|
||||||
icu58 = callPackage (import ../development/libraries/icu/58.nix fetchurl) {
|
icu58 = callPackage (import ../development/libraries/icu/58.nix fetchurl) ({
|
||||||
nativeBuildRoot = buildPackages.icu58.override { buildRootOnly = true; };
|
nativeBuildRoot = buildPackages.icu58.override { buildRootOnly = true; };
|
||||||
};
|
} //
|
||||||
icu59 = callPackage ../development/libraries/icu/59.nix {
|
(stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||||
|
}));
|
||||||
|
icu59 = callPackage ../development/libraries/icu/59.nix ({
|
||||||
nativeBuildRoot = buildPackages.icu59.override { buildRootOnly = true; };
|
nativeBuildRoot = buildPackages.icu59.override { buildRootOnly = true; };
|
||||||
};
|
} // (stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
icu60 = callPackage ../development/libraries/icu/60.nix {
|
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||||
|
}));
|
||||||
|
icu60 = callPackage ../development/libraries/icu/60.nix ({
|
||||||
nativeBuildRoot = buildPackages.icu60.override { buildRootOnly = true; };
|
nativeBuildRoot = buildPackages.icu60.override { buildRootOnly = true; };
|
||||||
};
|
} // (stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
icu63 = callPackage ../development/libraries/icu/63.nix {
|
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||||
|
}));
|
||||||
|
icu63 = callPackage ../development/libraries/icu/63.nix ({
|
||||||
nativeBuildRoot = buildPackages.icu63.override { buildRootOnly = true; };
|
nativeBuildRoot = buildPackages.icu63.override { buildRootOnly = true; };
|
||||||
};
|
} // (stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||||
|
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||||
|
}));
|
||||||
|
|
||||||
icu = icu59;
|
icu = icu59;
|
||||||
|
|
||||||
id3lib = callPackage ../development/libraries/id3lib { };
|
id3lib = callPackage ../development/libraries/id3lib { };
|
||||||
|
Loading…
Reference in New Issue
Block a user