public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/tbb] rawhide: Version 2023.2.0
Date: Wed, 18 Nov 2026 17:26:53 GMT [thread overview]
Message-ID: <179502281306.1.2843465977567394886.rpms-tbb-62030d653028@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/tbb
Branch : rawhide
Commit : 62030d65302878b78fb8bd7ed4746c36e1588bc0
Author : Jerry James <loganjerry@gmail.com>
Date : 2026-10-30T11:18:17-06:00
Stats : +135/-16 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/tbb/c/62030d65302878b78fb8bd7ed4746c36e1588bc0?branch=rawhide
Log:
Version 2023.2.0
- Increase C++ standard from 17 to 20
- Use upstream patch for tbbmalloc linking issue
---
diff --git a/2239.patch b/2239.patch
new file mode 100644
index 0000000..35baf00
--- /dev/null
+++ b/2239.patch
@@ -0,0 +1,124 @@
+From 44e58cfae2bbf90ee51b54110c9bd4c4308eb1ee Mon Sep 17 00:00:00 2001
+From: Dustin Kirkland <dustin.kirkland@chainguard.dev>
+Date: Mon, 26 Oct 2026 10:57:34 -0500
+Subject: [PATCH 1/3] Keep libstdc++ assertions out of tbbmalloc in all
+ configurations
+
+tbbmalloc is linked as C, without libstdc++, and already defines
+_GLIBCXX_NO_ASSERTIONS to avoid a dependency on libstdc++, but only for
+Debug builds. Toolchains that enable libstdc++ assertions in release
+builds (-D_GLIBCXX_ASSERTIONS or -Wp,-D_GLIBCXX_ASSERTIONS in CXXFLAGS,
+as Arch and Fedora do, or GCC's -fhardened) leave libtbbmalloc with an
+undefined reference to std::__glibcxx_assert_fail, and pure C consumers
+such as test_malloc_pure_c fail to link.
+
+Define _GLIBCXX_NO_ASSERTIONS for every configuration, and for GCC and
+Clang also undefine _GLIBCXX_ASSERTIONS, which _GLIBCXX_NO_ASSERTIONS
+does not override. The -Wp form is used so the -U also comes after a
+-Wp,-D given in CXXFLAGS.
+
+Fixes #1735
+
+Assisted-by: Claude Code (Anthropic)
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+Signed-off-by: Dustin Kirkland <dustin.kirkland@chainguard.dev>
+---
+ src/tbbmalloc/CMakeLists.txt | 12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/src/tbbmalloc/CMakeLists.txt b/src/tbbmalloc/CMakeLists.txt
+index b3fdf34f35..77e42da64a 100644
+--- a/src/tbbmalloc/CMakeLists.txt
++++ b/src/tbbmalloc/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ # Copyright (c) 2020-2024 Intel Corporation
+-# Copyright (c) 2025 UXL Foundation Contributors
++# Copyright (c) 2025-2026 UXL Foundation Contributors
+ #
+ # Licensed under the Apache License, Version 2.0 (the "License");
+ # you may not use this file except in compliance with the License.
+@@ -32,7 +32,7 @@ target_compile_definitions(tbbmalloc
+ $<$<CONFIG:DEBUG>:TBB_USE_DEBUG>
+ PRIVATE
+ # Disable implicit assertions in C++ headers to avoid dependency on libstdc++
+- $<$<CONFIG:DEBUG>:_GLIBCXX_NO_ASSERTIONS>
++ _GLIBCXX_NO_ASSERTIONS
+ __TBBMALLOC_BUILD
+ $<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:__TBB_DYNAMIC_LOAD_ENABLED=0>
+ $<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:__TBB_SOURCE_DIRECTLY_INCLUDED=1>)
+@@ -68,6 +68,14 @@ target_compile_options(tbbmalloc
+ ${TBB_COMMON_COMPILE_FLAGS}
+ )
+
++if (NOT MSVC AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|IntelLLVM")
++ # _GLIBCXX_NO_ASSERTIONS does not override an explicit _GLIBCXX_ASSERTIONS
++ # (e.g. from -D_GLIBCXX_ASSERTIONS or -Wp,-D_GLIBCXX_ASSERTIONS in CXXFLAGS,
++ # or from GCC's -fhardened), so undefine it as well. -Wp is used so that it
++ # also comes after a -Wp,-D passed in CXXFLAGS.
++ target_compile_options(tbbmalloc PRIVATE -Wp,-U_GLIBCXX_ASSERTIONS)
++endif()
++
+ enable_language(C)
+
+ # Avoid use of target_link_libraries here as it changes /DEF option to \DEF on Windows.
+
+From df361c0361e6151359c23a002c47faaf5837612a Mon Sep 17 00:00:00 2001
+From: Dustin Kirkland <dustin.kirkland@chainguard.dev>
+Date: Wed, 28 Oct 2026 19:42:45 -0500
+Subject: [PATCH 2/3] Keep the UXL copyright year unchanged
+
+Assisted-by: Claude Code (Anthropic)
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+Signed-off-by: Dustin Kirkland <dustin.kirkland@chainguard.dev>
+---
+ src/tbbmalloc/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/tbbmalloc/CMakeLists.txt b/src/tbbmalloc/CMakeLists.txt
+index 77e42da64a..c499bd826e 100644
+--- a/src/tbbmalloc/CMakeLists.txt
++++ b/src/tbbmalloc/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ # Copyright (c) 2020-2024 Intel Corporation
+-# Copyright (c) 2025-2026 UXL Foundation Contributors
++# Copyright (c) 2025 UXL Foundation Contributors
+ #
+ # Licensed under the Apache License, Version 2.0 (the "License");
+ # you may not use this file except in compliance with the License.
+
+From a2d04fa67dc121ffe8f7da93452c49dfd825372c Mon Sep 17 00:00:00 2001
+From: Dustin Kirkland <dustin.kirkland@chainguard.dev>
+Date: Wed, 28 Oct 2026 21:05:47 -0500
+Subject: [PATCH 3/3] tbbmalloc: silence -Whardened, note the _GLIBCXX_DEBUG
+ case
+
+Assisted-by: Claude Code (Anthropic)
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+Signed-off-by: Dustin Kirkland <dustin.kirkland@chainguard.dev>
+---
+ src/tbbmalloc/CMakeLists.txt | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/src/tbbmalloc/CMakeLists.txt b/src/tbbmalloc/CMakeLists.txt
+index c499bd826e..3cd5b136e3 100644
+--- a/src/tbbmalloc/CMakeLists.txt
++++ b/src/tbbmalloc/CMakeLists.txt
+@@ -72,8 +72,17 @@ if (NOT MSVC AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|IntelLLVM")
+ # _GLIBCXX_NO_ASSERTIONS does not override an explicit _GLIBCXX_ASSERTIONS
+ # (e.g. from -D_GLIBCXX_ASSERTIONS or -Wp,-D_GLIBCXX_ASSERTIONS in CXXFLAGS,
+ # or from GCC's -fhardened), so undefine it as well. -Wp is used so that it
+- # also comes after a -Wp,-D passed in CXXFLAGS.
++ # also comes after a -Wp,-D passed in CXXFLAGS. Not covered: libstdc++
++ # re-enables _GLIBCXX_ASSERTIONS when _GLIBCXX_DEBUG is defined.
+ target_compile_options(tbbmalloc PRIVATE -Wp,-U_GLIBCXX_ASSERTIONS)
++
++ # Dropping the assertions is intentional, so silence GCC's -Whardened
++ # warning about it, which -Werror (TBB_STRICT) would turn into an error.
++ include(CheckCXXCompilerFlag)
++ check_cxx_compiler_flag(-Wno-hardened TBB_HAS_WNO_HARDENED)
++ if (TBB_HAS_WNO_HARDENED)
++ target_compile_options(tbbmalloc PRIVATE -Wno-hardened)
++ endif()
+ endif()
+
+ enable_language(C)
diff --git a/sources b/sources
index fb24535..95c6ab4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tbb-2023.1.0.tar.gz) = c8e9b9100873d6f8514da18ca700165466a9c042d24a6ce9e8901c8996c348f2e58f0251b1eca47d33cc5f382783bfc7693bc6c451716540d4caa57339b3b535
+SHA512 (tbb-2023.2.0.tar.gz) = 4a960b9a8011e30887c71ce6bc7be429d57bc0de22435b5d6c3247e6b3d783c0a053adc6fa189a41076c6e913733bab417456a21d98633cc2f33283e1be58c87
diff --git a/tbb-c++-linkage.patch b/tbb-c++-linkage.patch
deleted file mode 100644
index 9d1725f..0000000
--- a/tbb-c++-linkage.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- oneTBB-2022.0.0/src/tbbmalloc/CMakeLists.txt.orig 2024-10-31 11:23:11.000000000 -0600
-+++ oneTBB-2022.0.0/src/tbbmalloc/CMakeLists.txt 2025-01-19 09:48:14.422176071 -0700
-@@ -72,7 +72,7 @@ set_target_properties(tbbmalloc PROPERTI
- DEFINE_SYMBOL ""
- VERSION ${TBBMALLOC_BINARY_VERSION}.${TBB_BINARY_MINOR_VERSION}
- SOVERSION ${TBBMALLOC_BINARY_VERSION}
-- LINKER_LANGUAGE C
-+ LINKER_LANGUAGE CXX
- )
-
- tbb_handle_ipo(tbbmalloc)
diff --git a/tbb.spec b/tbb.spec
index b13f2b0..47eb0d2 100644
--- a/tbb.spec
+++ b/tbb.spec
@@ -5,7 +5,7 @@
Name: tbb
Summary: The Threading Building Blocks library abstracts low-level threading details
-Version: 2023.1.0
+Version: 2023.2.0
Release: 1%{?dist}
License: Apache-2.0 AND BSD-3-Clause
URL: https://uxlfoundation.github.io/oneTBB/
@@ -17,7 +17,7 @@ Source7: tbbmalloc.pc
Source8: tbbmalloc_proxy.pc
# Fix failure to link with GCC 15
-Patch: tbb-c++-linkage.patch
+Patch: %{giturl}/pull/2239.patch
BuildRequires: cmake
BuildRequires: gcc-c++
@@ -85,9 +85,10 @@ Python 3 TBB module.
export TBBROOT=$PWD
export PYTHONPATH=$(sed "s,%{_prefix},$PWD/%{_vpath_builddir}/python/build," <<< %{python3_sitearch})
%cmake \
- -DCMAKE_CXX_STANDARD=17 \
+ -DCMAKE_CXX_STANDARD=20 \
-DTBB4PY_BUILD:BOOL=ON \
- -DTBB_STRICT:BOOL=OFF
+ -DTBB_STRICT:BOOL=OFF \
+ -DTCM_BUILD:BOOL=OFF
%cmake_build
# The python package is not built the Fedora way. Do it over.
@@ -150,6 +151,11 @@ ctest --output-on-failure --force-new-ctest-process
%doc python/README.md
%changelog
+* Fri Oct 30 2026 Jerry James <loganjerry@gmail.com> - 2023.2.0-1
+- Version 2023.2.0
+- Increase C++ standard from 17 to 20
+- Use upstream patch for tbbmalloc linking issue
+
* Thu Aug 06 2026 Jerry James <loganjerry@gmail.com> - 2023.1.0-1
- Version 2023.1.0
reply other threads:[~2026-11-18 17:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179502281306.1.2843465977567394886.rpms-tbb-62030d653028@fedoraproject.org \
--to=loganjerry@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox