summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-02-02 14:17:27 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-02-02 14:17:27 +0200
commit6ce7def270994a675836e2b945a7f70eb2b03c2b (patch)
tree67d323555a19f758906a2fd58b588c6d1d5a0b23 /scripts
parent1f6ad324dbf4bebec905ddbb76d274345673a5b3 (diff)
downloadrpm-6ce7def270994a675836e2b945a7f70eb2b03c2b.tar.gz
rpm-6ce7def270994a675836e2b945a7f70eb2b03c2b.tar.bz2
rpm-6ce7def270994a675836e2b945a7f70eb2b03c2b.zip
Prepend PKG_CONFIG_PATH on pkgconfig requires extraction too (rhbz#473814)
- similar to ab02fb183a441b6a30c863aebf49be992cd431fe but for requires
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pkgconfigdeps.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/pkgconfigdeps.sh b/scripts/pkgconfigdeps.sh
index 6baa0f1a5..2251abe38 100755
--- a/scripts/pkgconfigdeps.sh
+++ b/scripts/pkgconfigdeps.sh
@@ -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