* Revive klibc 1.5 for now since vmtools still uses its insmod.
svn path=/nixpkgs/trunk/; revision=16040
This commit is contained in:
parent
205fb0c87e
commit
674211ac9d
|
@ -7,6 +7,8 @@ rec {
|
||||||
|
|
||||||
inherit (kernelPackages_2_6_26) kernel;
|
inherit (kernelPackages_2_6_26) kernel;
|
||||||
|
|
||||||
|
klibcShrunk = pkgs.klibcShrunk.override { klibc = klibc_15; };
|
||||||
|
|
||||||
|
|
||||||
modulesClosure = makeModulesClosure {
|
modulesClosure = makeModulesClosure {
|
||||||
inherit kernel;
|
inherit kernel;
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
{stdenv, fetchurl, perl, bison, mktemp, kernelHeaders}:
|
||||||
|
|
||||||
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
|
let version = "1.5"; in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "klibc-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://kernel/linux/libs/klibc/klibc-${version}.tar.bz2";
|
||||||
|
sha256 = "1izhf8kscjymsvsvhcqw9awnmp94vwv70zdj09srg9bkpjj0n017";
|
||||||
|
};
|
||||||
|
|
||||||
|
makeFlags = ["V=1" "prefix=$out" "SHLIBDIR=$out/lib"];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
makeFlags=$(eval "echo $makeFlags")
|
||||||
|
|
||||||
|
mkdir linux
|
||||||
|
cp -prsd ${kernelHeaders}/include linux/
|
||||||
|
chmod -R u+w linux/include/
|
||||||
|
''; # */
|
||||||
|
|
||||||
|
# Install static binaries as well.
|
||||||
|
postInstall = ''
|
||||||
|
dir=$out/lib/klibc/bin.static
|
||||||
|
mkdir $dir
|
||||||
|
cp $(find $(find . -name static) -type f ! -name "*.g" -a ! -name ".*") $dir/
|
||||||
|
cp usr/dash/sh $dir/
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [perl bison mktemp];
|
||||||
|
}
|
|
@ -5257,6 +5257,13 @@ let
|
||||||
kernelHeaders = glibc.kernelHeaders;
|
kernelHeaders = glibc.kernelHeaders;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Old version; needed in vmtools for insmod. Should use
|
||||||
|
# module_init_tools instead.
|
||||||
|
klibc_15 = makeOverridable (import ../os-specific/linux/klibc/1.5.nix) {
|
||||||
|
inherit fetchurl stdenv perl bison mktemp;
|
||||||
|
kernelHeaders = glibc.kernelHeaders;
|
||||||
|
};
|
||||||
|
|
||||||
klibcShrunk = makeOverridable (import ../os-specific/linux/klibc/shrunk.nix) {
|
klibcShrunk = makeOverridable (import ../os-specific/linux/klibc/shrunk.nix) {
|
||||||
inherit stdenv klibc;
|
inherit stdenv klibc;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue