diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-03 20:55:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-03 20:55:45 +0000 |
commit | 2c907ddc341822fe4bc64ea7fb12501184e059be (patch) | |
tree | fd00d2a88d23fe76c1c903b7e9b991e93d2d7a89 /abuild.in | |
parent | 5b00cca758b2fd52dc9fd2c76666ffb1ff2167b7 (diff) | |
download | abuild-2c907ddc341822fe4bc64ea7fb12501184e059be.tar.gz abuild-2c907ddc341822fe4bc64ea7fb12501184e059be.tar.bz2 abuild-2c907ddc341822fe4bc64ea7fb12501184e059be.tar.xz abuild-2c907ddc341822fe4bc64ea7fb12501184e059be.zip |
abuild: warn if g++ is in makedepends. fix for dynamic deps
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -122,6 +122,8 @@ sanitycheck() { [ -n "$makedepend" ] && die "APKBUILD contains 'makedepend'. It should be makedepends" grep '^# Maintainer:' $APKBUILD >/dev/null || warning "No maintainer" + + makedepends_has 'g++' && warning "g++ should not be in makedepends" return 0 } @@ -403,8 +405,8 @@ trace_apk_deps() { # first check if its provide by same apkbuild for j in "$dir"/../*/.provides-so; do grep -w "$i" "$j" >/dev/null || continue - found=${found%/.*} - found=${j##*/} + found=${j%/.provides-so} + found=${found##*/} break done # check apk db if not provided by a subpackage |