mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 23:12:45 +00:00
abuild: verify that the pkgconf version is valid
This commit is contained in:
parent
baa554477e
commit
7edafd8c75
@ -1092,6 +1092,7 @@ prepare_pkgconfig_provides() {
|
||||
local f=${i##*/}
|
||||
local v=$(PKG_CONFIG_PATH="$dir"/usr/lib/pkgconfig PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH=1 pkg-config \
|
||||
--modversion ${f%.pc})
|
||||
$APK version --check --quiet $v || die "$i: pkgconf version $v is invalid"
|
||||
echo "$pcprefix${f%.pc}=${v:-0}" >> "$controldir"/.provides-pc
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user