diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-10-06 12:00:51 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-10-06 12:00:51 (GMT) |
commit | d8a3519a2733db1688116d477d230b668d718683 (patch) | |
tree | b1bc2abfae352adf984a5027461dc9f15631636f /abs/extra/llvm/PKGBUILD | |
parent | 5ed06b715d7479dd2cebee0f69084cbd396de063 (diff) | |
download | linhes_pkgbuild-d8a3519a2733db1688116d477d230b668d718683.zip linhes_pkgbuild-d8a3519a2733db1688116d477d230b668d718683.tar.gz linhes_pkgbuild-d8a3519a2733db1688116d477d230b668d718683.tar.bz2 |
llvm: update to 3.9.0
Diffstat (limited to 'abs/extra/llvm/PKGBUILD')
-rw-r--r-- | abs/extra/llvm/PKGBUILD | 129 |
1 files changed, 33 insertions, 96 deletions
diff --git a/abs/extra/llvm/PKGBUILD b/abs/extra/llvm/PKGBUILD index 960fa13..f39c8d3 100644 --- a/abs/extra/llvm/PKGBUILD +++ b/abs/extra/llvm/PKGBUILD @@ -9,9 +9,8 @@ # Contributor: Roberto Alsina <ralsina@kde.org> # Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> -pkgname=('llvm' 'llvm-libs' 'llvm-ocaml' 'lldb' 'clang' 'clang-analyzer' - 'clang-tools-extra') -pkgver=3.7.1 +pkgname=('llvm' 'llvm-libs' 'llvm-ocaml' 'lldb' 'clang' 'clang-tools-extra') +pkgver=3.9.0 pkgrel=1 _ocaml_ver=4.02.3 arch=('i686' 'x86_64') @@ -27,34 +26,20 @@ source=(http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.xz{,.sig} http://llvm.org/releases/$pkgver/clang-tools-extra-$pkgver.src.tar.xz{,.sig} http://llvm.org/releases/$pkgver/compiler-rt-$pkgver.src.tar.xz{,.sig} http://llvm.org/releases/$pkgver/lldb-$pkgver.src.tar.xz{,.sig} - llvm-3.7.0-link-tools-against-libLLVM.patch - llvm-3.7.0-export-more-symbols.patch - clang-3.7.0-add-gcc-abi-tag-support.patch - clang-tools-extra-3.7.0-install-clang-query.patch - lldb-3.7.0-avoid-linking-to-libLLVM.patch - 0001-New-MSan-mapping-layout-llvm-part.patch - 0001-New-MSan-mapping-layout-compiler-rt-part.patch llvm-Config-llvm-config.h) -sha256sums=('be7794ed0cec42d6c682ca8e3517535b54555a3defabec83554dbc74db545ad5' +sha256sums=('66c73179da42cee1386371641241f79ded250e117a79f571bbd69e56daa48948' 'SKIP' - '56e2164c7c2a1772d5ed2a3e57485ff73ff06c97dff12edbeea1acc4412b0674' + '7596a7c7d9376d0c89e60028fe1ceb4d3e535e8ea8b89e0eb094e0dcb3183d28' 'SKIP' - '4a91edaccad1ce984c7c49a4a87db186b7f7b21267b2b03bcf4bd7820715bc6b' + '5b7aec46ec8e999ec683c87ad744082e1133781ee4b01905b4bdae5d20785f14' 'SKIP' - '9d4769e4a927d3824bcb7a9c82b01e307c68588e6de4e7f04ab82d82c5af8181' + 'e0e5224fcd5740b61e416c549dd3dcda92f10c524216c1edb5e979e42078a59a' 'SKIP' - '9a0bc315ef55f44c98cdf92d064df0847f453ed156dd0ef6a87e04f5fd6a0e01' + '61280e07411e3f2b4cca0067412b39c16b0a9edd19d304d3fc90249899d12384' 'SKIP' - 'cf9c8b4d70b4547eda162644658c5c203c3139fcea6c75003b6cd7dc11a8cccc' - 'a1c9f36b97c639666ab6a1bd647a08a027e93e3d3cfd6f5af9c36e757599ce81' - '5ed52d54612829402b63bc500bfefae75b3dc444a1524849c26cadf7e0ae4b7d' - '3abf85430c275ecb8dbb526ecb82b1c9f4b4f782a8a43b5a06d040ec0baba7e7' - '2d53b6ed4c7620eeade87e7761b98093a0434801ddd599056daed7881141fb01' - 'c5f4e329143bef36b623ba5daf311b5a73fa99ab05fed4ba506c1c3bc4cf5ee7' - 'f44e8fe3cef9b6f706d651f443922261e1dcf53bcaabdd0ac7edb1758e4bc44d' '597dc5968c695bbdbb0eac9e8eb5117fcd2773bc91edf5ec103ecffffab8bc48') -validpgpkeys=('11E521D646982372EB577A1F8F0871F202119294' - 'B6C8F98282B944E3B0D5C2530FC3042E345AD05D') +validpgpkeys=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D' + '11E521D646982372EB577A1F8F0871F202119294') prepare() { cd "$srcdir/llvm-$pkgver.src" @@ -69,33 +54,6 @@ prepare() { mv "$srcdir/lldb-$pkgver.src" tools/lldb - # Backport LLVM_LINK_LLVM_DYLIB option - # https://bugs.archlinux.org/task/46392 - patch -Np1 -i ../llvm-3.7.0-link-tools-against-libLLVM.patch - - # https://llvm.org/bugs/show_bug.cgi?id=24157 - patch -Np2 -i ../llvm-3.7.0-export-more-symbols.patch - - # https://llvm.org/bugs/show_bug.cgi?id=23529 - # http://reviews.llvm.org/D12834 - patch -d tools/clang -Np0 <../clang-3.7.0-add-gcc-abi-tag-support.patch - - # https://llvm.org/bugs/show_bug.cgi?id=24046 - # Upstreamed - http://reviews.llvm.org/D13206 - patch -d tools/clang/tools/extra -Np1 <../clang-tools-extra-3.7.0-install-clang-query.patch - - # https://llvm.org/bugs/show_bug.cgi?id=24953 - patch -d tools/lldb -Np1 <../lldb-3.7.0-avoid-linking-to-libLLVM.patch - - # https://llvm.org/bugs/show_bug.cgi?id=24155 - patch -Np1 -i ../0001-New-MSan-mapping-layout-llvm-part.patch - patch -d projects/compiler-rt -Np1 <../0001-New-MSan-mapping-layout-compiler-rt-part.patch - - # Use Python 2 - find tools/lldb -name Makefile -exec sed -i 's/python-config/python2-config/' {} + - sed -i 's|/usr/bin/env python|&2|' \ - tools/lldb/scripts/Python/{build-swig-Python,finish-swig-Python-LLDB}.sh - mkdir build } @@ -131,8 +89,7 @@ build() { check() { cd "$srcdir/llvm-$pkgver.src/build" make check - make check-clang || warning \ - 'Ignoring Clang test failures caused by name mangling differences' + make check-clang } package_llvm() { @@ -147,7 +104,7 @@ package_llvm() { rm -r "$pkgdir"/usr/share/doc/$pkgname/html/{_sources,.buildinfo} # The runtime libraries go into llvm-libs - mv -f "$pkgdir"/usr/lib/lib{LLVM,LTO}.so* "$srcdir" + mv -f "$pkgdir"/usr/lib/lib{LLVM,LTO}*.so "$srcdir" mv -f "$pkgdir"/usr/lib/LLVMgold.so "$srcdir" # OCaml bindings go to a separate package @@ -173,7 +130,7 @@ package_llvm-libs() { install -d "$pkgdir/usr/lib" cp -P \ - "$srcdir"/lib{LLVM,LTO}.so* \ + "$srcdir"/lib{LLVM,LTO}*.so \ "$srcdir"/LLVMgold.so \ "$pkgdir/usr/lib/" @@ -202,12 +159,15 @@ package_llvm-ocaml() { package_lldb() { pkgdesc="Next generation, high-performance debugger" url="http://lldb.llvm.org/" - depends=('libedit' 'libxml2' 'python2') + depends=('libedit' 'libxml2' 'python2' 'python2-six') cd "$srcdir/llvm-$pkgver.src" make -C build/tools/lldb DESTDIR="$pkgdir" install + # Remove bundled six library + rm "$pkgdir/usr/lib/python2.7/site-packages/six.py" + # Compile Python scripts python2 -m compileall "$pkgdir/usr/lib/python2.7/site-packages/lldb" python2 -O -m compileall "$pkgdir/usr/lib/python2.7/site-packages/lldb" @@ -218,8 +178,12 @@ package_lldb() { package_clang() { pkgdesc="C language family frontend for LLVM" url="http://clang.llvm.org/" - depends=("llvm-libs=$pkgver-$pkgrel" 'gcc') - optdepends=('python2: for git-clang-format') + depends=("llvm-libs=$pkgver-$pkgrel" 'gcc' 'libxml2') + optdepends=('openmp: OpenMP support in clang with -fopenmp' + 'python2: for scan-view and git-clang-format') + provides=("clang-analyzer=$pkgver") + conflicts=('clang-analyzer') + replaces=('clang-analyzer') cd "$srcdir/llvm-$pkgver.src" @@ -229,58 +193,31 @@ package_clang() { # Remove documentation sources rm -r "$pkgdir"/usr/share/doc/$pkgname/html/{_sources,.buildinfo} + # Move analyzer scripts out of /usr/libexec + mv "$pkgdir"/usr/libexec/{ccc,c++}-analyzer "$pkgdir/usr/lib/clang/" + rmdir "$pkgdir/usr/libexec" + sed -i 's|libexec|lib/clang|' "$pkgdir/usr/bin/scan-build" + # Install Python bindings install -d "$pkgdir/usr/lib/python2.7/site-packages" cp -a tools/clang/bindings/python/clang "$pkgdir/usr/lib/python2.7/site-packages/" - python2 -m compileall "$pkgdir/usr/lib/python2.7/site-packages/clang" - python2 -O -m compileall "$pkgdir/usr/lib/python2.7/site-packages/clang" # Use Python 2 sed -i 's|/usr/bin/env python|&2|' \ + "$pkgdir/usr/bin/scan-view" \ "$pkgdir/usr/bin/git-clang-format" \ "$pkgdir/usr/share/$pkgname/clang-format-diff.py" - install -Dm644 tools/clang/LICENSE.TXT \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_clang-analyzer() { - pkgdesc="A source code analysis framework" - url="http://clang-analyzer.llvm.org/" - depends=("clang=$pkgver-$pkgrel" 'python2') - - cd "$srcdir/llvm-$pkgver.src/tools/clang" - - install -d "$pkgdir"/usr/{bin,lib/clang-analyzer} - for _tool in scan-{build,view}; do - cp -a tools/$_tool "$pkgdir/usr/lib/clang-analyzer/" - ln -s /usr/lib/clang-analyzer/$_tool/$_tool "$pkgdir/usr/bin/" - done - - # scan-build looks for clang within the same directory - ln -s /usr/bin/clang "$pkgdir/usr/lib/clang-analyzer/scan-build/" - - # Relocate man page - install -d "$pkgdir/usr/share/man/man1" - mv "$pkgdir/usr/lib/clang-analyzer/scan-build/scan-build.1" \ - "$pkgdir/usr/share/man/man1/" - - # Use Python 2 - sed -i \ - -e 's|env python$|&2|' \ - -e 's|/usr/bin/python$|&2|' \ - "$pkgdir/usr/lib/clang-analyzer/scan-view/scan-view" \ - "$pkgdir/usr/lib/clang-analyzer/scan-build/set-xcode-analyzer" - # Compile Python scripts - python2 -m compileall "$pkgdir/usr/lib/clang-analyzer" - python2 -O -m compileall "$pkgdir/usr/lib/clang-analyzer" + python2 -m compileall "$pkgdir" + python2 -O -m compileall "$pkgdir" - install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 tools/clang/LICENSE.TXT \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_clang-tools-extra() { - pkgdesc="Extra tools built using Clang's tooling APIs" + pkgdesc="Extra tools built using clang's tooling APIs" url="http://clang.llvm.org/" depends=("clang=$pkgver-$pkgrel") |