[arch-commits] Commit in tbb/trunk (PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Sat Jun 18 17:06:22 UTC 2022
Date: Saturday, June 18, 2022 @ 17:06:22
Author: felixonmars
Revision: 449068
upgpkg: tbb 2021.5.0-2: add a patch for mold, and workaround gcc 12 failures
Modified:
tbb/trunk/PKGBUILD
----------+
PKGBUILD | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-18 16:57:58 UTC (rev 449067)
+++ PKGBUILD 2022-06-18 17:06:22 UTC (rev 449068)
@@ -6,7 +6,7 @@
pkgname=tbb
pkgver=2021.5.0
-pkgrel=1
+pkgrel=2
pkgdesc='High level abstract threading library'
arch=('x86_64')
url='https://www.threadingbuildingblocks.org/'
@@ -16,11 +16,24 @@
conflicts=('intel-tbb')
provides=("intel-tbb=$pkgver")
replaces=('intel-tbb')
-source=(https://github.com/oneapi-src/oneTBB/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
-sha512sums=('0e7b71022e397a6d7abb0cea106847935ae79a1e12a6976f8d038668c6eca8775ed971202c5bd518f7e517092b67af805cc5feb04b5c3a40e9fbf972cc703a46')
+source=(https://github.com/oneapi-src/oneTBB/archive/v$pkgver/$pkgname-$pkgver.tar.gz
+ retry-pthread_create.patch::https://github.com/oneapi-src/oneTBB/pull/824.patch)
+sha512sums=('0e7b71022e397a6d7abb0cea106847935ae79a1e12a6976f8d038668c6eca8775ed971202c5bd518f7e517092b67af805cc5feb04b5c3a40e9fbf972cc703a46'
+ '62c1535a3888f27f1af5f472c57b8e22dc6977a0a64edb84d9ea84e4a967169d2c79a2b20654c4aa3da2891fec9538c22c6e5d8a5f296947b8760c6f97e02d98')
+prepare() {
+ # Patch for mold:
+ patch -d oneTBB-$pkgver -p1 -i ../retry-pthread_create.patch
+}
+
build() {
cd oneTBB-$pkgver
+ # TBB_STRICT is ON by default and turns on -Werror, but `-DTBB_STRICT=OFF` is currently broken:
+ # https://github.com/oneapi-src/oneTBB/issues/847
+ # Upstream doesn't support GCC 12 yet:
+ # https://github.com/oneapi-src/oneTBB/issues/823#issuecomment-1128997690
+ # So we turn off the problematic new warnings in GCC 12 manually.
+ export CXXFLAGS="$CXXFLAGS -Wno-error=uninitialized -Wno-error=address"
cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DTBB4PY_BUILD=ON .
ninja all python_build
}
More information about the arch-commits
mailing list