jobextra/onetbb/PKGBUILD
2023-09-12 14:18:30 +03:00

69 lines
2.1 KiB
Bash

0002-gthreadedresolver-Fix-race-between-source-callbacks-.patch#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=onetbb
pkgver=2021.10.0
pkgrel=02
pkgdesc='High level abstract threading library (oneAPI Threading Building Blocks)'
url='https://oneapi-src.github.io/oneTBB/'
depends=('gcc-libs' 'hwloc')
makedepends=('cmake' 'inetutils' 'ninja' 'python' 'swig')
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)
# $pkgname-gcc13.patch::https://github.com/oneapi-src/oneTBB/commit/154cc73ca4d359621202399cc0c3c91058e56e79.patch)
#prepare() {
# cd oneTBB-$pkgver
# # FS#77894
# patch -Np1 -i ../$pkgname-gcc13.patch
#}
build() {
cd oneTBB-$pkgver
cmake . -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DTBB_STRICT=OFF \
-DTBB4PY_BUILD=ON \
-DCMAKE_BUILD_TYPE=None
ninja all python_build
}
# 2021.10 comment check section out and rerun without the -f option
#99% tests passed, 2 tests failed out of 138
#
#Total Test time (real) = 99.06 sec
#
#The following tests FAILED:
# 69 - test_arena_constraints (Subprocess aborted)
# 123 - conformance_arena_constraints (Failed)
#Errors while running CTest
#
#check() {
# cd oneTBB-$pkgver
# ninja test
#}
package() {
cd oneTBB-$pkgver
DESTDIR="$pkgdir" ninja install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('Apache')
sha512sums=('d71cf317e7f78948c1ea20977cfcfba1eff72cb20c457c87e624cb3aaa3215a1c24eeeec11ed6ed99cf118c577d956234202458bb5e0215c9c317099d9c3b732')
sha256sums=(487023a955e5a3cc6d3a0d5f89179f9b6c0ae7222613a7185b0227ba0c83700b) # onetbb-2021.10.0.tar.gz
## 7da9528e7ede0e9ea605fc7386b5e089bcf3d7f76ee4cdd9731f96d807b7c193 onetbb-2021.10.0-02-x86_64.pkg.tar.lz