about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-11-23 19:45:18 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-11-23 19:45:18 +0000
commitd8aa5b5db19275b428d0b2a84cf26ecf836f3a55 (patch)
treeeb82100d2e53687727cb1b0a06bb2bece6d4c0f5 /pkgs/servers
parentfce5b7fe78346ef088c148e5b03fbff116277b6f (diff)
downloadnixlib-d8aa5b5db19275b428d0b2a84cf26ecf836f3a55.tar
nixlib-d8aa5b5db19275b428d0b2a84cf26ecf836f3a55.tar.gz
nixlib-d8aa5b5db19275b428d0b2a84cf26ecf836f3a55.tar.bz2
nixlib-d8aa5b5db19275b428d0b2a84cf26ecf836f3a55.tar.lz
nixlib-d8aa5b5db19275b428d0b2a84cf26ecf836f3a55.tar.xz
nixlib-d8aa5b5db19275b428d0b2a84cf26ecf836f3a55.tar.zst
nixlib-d8aa5b5db19275b428d0b2a84cf26ecf836f3a55.zip
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
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/x11/xorg/builder.sh22
1 files changed, 16 insertions, 6 deletions
diff --git a/pkgs/servers/x11/xorg/builder.sh b/pkgs/servers/x11/xorg/builder.sh
index 7da1da77340d..528042e3df98 100644
--- a/pkgs/servers/x11/xorg/builder.sh
+++ b/pkgs/servers/x11/xorg/builder.sh
@@ -15,16 +15,26 @@ postInstall() {
     echo "propagating requisites $requires"
 
     for r in $requires; do
-        for p in $pkgs; do
-            if test -e $p/lib/pkgconfig/$r.pc; then
-                echo "  found requisite $r in $p"
-                propagatedBuildInputs="$propagatedBuildInputs $p"
-            fi
-        done
+        if test -n "$crossConfig"; then
+            for p in $crossPkgs; do
+                if test -e $p/lib/pkgconfig/$r.pc; then
+                    echo "  found requisite $r in $p"
+                    propagatedBuildInputs="$propagatedBuildInputs $p"
+                fi
+            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
 
     ensureDir "$out/nix-support"
     echo "$propagatedBuildInputs" > "$out/nix-support/propagated-build-inputs"
+    echo "$propagatedBuildNativeInputs" > "$out/nix-support/propagated-build-native-inputs"
 }