From db06dfaa1a24d06c1b4d68ade621bc39616e20be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Aznar=C3=A1n?= Date: Sun, 7 Jan 2024 00:06:03 -0500 Subject: [PATCH] Enable redefinitions --- PKGBUILD | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index ee1048c..5ef3005 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,12 @@ # Maintainer: archibald869 - +# Contributor: Carlos Aznarán pkgname=cling pkgver=0.9 -pkgrel=5 +pkgrel=6 pkgdesc="Interactive C++ interpreter, built on the top of LLVM and Clang libraries" arch=("i686" "x86_64") -url="https://root.cern.ch/cling" +url="https://root.cern.ch/${pkgname}" license=("custom:Cling Release License") -provides=("cling") -conflicts=("cling") depends=("libxml2") makedepends=("git" "cmake" "ninja" "python") optdepends=( @@ -22,10 +20,10 @@ source=( "cling-clang::git+http://root.cern/git/clang.git#tag=cling-v$pkgver" "cling::git+http://root.cern/git/cling.git#tag=v$pkgver" ) -sha256sums=( - "SKIP" - "SKIP" - "SKIP" +sha512sums=( + 'SKIP' + 'SKIP' + 'SKIP' ) options=('!lto') @@ -42,6 +40,10 @@ prepare() { # patch missing header file sed -i '/^#include $/i #include ' \ "$srcdir/cling-llvm/utils/benchmark/src/benchmark_register.h" + + # https://github.com/root-project/cling/issues/360 + sed -i 's/AllowRedefinition(0)/AllowRedefinition(1)/' \ + "$srcdir/cling/include/cling/Interpreter/RuntimeOptions.h" } build() { -- 2.43.0