mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-12 18:10:47 +00:00
abuild: check if depends_dev is set unnecessarily
depends_dev are dependencies of the of the developement subpackage it does not need to be set when there is no developement subpackage
This commit is contained in:
parent
ac8b0e55cb
commit
ea8ab0c920
16
abuild.in
16
abuild.in
@ -212,6 +212,8 @@ default_sanitycheck() {
|
|||||||
|
|
||||||
check_maintainer || die "Provide a valid RFC822 maintainer address"
|
check_maintainer || die "Provide a valid RFC822 maintainer address"
|
||||||
|
|
||||||
|
check_depends_dev || warning "depends_dev found but no development subpackage found"
|
||||||
|
|
||||||
makedepends_has 'g++' && warning "g++ should not be in makedepends"
|
makedepends_has 'g++' && warning "g++ should not be in makedepends"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -729,6 +731,8 @@ get_maintainer() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
check_maintainer() {
|
check_maintainer() {
|
||||||
get_maintainer
|
get_maintainer
|
||||||
if [ -z "$maintainer" ]; then
|
if [ -z "$maintainer" ]; then
|
||||||
@ -742,6 +746,18 @@ check_maintainer() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_depends_dev() {
|
||||||
|
if [ -n "$depends_dev" ]; then
|
||||||
|
local pkgname
|
||||||
|
for i in $pkgname $subpackages; do
|
||||||
|
case "$pkgname" in
|
||||||
|
*-dev) return 0 ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
prepare_metafiles() {
|
prepare_metafiles() {
|
||||||
getpkgver || return 1
|
getpkgver || return 1
|
||||||
local name=${subpkgname:-$pkgname}
|
local name=${subpkgname:-$pkgname}
|
||||||
|
Loading…
Reference in New Issue
Block a user