aboutsummaryrefslogtreecommitdiffstats
path: root/main/clang/APKBUILD
diff options
context:
space:
mode:
authorxentec <xentec@aix0.eu>2017-10-23 18:27:32 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-11-14 18:42:44 +0100
commit60c32c79a11ee7715f20aeebd381299120c43eb0 (patch)
tree22de0e87cb31a859622fce93eec1afca6440a348 /main/clang/APKBUILD
parentb4767fa4037857bb3393650e351e69d16a5d7e56 (diff)
downloadaports-60c32c79a11ee7715f20aeebd381299120c43eb0.tar.gz
aports-60c32c79a11ee7715f20aeebd381299120c43eb0.tar.bz2
aports-60c32c79a11ee7715f20aeebd381299120c43eb0.tar.xz
main/clang: upgrade to 5.0.0
Diffstat (limited to 'main/clang/APKBUILD')
-rw-r--r--main/clang/APKBUILD68
1 files changed, 37 insertions, 31 deletions
diff --git a/main/clang/APKBUILD b/main/clang/APKBUILD
index 8521c949f9..f08bb9b239 100644
--- a/main/clang/APKBUILD
+++ b/main/clang/APKBUILD
@@ -2,9 +2,9 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=clang
# Note: Update together with llvm.
-pkgver=4.0.0
+pkgver=5.0.0
pkgrel=0
-_vermajor=${pkgver%%.*}
+_llvmver=${pkgver%%.*}
pkgdesc="A C language family front-end for LLVM"
arch="all"
url="http://llvm.org/"
@@ -12,60 +12,66 @@ license="UOI-NCSA"
makedepends="
cmake
isl-dev
+ libedit-dev
libxml2-dev
libxml2-utils
- llvm-dev>=$_vermajor
- llvm-static>=$_vermajor
- paxmark
+ llvm-dev>=$_llvmver
+ llvm-static>=$_llvmver
+ llvm-test-utils>=$_llvmver
python2
"
depends_dev="$pkgname=$pkgver-r$pkgrel"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs
$pkgname-analyzer::noarch"
-source="http://llvm.org/releases/$pkgver/cfe-$pkgver.src.tar.xz
- clang-0001-Add-Alpine-Linux-distro.patch
- clang-0002-Use-z-relro-on-Alpine-Linux.patch
- clang-0003-Use-hash-style-gnu-for-Alpine-Linux.patch
- clang-0004-Add-musl-targets.patch
- clang-0005-Enable-PIE-by-default-for-alpine-linux.patch
- clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch
- clang-0007-Enable-stack-protector-by-default-for-alpine-linux.patch
+source="https://llvm.org/releases/$pkgver/cfe-$pkgver.src.tar.xz
+ 0001-Add-Alpine-Linux-distro.patch
+ 0002-Use-z-relro-on-Alpine-Linux.patch
+ 0003-Use-hash-style-gnu-for-Alpine-Linux.patch
+ 0004-Add-musl-targets.patch
+ 0005-Enable-PIE-by-default-for-Alpine-Linux.patch
+ 0006-Link-with-z-now-by-default-for-Alpine-Linux.patch
+ 0007-Enable-stack-protector-by-default-for-Alpine-Linux.patch
"
builddir="$srcdir/cfe-$pkgver.src"
+prepare() {
+ default_prepare
+
+ # FIXME: fails on 5.0.0
+ rm "$builddir/test/OpenMP/task_firstprivate_codegen.cpp"
+}
+
build() {
mkdir -p "$builddir"/build
cd "$builddir"/build
- cmake .. -G "Unix Makefiles" -Wno-dev \
+ cmake .. -Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
+ -DCLANG_VENDOR=Alpine \
-DCLANG_BUILD_EXAMPLES=OFF \
-DCLANG_INCLUDE_DOCS=ON \
-DCLANG_INCLUDE_TESTS=ON \
-DCLANG_PLUGIN_SUPPORT=ON \
-DLIBCLANG_BUILD_STATIC=ON \
-DLLVM_ENABLE_EH=ON \
- -DLLVM_ENABLE_RTTI=ON \
- || return 1
+ -DLLVM_ENABLE_RTTI=ON
- make clang-tblgen || return 1
+ make clang-tblgen
make
}
check() {
cd "$builddir"/build
- ./bin/clang --version
- ./bin/clang-check --version
- ./bin/clang-format --version
+ make check-clang
}
package() {
cd "$builddir"/build
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
install -m 644 lib/libclang.a "$pkgdir"/usr/lib
}
@@ -85,16 +91,16 @@ analyzer() {
mkdir -p "$subpkgdir"/usr/bin \
"$subpkgdir"/usr/libexec \
"$subpkgdir"/usr/share/
- mv usr/bin/scan-* "$subpkgdir"/usr/bin/ || return 1
- mv usr/libexec/*-analyzer "$subpkgdir"/usr/libexec/ || return 1
+ mv usr/bin/scan-* "$subpkgdir"/usr/bin/
+ mv usr/libexec/*-analyzer "$subpkgdir"/usr/libexec/
mv usr/share/scan-* "$subpkgdir"/usr/share/
}
-sha512sums="a0d9972ec337a5c105fcbe7abc4076ba1e580f28908a3318f43bbfe59143f446ed5b78dad210f624145d7e5a3d56c15bfead78826c068422b60120fa1cfa482a cfe-4.0.0.src.tar.xz
-4014984a187e4d0331d8315727d1b831e573843cd8d113df43424524cb348bc73ce3d12783351d9a14f9fd14111d75ce71d8f2a85d82b6437a61b11d85796cfb clang-0001-Add-Alpine-Linux-distro.patch
-53741890ec3805dd0d5a930ed526cb5bac5f75c459c6910c9461017719186383cf54638af4eea7a38eb7f9f423b18086bd5584b11f7e4babf6cd0edf8b4f4f48 clang-0002-Use-z-relro-on-Alpine-Linux.patch
-f06e351785d5755827459f17d3533415772ba84b4fbd4e49f418bafd20394e98d42b33a94aa34cff2a7b54c79cf06a6f5d382af5a55cba63a81116f0568d4b25 clang-0003-Use-hash-style-gnu-for-Alpine-Linux.patch
-2998ab2dfbc3d5629dd7e65e7e39dc0ab96f61e24733cb8d2d4faee50a89f0f159ad44d10182ed4c96f060180f4e22510881f4e9eb00ced01278bde99adf3389 clang-0004-Add-musl-targets.patch
-6215080a796fa1fc6f7634781ef77fc245037880dbf075a656823aae5f9f4911294dc6d61172db399b063adbe445c38b73cec12fc66dbe16bd9d84dc58035846 clang-0005-Enable-PIE-by-default-for-alpine-linux.patch
-d151a6ecca470abb1f4dbc06910155db0688322475655e28cdcb9c0b21930c8bcaf166e9df9fc9dca1be654cf497587961e461d91ee2871fdf454bbd33c5fffe clang-0006-Link-with-z-now-by-default-for-Alpine-Linux.patch
-f8c46bb64202c9233595362eb54288c30fbd28309308cbcafe1802dc50ffd676c7a70e6cbdbfd73464f872b40a90acd2eb736dcc9622fd434dbd44a5b0005027 clang-0007-Enable-stack-protector-by-default-for-alpine-linux.patch"
+sha512sums="14acdd622310122b544c952ee5b932b7006d9d8424319f0e3974f2503d40a0cec4200fdd3d813a32ce0d877bcfbb9a5bd5c36f6142b4330e6c814f113ca2efe8 cfe-5.0.0.src.tar.xz
+98ae759832b2f4c41152f8d16c909044c8d5afb1f4ef3ec10fdc8c3419b2ce8a14a21be989d3919f98869a46ee21f702651d59becb1c87b258846e0d81398358 0001-Add-Alpine-Linux-distro.patch
+a45d766005500736a270204424e3b3ea6e2334f4807c431cfcb79563d34ac8d6f1519291b3b1422152e2888ee243a060733a09120c17c706d310f5e04a7daae9 0002-Use-z-relro-on-Alpine-Linux.patch
+ca551fb4e8a844424c63e381c4e1e1239ee95548c7561d46d4e8ae01c65b5e46ece7c51021f152ad4aa10dcdd40c0638728b29aed93ddd65d9aeff2af2e878e8 0003-Use-hash-style-gnu-for-Alpine-Linux.patch
+0ba4e6cb6d6854ef627f7f6d60f9f6843490e6c8f91dba7e238742574aecf3c07b1f5928850ce755fca9eac07ef3ce814728da58aa1ed9afb03a397ce4c30562 0004-Add-musl-targets.patch
+08486325536871346b190b4af3a7b80b58a0066028e6268b06714eb00b29925b3b414ea62fa5ec4ff908763aeec4257536e04275b40c3d55e0a6c5b433625b5c 0005-Enable-PIE-by-default-for-Alpine-Linux.patch
+fe5927b7851a97a5223d5b698c5dd01a47ef2fa23d9556cfee976aa7bda639af922785cbe34169e121aab79b38bbb1704aebaf11b1f4f41bcd448947f6e9562b 0006-Link-with-z-now-by-default-for-Alpine-Linux.patch
+609ebc1c6cbccd43f8b08e6b653e6da996a09cdcf008744a56af7d8846f1e7a9fc6945d3cc68fba0d06071b6f8de796747606a34d1d5008e0dc620dc0812e3e0 0007-Enable-stack-protector-by-default-for-Alpine-Linux.patch"