* update onetbb to 2021.12.0-2

This commit is contained in:
Alexander Baldeck 2024-05-12 12:44:33 +02:00
parent 50cc0103ff
commit fcc88270be
2 changed files with 11 additions and 22 deletions

View File

@ -7,43 +7,43 @@
# Contributor: Bogdan Burlacu <bogdan.burlacu AT pm.me>
pkgname=onetbb
pkgver=2021.11.0
pkgrel=1
pkgver=2021.12.0
pkgrel=2
pkgdesc='High level abstract threading library (oneAPI Threading Building Blocks)'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://oneapi-src.github.io/oneTBB/'
license=('Apache')
depends=('gcc-libs' 'hwloc')
makedepends=('cmake' 'inetutils' 'ninja' 'python' 'swig')
makedepends=('cmake' 'inetutils' 'ninja' 'python' 'swig' 'python-setuptools')
conflicts=('intel-tbb' 'tbb')
provides=("intel-tbb=$pkgver" "tbb=$pkgver")
replaces=('intel-tbb' 'tbb')
source=(https://github.com/oneapi-src/oneTBB/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha512sums=('4779141b7602f2fa3a509fdd346824ba270a3a568df3649ce8cb51264d233df5cec5e5cb67b91319dd11d3d5e054697b4ed345e07216107985ddb6e1e7ef94e5')
sha512sums=('64022bcb61cf7b2030a1bcc11168445ef9f0d69b70290233a7febb71cc7a12cc2282dddc045f84e30893efe276342f02fd78d176706268eeaefe9aac7446d4e9')
build() {
cd oneTBB-$pkgver
case "${CARCH}" in
powerpc|riscv64)
export CXXFLAGS+=' -latomic'
;;
esac
cmake . -GNinja \
cmake -B build -S oneTBB-$pkgver -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DTBB_STRICT=OFF \
-DTBB4PY_BUILD=ON \
-DCMAKE_BUILD_TYPE=None
ninja all python_build
cmake --build build
}
check() {
cd oneTBB-$pkgver
cd build
ninja test
}
package() {
cd oneTBB-$pkgver
DESTDIR="$pkgdir" ninja install
DESTDIR="$pkgdir" cmake --install build
rm -r "$pkgdir"/usr/lib/python*
cd oneTBB-$pkgver/python
TBBROOT="$pkgdir"/usr python setup.py install --root="$pkgdir"
}

View File

@ -1,11 +0,0 @@
--- oneTBB-2021.9.0/test/common/utils_assert.h.orig 2023-05-16 10:54:53.947051694 +0200
+++ oneTBB-2021.9.0/test/common/utils_assert.h 2023-05-16 10:55:09.445493048 +0200
@@ -20,6 +20,8 @@
#include "config.h"
#include "utils_report.h"
+#include <cstdlib>
+
#define REPORT_FATAL_ERROR REPORT
namespace utils {