Commit 9400ec01 authored by Natanael Copa's avatar Natanael Copa

abuild: fix detection of pkgconfig dependency

parent 4e633c5b
......@@ -426,6 +426,12 @@ trace_apk_deps() {
local dir="$2"
local i j found autodeps=
msg "Tracing dependencies for $name..."
# add pkgconfig if usr/lib/pkgconfig is found
if [ -d "$pkgbasedir"/$name/usr/lib/pkgconfig ] \
&& ! grep -q '^depend = pkgconfig' "$dir"/.PKGINFO; then
msg "Added pkgconfig as dependency"
echo "depend = pkgconfig" >> "$dir"/.PKGINFO
fi
for i in $(cat "$dir"/.needs-so 2>/dev/null); do
found=
# first check if its provide by same apkbuild
......@@ -455,12 +461,6 @@ trace_apk_deps() {
for i in $autodeps; do
echo "depend = $i" >> "$dir"/.PKGINFO
done
# add pkgconfig if usr/lib/pkgconfig is found
if [ -d "$pkgbasdir"/$name/usr/lib/pkgconfig ] \
&& ! grep -q '^depend = pkgconfig' "$dir"/.PKGINFO; then
msg "Added pkgconfig as dependency"
echo "depend = pkgconfig" >> "$dir"/.PKGINFO
fi
}
create_apks() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment