Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/newlib: Fixed dependencies

From: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
Date: Thu, 14 Mar 2019 10:55:25 +0100

Currently each flavor of newlib depended on all toolchains, e.g.
newlib-arm-none-eabi would not only pull in binutils and gcc for
the target arm-none-eabi, but all others as well. This commit
changes the behavior so that each newlib version only pulls in the
corresponding toolchain.
---
 testing/newlib/APKBUILD | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/testing/newlib/APKBUILD b/testing/newlib/APKBUILD
index f0cdfb92aa..3d09b2fba9 100644
--- a/testing/newlib/APKBUILD
+++ b/testing/newlib/APKBUILD
_at_@ -8,7 +8,7 @@ _targets="
 	"
 pkgname="$_pkgbase"
 pkgver="3.0.0.20180831"
-pkgrel=0
+pkgrel=1
 pkgdesc="A C standard library implementation intended for use on embedded systems"
 url="http://www.sourceware.org/newlib/"
 makedepends="texinfo"
_at_@ -22,7 +22,7 @@ options="!check"
 for target in $_targets; do
 	targetnorm="${target//-/_}"
 	subpackages="${_pkgbase}-${target}:${targetnorm} ${subpackages}"
-	depends="binutils-${target} gcc-${target} ${depends}"
+	makedepends="binutils-${target} gcc-${target} ${makedepends}"
 done
 
 builddir="$srcdir/$_pkgbase-$pkgver"
_at_@ -109,6 +109,7 @@ package() {
 _install_subpkg() {
 	pkgdesc="A C standard library implementation intended for ${target}"
 	target="${subpkgname#$_pkgbase-}"
+	depends="binutils-${target} gcc-${target} ${depends}"
 	mkdir -p "$subpkgdir"
 	# install nano version
 	cd "${builddir}/build-${target}-nano"
-- 
2.21.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Mar 14 2019 - 10:55:25 UTC