~alpine/aports

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

Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Details
Message ID
<20190314095525.28837-1-marian.buschsieweke@ovgu.de>
Sender timestamp
1552557325
DKIM signature
missing
Download raw message
Patch: +3 -2
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
@@ -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"
@@ -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"
@@ -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@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)