From 5b8d1709da7b838741e8e5bc4bd72022b8db1f57 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Mon, 17 Aug 2009 13:02:37 +0000
Subject: [PATCH] abuild: the -dev pckages should depend on all subpackages

---
 abuild.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/abuild.in b/abuild.in
index c228d5fdb82d..c325a3dc46dd 100755
--- a/abuild.in
+++ b/abuild.in
@@ -569,9 +569,14 @@ mod() {
 
 # predefined splitfunc dev
 default_dev() {
+	local i
 	depends="$pkgname $depends_dev"
 	install="$install_dev"
 	triggers="$triggers_dev"
+	for i in $origsubpackages; do
+		[ "${i%:*}" = "$subpkgname" ] || depends="$depends ${i%:*}"
+	done
+		
 	cd "$pkgdir" || return 0
 	for i in usr/include usr/lib/pkgconfig usr/share/aclocal\
 			usr/share/gettext usr/bin/*-config	\
@@ -1023,6 +1028,7 @@ fi
 
 # If we are handling a sub package then reset subpackages and install
 if [ -n "$subpkgname" ]; then
+	origsubpackages="$subpackages"
 	subpackages=
 	install=
 fi
-- 
GitLab