forked from mirrors/nixpkgs
Fixing stdenv's chain of propagated-build-inputs (2nd level propagated build
inputs did not get in) Updating the xorg builder script to support cross building (in fact, support for propagating the required build inputs). svn path=/nixpkgs/branches/stdenv-updates/; revision=18569
This commit is contained in:
parent
fce5b7fe78
commit
d8aa5b5db1
|
@ -15,16 +15,26 @@ postInstall() {
|
||||||
echo "propagating requisites $requires"
|
echo "propagating requisites $requires"
|
||||||
|
|
||||||
for r in $requires; do
|
for r in $requires; do
|
||||||
for p in $pkgs; do
|
if test -n "$crossConfig"; then
|
||||||
|
for p in $crossPkgs; do
|
||||||
if test -e $p/lib/pkgconfig/$r.pc; then
|
if test -e $p/lib/pkgconfig/$r.pc; then
|
||||||
echo " found requisite $r in $p"
|
echo " found requisite $r in $p"
|
||||||
propagatedBuildInputs="$propagatedBuildInputs $p"
|
propagatedBuildInputs="$propagatedBuildInputs $p"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
for p in $nativePkgs; do
|
||||||
|
if test -e $p/lib/pkgconfig/$r.pc; then
|
||||||
|
echo " found requisite $r in $p"
|
||||||
|
propagatedBuildNativeInputs="$propagatedBuildNativeInputs $p"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
ensureDir "$out/nix-support"
|
ensureDir "$out/nix-support"
|
||||||
echo "$propagatedBuildInputs" > "$out/nix-support/propagated-build-inputs"
|
echo "$propagatedBuildInputs" > "$out/nix-support/propagated-build-inputs"
|
||||||
|
echo "$propagatedBuildNativeInputs" > "$out/nix-support/propagated-build-native-inputs"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@ findInputs() {
|
||||||
|
|
||||||
if test -f $pkg/nix-support/$propagatedBuildInputsFile; then
|
if test -f $pkg/nix-support/$propagatedBuildInputsFile; then
|
||||||
for i in $(cat $pkg/nix-support/$propagatedBuildInputsFile); do
|
for i in $(cat $pkg/nix-support/$propagatedBuildInputsFile); do
|
||||||
findInputs $i $var
|
findInputs $i $var $propagatedBuildInputsFile
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue