aboutsummaryrefslogtreecommitdiffstats
path: root/pkgconfigdeps.sh
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-02-17 15:52:22 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-02-17 15:52:22 +0000
commit722a2cf8bd288af87df4d8d442e49ee0d322f4c7 (patch)
tree2f1b63135c7dc92198f05f50b9b5cfe7a2da8a8a /pkgconfigdeps.sh
parent0428f09f0fe52e6be53c57f0274805d555aa4320 (diff)
downloadrpm-setup-722a2cf8bd288af87df4d8d442e49ee0d322f4c7.tar
rpm-setup-722a2cf8bd288af87df4d8d442e49ee0d322f4c7.tar.gz
rpm-setup-722a2cf8bd288af87df4d8d442e49ee0d322f4c7.tar.bz2
rpm-setup-722a2cf8bd288af87df4d8d442e49ee0d322f4c7.tar.xz
rpm-setup-722a2cf8bd288af87df4d8d442e49ee0d322f4c7.zip
- really fix #285771.36
Diffstat (limited to 'pkgconfigdeps.sh')
-rwxr-xr-xpkgconfigdeps.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgconfigdeps.sh b/pkgconfigdeps.sh
index b884205..f5eb66c 100755
--- a/pkgconfigdeps.sh
+++ b/pkgconfigdeps.sh
@@ -18,11 +18,12 @@ case $1 in
*.pc)
# Assume that this file doesn't contain useful information.
pcfiles=${pcfiles}" ${filename}"
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
;;
esac
done
# Query the dependencies of the package.
- $pkgconfig --print-provides $pcfiles 2> /dev/null | while read n r v ; do
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH $pkgconfig --print-provides $pcfiles 2> /dev/null | while read n r v ; do
# We have a dependency. Make a note that we need the pkgconfig
# tool for this package.
echo "pkgconfig($n)" "$r" "$v"
@@ -34,9 +35,10 @@ case $1 in
case "${filename}" in
*.pc)
pcfiles=${pcfiles}" ${filename}"
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
esac
done
- $pkgconfig --print-requires ${pcfiles} 2> /dev/null | while read n r v ; do
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH $pkgconfig --print-requires ${pcfiles} 2> /dev/null | while read n r v ; do
echo "pkgconfig($n)" "$r" "$v"
done
;;