Mail archive
alpine-aports

Re: [alpine-aports] [PATCH 7/7] main/libffi: add linux-headers dependency on mips archs

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Mon, 18 Dec 2017 16:50:58 +0100

On Sun, 10 Dec 2017 01:18:14 +0100
Nils Andreas Svee <me_at_lochnair.net> wrote:

> libffi depends on the asm/sgidefs.h kernel header, so if we're compiling on MIPS,
> add linux-headers to makedepends_host
> ---
> main/libffi/APKBUILD | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/main/libffi/APKBUILD b/main/libffi/APKBUILD
> index 36ce7085f8..9ba93bcd2e 100644
> --- a/main/libffi/APKBUILD
> +++ b/main/libffi/APKBUILD
> _at_@ -15,6 +15,10 @@ source="ftp://sourceware.org/pub/$pkgname/$pkgname-$pkgver.tar.gz
> pax-dlmmap.patch
> "
>
> +case "$CTARGET_ARCH" in
> +mips*) makedepends_host="linux-headers" ;;
> +esac
> +
> builddir="$srcdir"/$pkgname-$pkgver
>
> build () {

I think we can add linux-headers for all architectures, with a comment
that its specifically needed for mips, so we don't need the conditional.

-nc


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Dec 18 2017 - 16:50:58 GMT