Subject: [alpine-aports] [PATCH] main/libffi: fix native build on mips*

From: Mobile Stream <[email-masked]>
Date: Fri, 10 Aug 2018 16:47:03 +0300

libffi needs asm/sgidefs.h on mips* from linux-headers however abuild ignores makedepends_host in native build if makedepends is set explicitly.

The usual makedepends="$makedepends_build $makedepends_host" is not added by this patch because abuild properly reconstructs it.

---
 main/libffi/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/libffi/APKBUILD b/main/libffi/APKBUILD
index 313af2e56d..b9130c8411 100644
--- a/main/libffi/APKBUILD
+++ b/main/libffi/APKBUILD
@@ -7,7 +7,7 @@ url="http://sourceware.org/libffi"
 arch="all"
 license="MIT"
 depends=
-makedepends="texinfo"
+makedepends_build="texinfo"
 # linux-headers is needed for MIPS atleast
 makedepends_host="linux-headers"
 install=
-- 
2.18.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---