[arch-commits] Commit in clang/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sun Apr 12 20:23:27 UTC 2020


    Date: Sunday, April 12, 2020 @ 20:23:25
  Author: foutrelis
Revision: 380242

upgpkg: clang 10.0.0-2: avoid linking clangHandleLLVM into clang-cpp

Causes conflicting symbols due to the inclusion of CommandFlags.inc;
seems this will be fixed in LLVM 11 (https://reviews.llvm.org/D75579),
but until then just remove the offending library (which nothing uses).

Modified:
  clang/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-12 20:09:06 UTC (rev 380241)
+++ PKGBUILD	2020-04-12 20:23:25 UTC (rev 380242)
@@ -3,7 +3,7 @@
 
 pkgname=clang
 pkgver=10.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="C language family frontend for LLVM"
 arch=('x86_64')
 url="https://clang.llvm.org/"
@@ -55,6 +55,14 @@
   mkdir build
   mv "$srcdir/clang-tools-extra-$pkgver.src" tools/extra
   patch -Np2 -i ../enable-SSP-and-PIE-by-default.patch
+
+  if [[ $pkgver != 10.* ]]; then
+    echo "Remove libclangHandleLLVM hack!"
+    return 1
+  fi
+  # Remove libclangHandleLLVM; breaks zig (https://reviews.llvm.org/D75579)
+  sed -i '/add_clang_subdirectory(handle-llvm)/d' \
+    tools/clang-fuzzer/CMakeLists.txt
 }
 
 build() {


More information about the arch-commits mailing list