Prepend PKG_CONFIG_PATH on pkgconfig requires extraction too (rhbz#473814)
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 2 Feb 2009 12:17:27 +0000 (14:17 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 2 Feb 2009 12:17:27 +0000 (14:17 +0200)
- similar to ab02fb183a441b6a30c863aebf49be992cd431fe but for requires

scripts/pkgconfigdeps.sh

index 6baa0f1..2251abe 100755 (executable)
@@ -34,6 +34,8 @@ case $1 in
     *.pc)
        i="`expr $i + 1`"
        [ $i -eq 1 ] && echo "$pkgconfig"
+       DIR="`dirname ${filename}`"
+       export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
        $pkgconfig --print-requires "$filename" 2> /dev/null | while read n r v ; do
            echo "pkgconfig($n)" "$r" "$v"
        done