mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: tbb: Update to 2021.6.0.
* gnu/packages/tbb.scm (tbb): Update to 2021.6.0. [source]: Remove obsolete patch. * gnu/packages/patches/tbb-fix-test-on-aarch64.patch: Delete file. * gnu/local.mk: Remove it. * gnu/packages/patches/tbb-other-arches.patch: Update to match new version. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
856b67f302
commit
cdfc1f41c6
4 changed files with 7 additions and 47 deletions
|
@ -1882,7 +1882,6 @@ dist_patch_DATA = \
|
||||||
%D%/packages/patches/tao-fix-parser-types.patch \
|
%D%/packages/patches/tao-fix-parser-types.patch \
|
||||||
%D%/packages/patches/tar-remove-wholesparse-check.patch \
|
%D%/packages/patches/tar-remove-wholesparse-check.patch \
|
||||||
%D%/packages/patches/tar-skip-unreliable-tests.patch \
|
%D%/packages/patches/tar-skip-unreliable-tests.patch \
|
||||||
%D%/packages/patches/tbb-fix-test-on-aarch64.patch \
|
|
||||||
%D%/packages/patches/tbb-other-arches.patch \
|
%D%/packages/patches/tbb-other-arches.patch \
|
||||||
%D%/packages/patches/tclxml-3.2-install.patch \
|
%D%/packages/patches/tclxml-3.2-install.patch \
|
||||||
%D%/packages/patches/tcsh-fix-autotest.patch \
|
%D%/packages/patches/tcsh-fix-autotest.patch \
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
From 013035b4e9af39f506e87ae6b755c3363e768d4d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Vladislav Shchapov <phprus@gmail.com>
|
|
||||||
Date: Thu, 23 Dec 2021 19:17:24 +0500
|
|
||||||
Subject: [PATCH] Fix issue #687 (test_eh_thread) (#697)
|
|
||||||
|
|
||||||
Signed-off-by: Vladislav Shchapov <phprus@gmail.com>
|
|
||||||
---
|
|
||||||
test/tbb/test_eh_thread.cpp | 4 +++-
|
|
||||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/test/tbb/test_eh_thread.cpp b/test/tbb/test_eh_thread.cpp
|
|
||||||
index aa6d764d..af291f48 100644
|
|
||||||
--- a/test/tbb/test_eh_thread.cpp
|
|
||||||
+++ b/test/tbb/test_eh_thread.cpp
|
|
||||||
@@ -36,6 +36,7 @@
|
|
||||||
// TODO: enable limitThreads with sanitizer under docker
|
|
||||||
#if TBB_USE_EXCEPTIONS && !_WIN32 && !__ANDROID__
|
|
||||||
|
|
||||||
+#include <limits.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <sys/resource.h>
|
|
||||||
@@ -73,7 +74,8 @@ public:
|
|
||||||
mValid = false;
|
|
||||||
pthread_attr_t attr;
|
|
||||||
// Limit the stack size not to consume all virtual memory on 32 bit platforms.
|
|
||||||
- if (pthread_attr_init(&attr) == 0 && pthread_attr_setstacksize(&attr, 100*1024) == 0) {
|
|
||||||
+ std::size_t stacksize = utils::max(128*1024, PTHREAD_STACK_MIN);
|
|
||||||
+ if (pthread_attr_init(&attr) == 0 && pthread_attr_setstacksize(&attr, stacksize) == 0) {
|
|
||||||
mValid = pthread_create(&mHandle, &attr, thread_routine, /* arg = */ nullptr) == 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.34.0
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
diff --git a/src/tbb/tools_api/ittnotify_config.h b/src/tbb/tools_api/ittnotify_config.h
|
diff --git a/src/tbb/tools_api/ittnotify_config.h b/src/tbb/tools_api/ittnotify_config.h
|
||||||
index 8ecc2378..0cf26f85 100644
|
index f904a8e9..405f92e6 100644
|
||||||
--- a/src/tbb/tools_api/ittnotify_config.h
|
--- a/src/tbb/tools_api/ittnotify_config.h
|
||||||
+++ b/src/tbb/tools_api/ittnotify_config.h
|
+++ b/src/tbb/tools_api/ittnotify_config.h
|
||||||
@@ -159,6 +159,11 @@
|
@@ -163,6 +163,11 @@
|
||||||
# define ITT_ARCH_ARM64 6
|
# define ITT_ARCH_ARM64 6
|
||||||
#endif /* ITT_ARCH_ARM64 */
|
#endif /* ITT_ARCH_ARM64 */
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ index 8ecc2378..0cf26f85 100644
|
||||||
#ifndef ITT_ARCH
|
#ifndef ITT_ARCH
|
||||||
# if defined _M_IX86 || defined __i386__
|
# if defined _M_IX86 || defined __i386__
|
||||||
# define ITT_ARCH ITT_ARCH_IA32
|
# define ITT_ARCH ITT_ARCH_IA32
|
||||||
@@ -172,6 +177,8 @@
|
@@ -176,6 +181,8 @@
|
||||||
# define ITT_ARCH ITT_ARCH_ARM64
|
# define ITT_ARCH ITT_ARCH_ARM64
|
||||||
# elif defined __powerpc64__
|
# elif defined __powerpc64__
|
||||||
# define ITT_ARCH ITT_ARCH_PPC64
|
# define ITT_ARCH ITT_ARCH_PPC64
|
||||||
|
@ -24,7 +24,7 @@ index 8ecc2378..0cf26f85 100644
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
|
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
|
||||||
index 9534dce8..51a79331 100644
|
index 2aa669c9..f915e252 100644
|
||||||
--- a/test/CMakeLists.txt
|
--- a/test/CMakeLists.txt
|
||||||
+++ b/test/CMakeLists.txt
|
+++ b/test/CMakeLists.txt
|
||||||
@@ -387,7 +387,10 @@ if (TARGET TBB::tbb)
|
@@ -387,7 +387,10 @@ if (TARGET TBB::tbb)
|
||||||
|
|
|
@ -32,7 +32,7 @@ (define-module (gnu packages tbb)
|
||||||
(define-public tbb
|
(define-public tbb
|
||||||
(package
|
(package
|
||||||
(name "tbb")
|
(name "tbb")
|
||||||
(version "2021.5.0")
|
(version "2021.6.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -41,12 +41,8 @@ (define-public tbb
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1z0pqzfx63zrmyqdvvkk8vl5dc0i0n5cimdkrypd50ig4d4yi7sc"))
|
"039v4jmnkkxs7haxrfmk9j57vfbrwlhjynlm5byfaqddv4cbsy0p"))
|
||||||
(patches
|
(patches (search-patches "tbb-other-arches.patch"))))
|
||||||
;; Backport an upstream commit that prevents the
|
|
||||||
;; "test_eh_thread" test failing on AArch64.
|
|
||||||
(search-patches "tbb-fix-test-on-aarch64.patch"
|
|
||||||
"tbb-other-arches.patch"))))
|
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags '("-DTBB_STRICT=OFF"))) ;; Don't fail on warnings
|
`(#:configure-flags '("-DTBB_STRICT=OFF"))) ;; Don't fail on warnings
|
||||||
|
|
Loading…
Reference in a new issue