Blame rpm-4.6.0-pkgconfig-reqs.patch
|
Panu Matilainen |
3f11e3 |
commit 6ce7def270994a675836e2b945a7f70eb2b03c2b
|
|
Panu Matilainen |
3f11e3 |
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
3f11e3 |
Date: Mon Feb 2 14:17:27 2009 +0200
|
|
Panu Matilainen |
3f11e3 |
|
|
Panu Matilainen |
3f11e3 |
Prepend PKG_CONFIG_PATH on pkgconfig requires extraction too (rhbz#473814)
|
|
Panu Matilainen |
3f11e3 |
- similar to ab02fb183a441b6a30c863aebf49be992cd431fe but for requires
|
|
Panu Matilainen |
3f11e3 |
|
|
Panu Matilainen |
3f11e3 |
diff --git a/scripts/pkgconfigdeps.sh b/scripts/pkgconfigdeps.sh
|
|
Panu Matilainen |
3f11e3 |
index 6baa0f1..2251abe 100755
|
|
Panu Matilainen |
3f11e3 |
--- a/scripts/pkgconfigdeps.sh
|
|
Panu Matilainen |
3f11e3 |
+++ b/scripts/pkgconfigdeps.sh
|
|
Panu Matilainen |
3f11e3 |
@@ -34,6 +34,8 @@ case $1 in
|
|
Panu Matilainen |
3f11e3 |
*.pc)
|
|
Panu Matilainen |
3f11e3 |
i="`expr $i + 1`"
|
|
Panu Matilainen |
3f11e3 |
[ $i -eq 1 ] && echo "$pkgconfig"
|
|
Panu Matilainen |
3f11e3 |
+ DIR="`dirname ${filename}`"
|
|
Panu Matilainen |
3f11e3 |
+ export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
|
|
Panu Matilainen |
3f11e3 |
$pkgconfig --print-requires "$filename" 2> /dev/null | while read n r v ; do
|
|
Panu Matilainen |
3f11e3 |
echo "pkgconfig($n)" "$r" "$v"
|
|
Panu Matilainen |
3f11e3 |
done
|