diff options
Diffstat (limited to 'abs/extra/llvm/PKGBUILD')
-rw-r--r-- | abs/extra/llvm/PKGBUILD | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/abs/extra/llvm/PKGBUILD b/abs/extra/llvm/PKGBUILD index f39c8d3..9e69c02 100644 --- a/abs/extra/llvm/PKGBUILD +++ b/abs/extra/llvm/PKGBUILD @@ -10,9 +10,9 @@ # Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> pkgname=('llvm' 'llvm-libs' 'llvm-ocaml' 'lldb' 'clang' 'clang-tools-extra') -pkgver=3.9.0 -pkgrel=1 -_ocaml_ver=4.02.3 +pkgver=3.9.1 +pkgrel=2 +_ocaml_ver=4.04.0 arch=('i686' 'x86_64') url="http://llvm.org/" license=('custom:University of Illinois/NCSA Open Source License') @@ -26,17 +26,21 @@ 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} + AMDGPU-Fix-an-interaction-between-WQM-and-polygon-stippling.patch + msan-prevent-initialization-failure-with-newer-glibc.patch llvm-Config-llvm-config.h) -sha256sums=('66c73179da42cee1386371641241f79ded250e117a79f571bbd69e56daa48948' +sha256sums=('1fd90354b9cf19232e8f168faf2220e79be555df3aa743242700879e8fd329ee' 'SKIP' - '7596a7c7d9376d0c89e60028fe1ceb4d3e535e8ea8b89e0eb094e0dcb3183d28' + 'e6c4cebb96dee827fa0470af313dff265af391cb6da8d429842ef208c8f25e63' 'SKIP' - '5b7aec46ec8e999ec683c87ad744082e1133781ee4b01905b4bdae5d20785f14' + '29a5b65bdeff7767782d4427c7c64d54c3a8684bc6b217b74a70e575e4813635' 'SKIP' - 'e0e5224fcd5740b61e416c549dd3dcda92f10c524216c1edb5e979e42078a59a' + 'd30967b1a5fa51a2503474aacc913e69fd05ae862d37bf310088955bdb13ec99' 'SKIP' - '61280e07411e3f2b4cca0067412b39c16b0a9edd19d304d3fc90249899d12384' + '7e3311b2a1f80f4d3426e09f9459d079cab4d698258667e50a46dccbaaa460fc' 'SKIP' + 'adadc41090ab0eb33fe4449a0ea3f02b15d03f186262dd89576848a2c66d0ce6' + '8e4f194c2283b91644a7fff43bc4e58c36b5507f2a4d90b72f275c0bd7511c20' '597dc5968c695bbdbb0eac9e8eb5117fcd2773bc91edf5ec103ecffffab8bc48') validpgpkeys=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D' '11E521D646982372EB577A1F8F0871F202119294') @@ -54,6 +58,12 @@ prepare() { mv "$srcdir/lldb-$pkgver.src" tools/lldb + # https://bugs.freedesktop.org/show_bug.cgi?id=99078 + patch -Rp1 -i ../AMDGPU-Fix-an-interaction-between-WQM-and-polygon-stippling.patch + + # https://reviews.llvm.org/D24736 + patch -Np0 -d projects/compiler-rt <../msan-prevent-initialization-failure-with-newer-glibc.patch + mkdir build } @@ -64,14 +74,15 @@ build() { -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLLVM_BUILD_LLVM_DYLIB=ON \ - -DLLVM_DYLIB_EXPORT_ALL=ON \ -DLLVM_LINK_LLVM_DYLIB=ON \ + -DLLVM_INSTALL_UTILS=ON \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_ENABLE_FFI=ON \ -DLLVM_BUILD_TESTS=ON \ -DLLVM_BUILD_DOCS=ON \ -DLLVM_ENABLE_SPHINX=ON \ -DLLVM_ENABLE_DOXYGEN=OFF \ + -DLLDB_DISABLE_LIBEDIT=1 \ -DSPHINX_WARNINGS_AS_ERRORS=OFF \ -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \ -DLLVM_BINUTILS_INCDIR=/usr/include \ @@ -159,12 +170,16 @@ package_llvm-ocaml() { package_lldb() { pkgdesc="Next generation, high-performance debugger" url="http://lldb.llvm.org/" - depends=('libedit' 'libxml2' 'python2' 'python2-six') + depends=('libxml2' 'python2' 'python2-six') cd "$srcdir/llvm-$pkgver.src" make -C build/tools/lldb DESTDIR="$pkgdir" install + # https://bugs.archlinux.org/task/50759 + sed -i "/import_module('_lldb')/s/_lldb/lldb.&/" \ + "$pkgdir/usr/lib/python2.7/site-packages/lldb/__init__.py" + # Remove bundled six library rm "$pkgdir/usr/lib/python2.7/site-packages/six.py" @@ -226,10 +241,8 @@ package_clang-tools-extra() { make -C build/tools/clang/tools/extra DESTDIR="$pkgdir" install # Use Python 2 - sed -i \ - -e 's|env python$|&2|' \ - -e 's|/usr/bin/python$|&2|' \ - "$pkgdir"/usr/share/clang/{clang-tidy-diff,run-clang-tidy}.py + sed -i 's|/usr/bin/env python|&2|' \ + "$pkgdir"/usr/share/clang/{clang-tidy-diff,run-clang-tidy,run-find-all-symbols}.py install -Dm644 tools/clang/tools/extra/LICENSE.TXT \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" |