Mail archive
alpine-aports

[alpine-aports] [PATCH] community/avr-libc: fix build on mips*, modernize

From: alpine-mips-patches <info_at_mobile-stream.com>
Date: Mon, 11 Feb 2019 13:18:22 +0000

./config.guess has no exec permission so run it directly as a shell
script to fix build system detection on mips*.

Also remove bash from makedepends, it is not needed.
---
 community/avr-libc/APKBUILD | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/community/avr-libc/APKBUILD b/community/avr-libc/APKBUILD
index 747245c81c..826c06fcdc 100644
--- a/community/avr-libc/APKBUILD
+++ b/community/avr-libc/APKBUILD
_at_@ -2,11 +2,11 @@
 # Maintainer: Stefan Wagner <stw_at_bit-strickerei.de>
 pkgname=avr-libc
 pkgver=2.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="The C runtime library for the AVR family of microcontrollers"
 url="http://savannah.nongnu.org/projects/avr-libc/"
 depends="gcc-avr"
-makedepends="autoconf automake bash"
+makedepends="autoconf automake"
 arch="all"
 license="BSD"
 subpackages="$pkgname-doc"
_at_@ -15,23 +15,23 @@ source="https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar
 builddir="$srcdir/$pkgname-$pkgver"
 
 prepare() {
-	default_prepare || return 1
-	update_config_guess || return 1
+	default_prepare
+	update_config_guess
 }
 
 build() {
 	cd "$builddir"
-	./bootstrap || return 1
+	./bootstrap
 	CC=avr-gcc ./configure \
-		--build="$(./config.guess)" \
+		--build="$(/bin/sh config.guess)" \
 		--host=avr \
-		--prefix=/usr || return 1
+		--prefix=/usr
 	make
 }
 
 package() {
 	cd "$builddir"
-	make install DESTDIR="$pkgdir" || return 1
+	make install DESTDIR="$pkgdir"
 	if [ -d "$pkgdir"/usr/lib64 ]; then
 		mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/
 		rmdir "$pkgdir"/usr/lib64
-- 
2.20.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Feb 11 2019 - 13:18:22 UTC