summaryrefslogtreecommitdiffstats
path: root/abuild
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-02-17 07:39:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-02-17 07:39:06 +0000
commit23b3d4a8dd11f742bfd0e3340d2ef6903e750109 (patch)
tree427f99e4bbef1fcf86fb7f45faa0bcf567142676 /abuild
parent20d6494236bc7ac5830f8a361fbf4164c10145e4 (diff)
downloadabuild-23b3d4a8dd11f742bfd0e3340d2ef6903e750109.tar.bz2
abuild-23b3d4a8dd11f742bfd0e3340d2ef6903e750109.tar.xz
abuild: do not try build/install dependencies that are provided by self
like when main package depends on subpackages
Diffstat (limited to 'abuild')
-rwxr-xr-xabuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/abuild b/abuild
index ec4e76a..89fadbc 100755
--- a/abuild
+++ b/abuild
@@ -502,7 +502,14 @@ deptrace() {
builddeps() {
local deps alldeps pkg i dir ver missing
msg "Building dependencies..."
- deps="$BUILD_BASE $depends $makedepends"
+ deps="$BUILD_BASE $makedepends"
+
+ # add depends unless it is a subpackage
+ for i in $depends; do
+ subpackages_has $i || deps="$deps $i"
+ done
+
+ # find which deps are missing
for i in $deps; do
if ! apk info -e $i; then
if [ -z "$install_deps" ] && [ -z "$recursive" ]; then