Commit ec0a5ee9 authored by Natanael Copa's avatar Natanael Copa

abuild: fix deps for versioned pkg-config deps

Fix version stripping when filtering out needed pkg-configs that are
provided from same (sub)package.
parent 09427f9c
......@@ -1239,7 +1239,7 @@ scan_pkgconfig_depends() {
| sed -E 's/\s*([<>=]+)\s*/\1/' \
| while read pc; do
# only add files that are not self provided
if ! grep -q -w "^${pc%[<>=]*}" "$provides_pc"; then
if ! grep -q -w "^${pc%%[<>=]*}" "$provides_pc"; then
echo "$pc" >> "$controldir"/.needs-pc
fi
done
......
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