abuild: warn if g++ is in makedepends. fix for dynamic deps
This commit is contained in:
parent
5b00cca758
commit
2c907ddc34
@ -122,6 +122,8 @@ sanitycheck() {
|
|||||||
[ -n "$makedepend" ] && die "APKBUILD contains 'makedepend'. It should be makedepends"
|
[ -n "$makedepend" ] && die "APKBUILD contains 'makedepend'. It should be makedepends"
|
||||||
|
|
||||||
grep '^# Maintainer:' $APKBUILD >/dev/null || warning "No maintainer"
|
grep '^# Maintainer:' $APKBUILD >/dev/null || warning "No maintainer"
|
||||||
|
|
||||||
|
makedepends_has 'g++' && warning "g++ should not be in makedepends"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -403,8 +405,8 @@ trace_apk_deps() {
|
|||||||
# first check if its provide by same apkbuild
|
# first check if its provide by same apkbuild
|
||||||
for j in "$dir"/../*/.provides-so; do
|
for j in "$dir"/../*/.provides-so; do
|
||||||
grep -w "$i" "$j" >/dev/null || continue
|
grep -w "$i" "$j" >/dev/null || continue
|
||||||
found=${found%/.*}
|
found=${j%/.provides-so}
|
||||||
found=${j##*/}
|
found=${found##*/}
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
# check apk db if not provided by a subpackage
|
# check apk db if not provided by a subpackage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user