~alpine/aports

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

alpine-mips-patches <info@mobile-stream.com>
Details
Message ID
<20190211133724.A8A865A405@mx12.valuehost.ru>
Sender timestamp
1549891102
DKIM signature
missing
Download raw message
Patch: +8 -8
./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 <stw@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"
@@ -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
---
Reply to thread Export thread (mbox)