X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx12.valuehost.ru (mx12.valuehost.ru [217.112.42.215]) by lists.alpinelinux.org (Postfix) with ESMTP id 1823DF83162 for ; Mon, 11 Feb 2019 13:37:25 +0000 (UTC) Received: from mx7.valuehost.ru (unknown [127.0.0.255]) by mx12.valuehost.ru (Postfix) with ESMTP id A8A865A405 for ; Mon, 11 Feb 2019 16:37:24 +0300 (MSK) From: alpine-mips-patches Date: Mon, 11 Feb 2019 13:18:22 +0000 Subject: [alpine-aports] [PATCH] community/avr-libc: fix build on mips*, modernize To: alpine-aports@lists.alpinelinux.org Message-Id: <20190211133724.A8A865A405@mx12.valuehost.ru> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: ./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 @@ -2,11 +2,11 @@ # Maintainer: Stefan Wagner 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" @@ -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@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---