Received: from mx12.valuehost.ru (mx12.valuehost.ru [217.112.42.215]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTP id 789AE781B3B for ; Wed, 18 Sep 2019 12:59:01 +0000 (UTC) Received: from mx7.valuehost.ru (unknown [127.0.0.255]) by mx12.valuehost.ru (Postfix) with ESMTP id 774106296B for ; Wed, 18 Sep 2019 15:58:59 +0300 (MSK) From: alpine-mips-patches Date: Wed, 18 Sep 2019 12:52:34 +0000 Subject: [PATCH] main/clang: fix packaging To: alpine-aports@lists.alpinelinux.org Message-Id: <20190918125859.774106296B@mx12.valuehost.ru> Keep /usr/lib/clang/8.0.1/include in the main package as all these headers (altivec.h, msa.h, x86intrin.h etc.) are required to build programs *with* clang, not against it. --- main/clang/APKBUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main/clang/APKBUILD b/main/clang/APKBUILD index 1a40b7d9dd..a4e94d040e 100644 --- a/main/clang/APKBUILD +++ b/main/clang/APKBUILD @@ -4,7 +4,7 @@ pkgname=clang # Note: Update together with llvm. pkgver=8.0.1 -pkgrel=0 +pkgrel=1 _llvmver=${pkgver%%.*} pkgdesc="A C language family front-end for LLVM" arch="all" @@ -80,6 +80,14 @@ static() { mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ } +dev() { + default_dev + + # move back usr/lib/clang/x.y.z/include with files such as altivec.h, msa.h etc + # these are needed to build programs *with* clang, not *against* it. + mv "$subpkgdir"/usr/lib/clang "$pkgdir"/usr/lib/ +} + analyzer() { pkgdesc="Clang source code analysis framework" depends="$pkgname=$pkgver-r$pkgrel perl python2" -- 2.23.0