Skip to contentSkip to conversation

tbb: upgrade 2020.3 -> 2021.2.0

PATCH Superseded Naveen Saini 3 participants 6 messages Apr 7, 2021 – Apr 21, 2021

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tbb: upgrade 2020.3 -> 2021.2.0

Switched to cmake build tool.

Rebased some patches due to directory re-structuring. Dropped patches, which are not required anymore.

---
 ...nfo-is-glibc-specific-API-mark-it-so.patch | 27 +++++++-------
 .../GLIBC-PREREQ-is-not-defined-on-musl.patch | 22 +++++++-----
 .../tbb/tbb/cross-compile.patch               | 35 -------------------
 .../tbb/tbb/improve-reproducibility.patch     | 30 ----------------
 meta-oe/recipes-support/tbb/tbb/tbb.pc        | 11 ------
 .../tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb}    | 35 ++++++-------------
 6 files changed, 38 insertions(+), 122 deletions(-)
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/cross-compile.patch
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/tbb.pc
 rename meta-oe/recipes-support/tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb} (59%)
meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specific-API-mark-it-so.patch +14 -13
index 7e66945fa..49325447e 100644
@@ -1,22 +1,23 @@
-From 6b2b136caa68912d77ffe26143cd3da768b9ef80 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sat, 3 Jun 2017 08:39:37 -0700
+From 52c1586bff0ecb418ac21d6678f8963d70959f04 Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Wed, 7 Apr 2021 11:14:13 +0800
 Subject: [PATCH] mallinfo() is glibc specific API mark it so
 
 Helps compiling with musl
 
-Signed-off-by: Khem Raj <[email protected]>
----
 Upstream-Status: Pending
 
- src/tbbmalloc/proxy.cpp | 2 ++
+Signed-off-by: Khem Raj <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ src/tbbmalloc_proxy/proxy.cpp | 2 ++
  1 file changed, 2 insertions(+)
 
-diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp
-index 5ef279d..06c4872 100644
---- a/src/tbbmalloc/proxy.cpp
-+++ b/src/tbbmalloc/proxy.cpp
-@@ -185,6 +185,7 @@ int mallopt(int /*param*/, int /*value*/) __THROW
+diff --git a/src/tbbmalloc_proxy/proxy.cpp b/src/tbbmalloc_proxy/proxy.cpp
+index f9942bf1..fe0dad89 100644
+--- a/src/tbbmalloc_proxy/proxy.cpp
++++ b/src/tbbmalloc_proxy/proxy.cpp
+@@ -253,6 +253,7 @@ int mallopt(int /*param*/, int /*value*/) __THROW
      return 1;
  }
  
@@ -24,7 +25,7 @@ index 5ef279d..06c4872 100644
  struct mallinfo mallinfo() __THROW
  {
      struct mallinfo m;
-@@ -192,6 +193,7 @@ struct mallinfo mallinfo() __THROW
+@@ -260,6 +261,7 @@ struct mallinfo mallinfo() __THROW
  
      return m;
  }
@@ -33,5 +34,5 @@ index 5ef279d..06c4872 100644
  #if __ANDROID__
  // Android doesn't have malloc_usable_size, provide it to be compatible
 -- 
-2.13.0
+2.17.1
 
meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-musl.patch +13 -9
index 6f28f6f3a..fb10684cd 100644
@@ -1,7 +1,7 @@
-From 27956d4c5fb615098231cebfb8eef11057639d3c Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Sun, 8 Dec 2019 18:14:38 +0100
-Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not defined on
+From 5cac8b5fffa4ebf5f0090456c9e0cbf43827242a Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Wed, 7 Apr 2021 11:32:52 +0800
+Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not defined on 
  musl
 
 Do not call __GLIBC_PREREQ if it is not defined otherwise build will
@@ -12,14 +12,15 @@ Signed-off-by: Fabrice Fontaine <[email protected]>
 Upstream-Status: Submitted [https://github.com/oneapi-src/oneTBB/pull/203]
 
 Signed-off-by: Anuj Mittal <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
 ---
- src/tbbmalloc/proxy.cpp | 6 ++++--
+ src/tbbmalloc_proxy/proxy.cpp | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
 
-diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp
-index d96ae7a0..709ae839 100644
---- a/src/tbbmalloc/proxy.cpp
-+++ b/src/tbbmalloc/proxy.cpp
+diff --git a/src/tbbmalloc_proxy/proxy.cpp b/src/tbbmalloc_proxy/proxy.cpp
+index fe0dad89..93e68049 100644
+--- a/src/tbbmalloc_proxy/proxy.cpp
++++ b/src/tbbmalloc_proxy/proxy.cpp
 @@ -24,7 +24,8 @@
  // of aligned_alloc as required by new C++ standard, this makes it hard to
  // redefine aligned_alloc here. However, running on systems with new libc
@@ -40,3 +41,6 @@ index d96ae7a0..709ae839 100644
  #endif // __linux__ && !__ANDROID__
  
  #include "proxy.h"
+-- 
+2.17.1
+
meta-oe/recipes-support/tbb/tbb/cross-compile.patch deleted +0 -35
deleted file mode 100644
index 36578543f..000000000
@@ -1,35 +0,0 @@
-Author: Marcin Juszkiewicz <[email protected]>
-  
-Upstream-Status: unsuitable
----
-
-diff --git a/build/linux.clang.inc b/build/linux.clang.inc
-index fe9b5c98..b0dcd68b 100644
---- a/build/linux.clang.inc
-+++ b/build/linux.clang.inc
-@@ -12,8 +12,8 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
- 
--CPLUS ?= clang++
--CONLY ?= clang
-+CPLUS ?= $(CXX)
-+CONLY ?= $(CC)
- COMPILE_ONLY = -c -MMD
- PREPROC_ONLY = -E -x c++
- INCLUDE_KEY = -I
-diff --git a/build/linux.gcc.inc b/build/linux.gcc.inc
-index d820c15d..62c76afd 100644
---- a/build/linux.gcc.inc
-+++ b/build/linux.gcc.inc
-@@ -12,8 +12,8 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
- 
--CPLUS ?= g++
--CONLY ?= gcc
-+CPLUS ?= $(CXX)
-+CONLY ?= $(CC)
- COMPILE_ONLY = -c -MMD
- PREPROC_ONLY = -E -x c++
- INCLUDE_KEY = -I
meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -30
deleted file mode 100644
index 91d10cb7a..000000000
@@ -1,30 +0,0 @@
-From f56eeb18a07df139864a99e1967d450cc5c8c0bb Mon Sep 17 00:00:00 2001
-From: Lee Chee Yang <[email protected]>
-Date: Wed, 30 Sep 2020 16:18:35 +0800
-Subject: [PATCH] improve reproducibility
-
-remove the WORKDIR info from BUILD_COMMAND to improve reproducibility.
-also use SOURCE_DATE_EPOCH as DATETIME wherever possible.
-
-Upstream-Status: Inappropriate [sed WORKDIR does not applies to upstream]
-Signed-off-by: Lee Chee Yang <[email protected]>
----
- build/version_info_linux.sh | 4 +-
- 1 file changed, 2 insertion(+), 2 deletion(-)
-
-diff --git a/build/version_info_linux.sh b/build/version_info_linux.sh
-index 793cad11..ed6f4b2a 100644
---- a/build/version_info_linux.sh
-+++ b/build/version_info_linux.sh
-@@ -25,6 +25,6 @@ echo '#N": BUILD_GCC'"\t\t"`g++ --version </dev/null 2>&1 | grep 'g++'`'" ENDL \
- echo '#N": BUILD_LIBC'"\t"`getconf GNU_LIBC_VERSION | grep glibc | sed -e 's/^glibc //'`'" ENDL \'
- echo '#N": BUILD_LD'"\t\t"`ld -v 2>&1 | grep 'version'`'" ENDL \'
- echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \'
--echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \'
-+echo '#N": BUILD_COMMAND'"\t"$(echo $* | sed 's#'$WORKDIR'#/workdir#g')'" ENDL \'
- echo ""
--echo "#define __TBB_DATETIME \""`date -u`"\""
-+echo "#define __TBB_DATETIME \""`$(date -u -d "@$SOURCE_DATE_EPOCH"  2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH"  2>/dev/null || date -u )`"\""
--- 
-2.25.1
-
meta-oe/recipes-support/tbb/tbb/tbb.pc deleted +0 -11
deleted file mode 100644
index 4f9da1140..000000000
@@ -1,11 +0,0 @@
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
-
-Name: Threading Building Blocks
-Description: Intel's parallelism library for C++
-URL: https://software.intel.com/en-us/tbb
-Version: 2020.2
-Libs: -L${libdir} -ltbb
-Cflags: -I${includedir} 
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +11 -24
similarity index 59%
rename from meta-oe/recipes-support/tbb/tbb_2020.3.bb
rename to meta-oe/recipes-support/tbb/tbb_2021.2.0.bb
index 8e0094b31..357fbba34 100644
@@ -5,37 +5,24 @@ DESCRIPTION = "Parallelism library for C++ - runtime files \
     and threading mechanism for performance and scalability."
 HOMEPAGE = "https://software.intel.com/en-us/tbb"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
-BRANCH = "tbb_2020"
-SRCREV = "eca91f16d7490a8abfdee652dadf457ec820cc37"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=86d3f3a95c324c9479bd8986968f4327"
+BRANCH = "onetbb_2021"
+SRCREV = "2dba2072869a189b9fdab3ffa431d3ea49059a19"
 SRC_URI = "git://github.com/oneapi-src/oneTBB.git;protocol=https;branch=${BRANCH} \
-           file://cross-compile.patch \
-           file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
-           file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
-           file://tbb.pc \
-           file://improve-reproducibility.patch \
+            file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
+            file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
 "
 
 S = "${WORKDIR}/git"
-PE = "1"
 
-COMPILER ?= "gcc"
-COMPILER_toolchain-clang = "clang"
+inherit cmake
 
-do_compile() {
-    oe_runmake compiler=${COMPILER} arch=${HOST_ARCH}
-}
+# test build fails, error: 'mallinfo mallinfo()' is deprecated
+EXTRA_OECMAKE += " \
+                    -DTBB_TEST=OFF \
+                    -DCMAKE_BUILD_TYPE=Release \
+                "
 
-do_install() {
-    install -d ${D}${includedir} ${D}${libdir}
-    rm ${S}/include/tbb/index.html -f
-    cp -R --no-dereference --preserve=mode,links -v ${S}/include/tbb ${D}${includedir}
-    for f in ${B}/build/linux_*_release/lib*.so*
-    do
-        install -Dm 0755 $f ${D}${libdir}/
-    done
-    install -Dm 0644 ${WORKDIR}/tbb.pc ${D}${libdir}/pkgconfig/tbb.pc
-}
 
 # fails with thumb enabled:
 # | arm-oe-linux-gnueabi-g++  -march=armv7-a -mthumb -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 -mcpu=cortex-a9 -D__ARM__ -D__LINUX_ARM_ARCH__=7 -funwind-tables -mvectorize-with-neon-quad -rdynamic --sysroot=/OE/sysroots/m14tv -c -MMD -DTBB_USE_DEBUG  -g -O0 -DUSE_PTHREAD -fPIC -D__TBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
Signature · 1 line
2.17.1
#1 lore raw

https://errors.yoctoproject.org/Errors/Details/575697/

opencv is looking for a tbb header which is not there

Quoted 275 lines · Naveen Saini

Switched to cmake build tool.

Rebased some patches due to directory re-structuring. Dropped patches, which are not required anymore.

---
 ...nfo-is-glibc-specific-API-mark-it-so.patch | 27 +++++++-------
 .../GLIBC-PREREQ-is-not-defined-on-musl.patch | 22 +++++++-----
 .../tbb/tbb/cross-compile.patch               | 35 -------------------
 .../tbb/tbb/improve-reproducibility.patch     | 30 ----------------
 meta-oe/recipes-support/tbb/tbb/tbb.pc        | 11 ------
 .../tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb}    | 35 ++++++-------------
 6 files changed, 38 insertions(+), 122 deletions(-)
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/cross-compile.patch
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/tbb.pc
 rename meta-oe/recipes-support/tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb} (59%)
meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specific-API-mark-it-so.patch +14 -13
index 7e66945fa..49325447e 100644
@@ -1,22 +1,23 @@
-From 6b2b136caa68912d77ffe26143cd3da768b9ef80 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sat, 3 Jun 2017 08:39:37 -0700
+From 52c1586bff0ecb418ac21d6678f8963d70959f04 Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Wed, 7 Apr 2021 11:14:13 +0800
 Subject: [PATCH] mallinfo() is glibc specific API mark it so
 
 Helps compiling with musl
 
-Signed-off-by: Khem Raj <[email protected]>
----
 Upstream-Status: Pending
 
- src/tbbmalloc/proxy.cpp | 2 ++
+Signed-off-by: Khem Raj <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ src/tbbmalloc_proxy/proxy.cpp | 2 ++
  1 file changed, 2 insertions(+)
 
-diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp
-index 5ef279d..06c4872 100644
---- a/src/tbbmalloc/proxy.cpp
-+++ b/src/tbbmalloc/proxy.cpp
-@@ -185,6 +185,7 @@ int mallopt(int /*param*/, int /*value*/) __THROW
+diff --git a/src/tbbmalloc_proxy/proxy.cpp b/src/tbbmalloc_proxy/proxy.cpp
+index f9942bf1..fe0dad89 100644
+--- a/src/tbbmalloc_proxy/proxy.cpp
++++ b/src/tbbmalloc_proxy/proxy.cpp
+@@ -253,6 +253,7 @@ int mallopt(int /*param*/, int /*value*/) __THROW
      return 1;
  }
 
@@ -24,7 +25,7 @@ index 5ef279d..06c4872 100644
  struct mallinfo mallinfo() __THROW
  {
      struct mallinfo m;
-@@ -192,6 +193,7 @@ struct mallinfo mallinfo() __THROW
+@@ -260,6 +261,7 @@ struct mallinfo mallinfo() __THROW
 
      return m;
  }
@@ -33,5 +34,5 @@ index 5ef279d..06c4872 100644
  #if __ANDROID__
  // Android doesn't have malloc_usable_size, provide it to be compatible
 --
-2.13.0
+2.17.1
 
meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-musl.patch +13 -9
index 6f28f6f3a..fb10684cd 100644
@@ -1,7 +1,7 @@
-From 27956d4c5fb615098231cebfb8eef11057639d3c Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Sun, 8 Dec 2019 18:14:38 +0100
-Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not defined on
+From 5cac8b5fffa4ebf5f0090456c9e0cbf43827242a Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Wed, 7 Apr 2021 11:32:52 +0800
+Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not defined on
  musl
 
 Do not call __GLIBC_PREREQ if it is not defined otherwise build will
@@ -12,14 +12,15 @@ Signed-off-by: Fabrice Fontaine <[email protected]>
 Upstream-Status: Submitted [https://github.com/oneapi-src/oneTBB/pull/203]
 
 Signed-off-by: Anuj Mittal <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
 ---
- src/tbbmalloc/proxy.cpp | 6 ++++--
+ src/tbbmalloc_proxy/proxy.cpp | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
 
-diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp
-index d96ae7a0..709ae839 100644
---- a/src/tbbmalloc/proxy.cpp
-+++ b/src/tbbmalloc/proxy.cpp
+diff --git a/src/tbbmalloc_proxy/proxy.cpp b/src/tbbmalloc_proxy/proxy.cpp
+index fe0dad89..93e68049 100644
+--- a/src/tbbmalloc_proxy/proxy.cpp
++++ b/src/tbbmalloc_proxy/proxy.cpp
 @@ -24,7 +24,8 @@
  // of aligned_alloc as required by new C++ standard, this makes it hard to
  // redefine aligned_alloc here. However, running on systems with new libc
@@ -40,3 +41,6 @@ index d96ae7a0..709ae839 100644
  #endif // __linux__ && !__ANDROID__
 
  #include "proxy.h"
+--
+2.17.1
+
meta-oe/recipes-support/tbb/tbb/cross-compile.patch deleted +0 -35
deleted file mode 100644
index 36578543f..000000000
@@ -1,35 +0,0 @@
-Author: Marcin Juszkiewicz <[email protected]>
-
-Upstream-Status: unsuitable
----
-
-diff --git a/build/linux.clang.inc b/build/linux.clang.inc
-index fe9b5c98..b0dcd68b 100644
---- a/build/linux.clang.inc
-+++ b/build/linux.clang.inc
-@@ -12,8 +12,8 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
--CPLUS ?= clang++
--CONLY ?= clang
-+CPLUS ?= $(CXX)
-+CONLY ?= $(CC)
- COMPILE_ONLY = -c -MMD
- PREPROC_ONLY = -E -x c++
- INCLUDE_KEY = -I
-diff --git a/build/linux.gcc.inc b/build/linux.gcc.inc
-index d820c15d..62c76afd 100644
---- a/build/linux.gcc.inc
-+++ b/build/linux.gcc.inc
-@@ -12,8 +12,8 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
--CPLUS ?= g++
--CONLY ?= gcc
-+CPLUS ?= $(CXX)
-+CONLY ?= $(CC)
- COMPILE_ONLY = -c -MMD
- PREPROC_ONLY = -E -x c++
- INCLUDE_KEY = -I
meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -30
deleted file mode 100644
index 91d10cb7a..000000000
@@ -1,30 +0,0 @@
-From f56eeb18a07df139864a99e1967d450cc5c8c0bb Mon Sep 17 00:00:00 2001
-From: Lee Chee Yang <[email protected]>
-Date: Wed, 30 Sep 2020 16:18:35 +0800
-Subject: [PATCH] improve reproducibility
-
-remove the WORKDIR info from BUILD_COMMAND to improve reproducibility.
-also use SOURCE_DATE_EPOCH as DATETIME wherever possible.
-
-Upstream-Status: Inappropriate [sed WORKDIR does not applies to upstream]
-Signed-off-by: Lee Chee Yang <[email protected]>
----
- build/version_info_linux.sh | 4 +-
- 1 file changed, 2 insertion(+), 2 deletion(-)
-
-diff --git a/build/version_info_linux.sh b/build/version_info_linux.sh
-index 793cad11..ed6f4b2a 100644
---- a/build/version_info_linux.sh
-+++ b/build/version_info_linux.sh
-@@ -25,6 +25,6 @@ echo '#N": BUILD_GCC'"\t\t"`g++ --version </dev/null 2>&1 | grep 'g++'`'" ENDL \
- echo '#N": BUILD_LIBC'"\t"`getconf GNU_LIBC_VERSION | grep glibc | sed -e 's/^glibc //'`'" ENDL \'
- echo '#N": BUILD_LD'"\t\t"`ld -v 2>&1 | grep 'version'`'" ENDL \'
- echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \'
--echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \'
-+echo '#N": BUILD_COMMAND'"\t"$(echo $* | sed 's#'$WORKDIR'#/workdir#g')'" ENDL \'
- echo ""
--echo "#define __TBB_DATETIME \""`date -u`"\""
-+echo "#define __TBB_DATETIME \""`$(date -u -d "@$SOURCE_DATE_EPOCH"  2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH"  2>/dev/null || date -u )`"\""
---
-2.25.1
-
meta-oe/recipes-support/tbb/tbb/tbb.pc deleted +0 -11
deleted file mode 100644
index 4f9da1140..000000000
@@ -1,11 +0,0 @@
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
-
-Name: Threading Building Blocks
-Description: Intel's parallelism library for C++
-URL: https://software.intel.com/en-us/tbb
-Version: 2020.2
-Libs: -L${libdir} -ltbb
-Cflags: -I${includedir}
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +11 -25
similarity index 59%
rename from meta-oe/recipes-support/tbb/tbb_2020.3.bb
rename to meta-oe/recipes-support/tbb/tbb_2021.2.0.bb
index 8e0094b31..357fbba34 100644
@@ -5,37 +5,24 @@ DESCRIPTION = "Parallelism library for C++ - runtime files \
     and threading mechanism for performance and scalability."
 HOMEPAGE = "https://software.intel.com/en-us/tbb"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
-BRANCH = "tbb_2020"
-SRCREV = "eca91f16d7490a8abfdee652dadf457ec820cc37"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=86d3f3a95c324c9479bd8986968f4327"
+BRANCH = "onetbb_2021"
+SRCREV = "2dba2072869a189b9fdab3ffa431d3ea49059a19"
 SRC_URI = "git://github.com/oneapi-src/oneTBB.git;protocol=https;branch=${BRANCH} \
-           file://cross-compile.patch \
-           file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
-           file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
-           file://tbb.pc \
-           file://improve-reproducibility.patch \
+            file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
+            file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
 "
 
 S = "${WORKDIR}/git"
-PE = "1"
 
-COMPILER ?= "gcc"
-COMPILER_toolchain-clang = "clang"
+inherit cmake
 
-do_compile() {
-    oe_runmake compiler=${COMPILER} arch=${HOST_ARCH}
-}
+# test build fails, error: 'mallinfo mallinfo()' is deprecated
+EXTRA_OECMAKE += " \
+                    -DTBB_TEST=OFF \
+                    -DCMAKE_BUILD_TYPE=Release \
+                "
 
-do_install() {
-    install -d ${D}${includedir} ${D}${libdir}
-    rm ${S}/include/tbb/index.html -f
-    cp -R --no-dereference --preserve=mode,links -v ${S}/include/tbb ${D}${includedir}
-    for f in ${B}/build/linux_*_release/lib*.so*
-    do
-        install -Dm 0755 $f ${D}${libdir}/
-    done
-    install -Dm 0644 ${WORKDIR}/tbb.pc ${D}${libdir}/pkgconfig/tbb.pc
-}
 
 # fails with thumb enabled:
 # | arm-oe-linux-gnueabi-g++  -march=armv7-a -mthumb -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 -mcpu=cortex-a9 -D__ARM__ -D__LINUX_ARM_ARCH__=7 -funwind-tables -mvectorize-with-neon-quad -rdynamic --sysroot=/OE/sysroots/m14tv -c -MMD -DTBB_USE_DEBUG  -g -O0 -DUSE_PTHREAD -fPIC -D__TBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
--

2.17.1

#2 lore raw
Quoted 5 lines · Khem Raj

https://errors.yoctoproject.org/Errors/Details/575697/

opencv is looking for a tbb header which is not there

This is fixed in 4.5.2 release so I have a local patch for opencv upgrade however there are additional arches failing to build

rv64 - https://errors.yoctoproject.org/Errors/Details/575734/
rv32 - https://errors.yoctoproject.org/Errors/Details/575733/
x86/musl - https://errors.yoctoproject.org/Errors/Details/575731/
x86_64 - https://errors.yoctoproject.org/Errors/Details/575732/
musl - https://errors.yoctoproject.org/Errors/Details/575728/

you might want to link with libucontext in when using musl.

This is with GCC 11 btw but I. think most of them I not related to gcc version.

Quoted 277 lines
Quoted 275 lines · Naveen Saini

Switched to cmake build tool.

Rebased some patches due to directory re-structuring. Dropped patches, which are not required anymore.

---
 ...nfo-is-glibc-specific-API-mark-it-so.patch | 27 +++++++-------
 .../GLIBC-PREREQ-is-not-defined-on-musl.patch | 22 +++++++-----
 .../tbb/tbb/cross-compile.patch               | 35 -------------------
 .../tbb/tbb/improve-reproducibility.patch     | 30 ----------------
 meta-oe/recipes-support/tbb/tbb/tbb.pc        | 11 ------
 .../tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb}    | 35 ++++++-------------
 6 files changed, 38 insertions(+), 122 deletions(-)
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/cross-compile.patch
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/tbb.pc
 rename meta-oe/recipes-support/tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb} (59%)
meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specific-API-mark-it-so.patch +14 -13
index 7e66945fa..49325447e 100644
@@ -1,22 +1,23 @@
-From 6b2b136caa68912d77ffe26143cd3da768b9ef80 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sat, 3 Jun 2017 08:39:37 -0700
+From 52c1586bff0ecb418ac21d6678f8963d70959f04 Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Wed, 7 Apr 2021 11:14:13 +0800
 Subject: [PATCH] mallinfo() is glibc specific API mark it so
 
 Helps compiling with musl
 
-Signed-off-by: Khem Raj <[email protected]>
----
 Upstream-Status: Pending
 
- src/tbbmalloc/proxy.cpp | 2 ++
+Signed-off-by: Khem Raj <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ src/tbbmalloc_proxy/proxy.cpp | 2 ++
  1 file changed, 2 insertions(+)
 
-diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp
-index 5ef279d..06c4872 100644
---- a/src/tbbmalloc/proxy.cpp
-+++ b/src/tbbmalloc/proxy.cpp
-@@ -185,6 +185,7 @@ int mallopt(int /*param*/, int /*value*/) __THROW
+diff --git a/src/tbbmalloc_proxy/proxy.cpp b/src/tbbmalloc_proxy/proxy.cpp
+index f9942bf1..fe0dad89 100644
+--- a/src/tbbmalloc_proxy/proxy.cpp
++++ b/src/tbbmalloc_proxy/proxy.cpp
+@@ -253,6 +253,7 @@ int mallopt(int /*param*/, int /*value*/) __THROW
      return 1;
  }
 
@@ -24,7 +25,7 @@ index 5ef279d..06c4872 100644
  struct mallinfo mallinfo() __THROW
  {
      struct mallinfo m;
-@@ -192,6 +193,7 @@ struct mallinfo mallinfo() __THROW
+@@ -260,6 +261,7 @@ struct mallinfo mallinfo() __THROW
 
      return m;
  }
@@ -33,5 +34,5 @@ index 5ef279d..06c4872 100644
  #if __ANDROID__
  // Android doesn't have malloc_usable_size, provide it to be compatible
 --
-2.13.0
+2.17.1
 
meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-musl.patch +13 -9
index 6f28f6f3a..fb10684cd 100644
@@ -1,7 +1,7 @@
-From 27956d4c5fb615098231cebfb8eef11057639d3c Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Sun, 8 Dec 2019 18:14:38 +0100
-Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not defined on
+From 5cac8b5fffa4ebf5f0090456c9e0cbf43827242a Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Wed, 7 Apr 2021 11:32:52 +0800
+Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not defined on
  musl
 
 Do not call __GLIBC_PREREQ if it is not defined otherwise build will
@@ -12,14 +12,15 @@ Signed-off-by: Fabrice Fontaine <[email protected]>
 Upstream-Status: Submitted [https://github.com/oneapi-src/oneTBB/pull/203]
 
 Signed-off-by: Anuj Mittal <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
 ---
- src/tbbmalloc/proxy.cpp | 6 ++++--
+ src/tbbmalloc_proxy/proxy.cpp | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
 
-diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp
-index d96ae7a0..709ae839 100644
---- a/src/tbbmalloc/proxy.cpp
-+++ b/src/tbbmalloc/proxy.cpp
+diff --git a/src/tbbmalloc_proxy/proxy.cpp b/src/tbbmalloc_proxy/proxy.cpp
+index fe0dad89..93e68049 100644
+--- a/src/tbbmalloc_proxy/proxy.cpp
++++ b/src/tbbmalloc_proxy/proxy.cpp
 @@ -24,7 +24,8 @@
  // of aligned_alloc as required by new C++ standard, this makes it hard to
  // redefine aligned_alloc here. However, running on systems with new libc
@@ -40,3 +41,6 @@ index d96ae7a0..709ae839 100644
  #endif // __linux__ && !__ANDROID__
 
  #include "proxy.h"
+--
+2.17.1
+
meta-oe/recipes-support/tbb/tbb/cross-compile.patch deleted +0 -35
deleted file mode 100644
index 36578543f..000000000
@@ -1,35 +0,0 @@
-Author: Marcin Juszkiewicz <[email protected]>
-
-Upstream-Status: unsuitable
----
-
-diff --git a/build/linux.clang.inc b/build/linux.clang.inc
-index fe9b5c98..b0dcd68b 100644
---- a/build/linux.clang.inc
-+++ b/build/linux.clang.inc
-@@ -12,8 +12,8 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
--CPLUS ?= clang++
--CONLY ?= clang
-+CPLUS ?= $(CXX)
-+CONLY ?= $(CC)
- COMPILE_ONLY = -c -MMD
- PREPROC_ONLY = -E -x c++
- INCLUDE_KEY = -I
-diff --git a/build/linux.gcc.inc b/build/linux.gcc.inc
-index d820c15d..62c76afd 100644
---- a/build/linux.gcc.inc
-+++ b/build/linux.gcc.inc
-@@ -12,8 +12,8 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
--CPLUS ?= g++
--CONLY ?= gcc
-+CPLUS ?= $(CXX)
-+CONLY ?= $(CC)
- COMPILE_ONLY = -c -MMD
- PREPROC_ONLY = -E -x c++
- INCLUDE_KEY = -I
meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -30
deleted file mode 100644
index 91d10cb7a..000000000
@@ -1,30 +0,0 @@
-From f56eeb18a07df139864a99e1967d450cc5c8c0bb Mon Sep 17 00:00:00 2001
-From: Lee Chee Yang <[email protected]>
-Date: Wed, 30 Sep 2020 16:18:35 +0800
-Subject: [PATCH] improve reproducibility
-
-remove the WORKDIR info from BUILD_COMMAND to improve reproducibility.
-also use SOURCE_DATE_EPOCH as DATETIME wherever possible.
-
-Upstream-Status: Inappropriate [sed WORKDIR does not applies to upstream]
-Signed-off-by: Lee Chee Yang <[email protected]>
----
- build/version_info_linux.sh | 4 +-
- 1 file changed, 2 insertion(+), 2 deletion(-)
-
-diff --git a/build/version_info_linux.sh b/build/version_info_linux.sh
-index 793cad11..ed6f4b2a 100644
---- a/build/version_info_linux.sh
-+++ b/build/version_info_linux.sh
-@@ -25,6 +25,6 @@ echo '#N": BUILD_GCC'"\t\t"`g++ --version </dev/null 2>&1 | grep 'g++'`'" ENDL \
- echo '#N": BUILD_LIBC'"\t"`getconf GNU_LIBC_VERSION | grep glibc | sed -e 's/^glibc //'`'" ENDL \'
- echo '#N": BUILD_LD'"\t\t"`ld -v 2>&1 | grep 'version'`'" ENDL \'
- echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \'
--echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \'
-+echo '#N": BUILD_COMMAND'"\t"$(echo $* | sed 's#'$WORKDIR'#/workdir#g')'" ENDL \'
- echo ""
--echo "#define __TBB_DATETIME \""`date -u`"\""
-+echo "#define __TBB_DATETIME \""`$(date -u -d "@$SOURCE_DATE_EPOCH"  2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH"  2>/dev/null || date -u )`"\""
---
-2.25.1
-
meta-oe/recipes-support/tbb/tbb/tbb.pc deleted +0 -11
deleted file mode 100644
index 4f9da1140..000000000
@@ -1,11 +0,0 @@
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
-
-Name: Threading Building Blocks
-Description: Intel's parallelism library for C++
-URL: https://software.intel.com/en-us/tbb
-Version: 2020.2
-Libs: -L${libdir} -ltbb
-Cflags: -I${includedir}
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +11 -25
similarity index 59%
rename from meta-oe/recipes-support/tbb/tbb_2020.3.bb
rename to meta-oe/recipes-support/tbb/tbb_2021.2.0.bb
index 8e0094b31..357fbba34 100644
@@ -5,37 +5,24 @@ DESCRIPTION = "Parallelism library for C++ - runtime files \
     and threading mechanism for performance and scalability."
 HOMEPAGE = "https://software.intel.com/en-us/tbb"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
-BRANCH = "tbb_2020"
-SRCREV = "eca91f16d7490a8abfdee652dadf457ec820cc37"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=86d3f3a95c324c9479bd8986968f4327"
+BRANCH = "onetbb_2021"
+SRCREV = "2dba2072869a189b9fdab3ffa431d3ea49059a19"
 SRC_URI = "git://github.com/oneapi-src/oneTBB.git;protocol=https;branch=${BRANCH} \
-           file://cross-compile.patch \
-           file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
-           file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
-           file://tbb.pc \
-           file://improve-reproducibility.patch \
+            file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
+            file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
 "
 
 S = "${WORKDIR}/git"
-PE = "1"
 
-COMPILER ?= "gcc"
-COMPILER_toolchain-clang = "clang"
+inherit cmake
 
-do_compile() {
-    oe_runmake compiler=${COMPILER} arch=${HOST_ARCH}
-}
+# test build fails, error: 'mallinfo mallinfo()' is deprecated
+EXTRA_OECMAKE += " \
+                    -DTBB_TEST=OFF \
+                    -DCMAKE_BUILD_TYPE=Release \
+                "
 
-do_install() {
-    install -d ${D}${includedir} ${D}${libdir}
-    rm ${S}/include/tbb/index.html -f
-    cp -R --no-dereference --preserve=mode,links -v ${S}/include/tbb ${D}${includedir}
-    for f in ${B}/build/linux_*_release/lib*.so*
-    do
-        install -Dm 0755 $f ${D}${libdir}/
-    done
-    install -Dm 0644 ${WORKDIR}/tbb.pc ${D}${libdir}/pkgconfig/tbb.pc
-}
 
 # fails with thumb enabled:
 # | arm-oe-linux-gnueabi-g++  -march=armv7-a -mthumb -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 -mcpu=cortex-a9 -D__ARM__ -D__LINUX_ARM_ARCH__=7 -funwind-tables -mvectorize-with-neon-quad -rdynamic --sysroot=/OE/sysroots/m14tv -c -MMD -DTBB_USE_DEBUG  -g -O0 -DUSE_PTHREAD -fPIC -D__TBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
--

2.17.1

#3 lore raw

Hi Khem,

Quoted 24 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Thursday, April 8, 2021 1:32 AM
To: Saini, Naveen Kumar <[email protected]>
Cc: openembeded-devel <openembedded- [email protected]>
Subject: Re: [oe] [meta-oe][PATCH] tbb: upgrade 2020.3 -> 2021.2.0

Quoted 5 lines · Khem Raj

https://errors.yoctoproject.org/Errors/Details/575697/

opencv is looking for a tbb header which is not there

This is fixed in 4.5.2 release so I have a local patch for opencv upgrade however there are additional arches failing to build

rv64 - https://errors.yoctoproject.org/Errors/Details/575734/
rv32 - https://errors.yoctoproject.org/Errors/Details/575733/
x86/musl - https://errors.yoctoproject.org/Errors/Details/575731/
x86_64 - https://errors.yoctoproject.org/Errors/Details/575732/
musl - https://errors.yoctoproject.org/Errors/Details/575728/

Quoted 3 lines

you might want to link with libucontext in when using musl.

This is with GCC 11 btw but I. think most of them I not related to gcc version.

TOPDIR/build/tmpfs/work/core2-64-yoe-linux/tbb/2021.2.0-r0/recipe-sysroot-native/usr/lib/x86_64-yoe-linux/gcc/x86_64-yoe-linux/11.0.1/include/waitpkgintrin.h:53:1: error: inlining failed in call to 'always_inline' 'unsigned char _tpause(unsigned int, long long unsigned int)': target specific option mismatch
53 | _tpause (unsigned int __A, unsigned long long __B)

      | ^~~~~~~

compilation terminated due to -Wfatal-errors.

Possibly it may be gcc-11 issue, I am testing with GCC 10 (qemux86-64, poky distro). I do not see tbb build failure. I can see there is already an open issue (duplicate) opened for gcc 11
https://github.com/oneapi-src/oneTBB/issues/370
https://github.com/oneapi-src/oneTBB/issues/349

I tested with musl too (gcc10), I do not see tbb failure.

I will try with gcc-11.

Quoted 337 lines
Quoted 92 lines
Quoted 89 lines · Naveen Saini

Switched to cmake build tool.

Rebased some patches due to directory re-structuring. Dropped patches, which are not required anymore.

---
 ...nfo-is-glibc-specific-API-mark-it-so.patch | 27 +++++++-------
.../GLIBC-PREREQ-is-not-defined-on-musl.patch | 22 +++++++-----
 .../tbb/tbb/cross-compile.patch               | 35 -------------------
 .../tbb/tbb/improve-reproducibility.patch     | 30 ----------------
 meta-oe/recipes-support/tbb/tbb/tbb.pc        | 11 ------
 .../tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb}    | 35 ++++++-------------
 6 files changed, 38 insertions(+), 122 deletions(-)  delete mode
100644 meta-oe/recipes-support/tbb/tbb/cross-compile.patch
 delete mode 100644
meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch
 delete mode 100644 meta-oe/recipes-support/tbb/tbb/tbb.pc
 rename meta-oe/recipes-support/tbb/{tbb_2020.3.bb =>

tbb_2021.2.0.bb} (59%)

diff --git a/meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specific-AP I-mark-it-so.patch b/meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specific-AP I-mark-it-so.patch
index 7e66945fa..49325447e 100644
---
a/meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specific-AP I-mark-it-so.patch
+++ b/meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specifi +++ c-API-mark-it-so.patch

(quoted diff) +0 -1
@@ -1,22 +1,23 @@
-From 6b2b136caa68912d77ffe26143cd3da768b9ef80 Mon Sep 17 00:00:00

2001

meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specific-API-mark-it-so.patch +8 -10
-From: Khem Raj <[email protected]>
-Date: Sat, 3 Jun 2017 08:39:37 -0700
+From 52c1586bff0ecb418ac21d6678f8963d70959f04 Mon Sep 17 00:00:00
+2001
+From: Naveen Saini <[email protected]>
+Date: Wed, 7 Apr 2021 11:14:13 +0800
 Subject: [PATCH] mallinfo() is glibc specific API mark it so
 
 Helps compiling with musl
 
-Signed-off-by: Khem Raj <[email protected]>
----
 Upstream-Status: Pending
 
- src/tbbmalloc/proxy.cpp | 2 ++
+Signed-off-by: Khem Raj <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ src/tbbmalloc_proxy/proxy.cpp | 2 ++
  1 file changed, 2 insertions(+)
 
-diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp
-index 5ef279d..06c4872 100644
---- a/src/tbbmalloc/proxy.cpp
-+++ b/src/tbbmalloc/proxy.cpp
-@@ -185,6 +185,7 @@ int mallopt(int /*param*/, int /*value*/)

__THROW

meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specific-API-mark-it-so.patch +7 -1
+diff --git a/src/tbbmalloc_proxy/proxy.cpp
+b/src/tbbmalloc_proxy/proxy.cpp index f9942bf1..fe0dad89 100644
+--- a/src/tbbmalloc_proxy/proxy.cpp
++++ b/src/tbbmalloc_proxy/proxy.cpp
+@@ -253,6 +253,7 @@ int mallopt(int /*param*/, int /*value*/)
+__THROW
      return 1;
  }
@@ -24,7 +25,7 @@ index 5ef279d..06c4872 100644
  struct mallinfo mallinfo() __THROW
  {
      struct mallinfo m;
-@@ -192,6 +193,7 @@ struct mallinfo mallinfo() __THROW
+@@ -260,6 +261,7 @@ struct mallinfo mallinfo() __THROW
 
      return m;
  }
@@ -33,5 +34,5 @@ index 5ef279d..06c4872 100644
  #if __ANDROID__
  // Android doesn't have malloc_usable_size, provide it to be

compatible
--
-2.13.0
+2.17.1

Quoted 2 lines
Quoted 2 lines

diff --git a/meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-

mus

Quoted 2 lines
Quoted 2 lines

l.patch b/meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-

mus

Quoted 4 lines
Quoted 4 lines

l.patch
index 6f28f6f3a..fb10684cd 100644
---
a/meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-

mus

Quoted 2 lines
Quoted 2 lines

l.patch
+++ b/meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-

on

Quoted 29 lines
Quoted 29 lines

+++ -musl.patch

(quoted diff) +0 -1
@@ -1,7 +1,7 @@
-From 27956d4c5fb615098231cebfb8eef11057639d3c Mon Sep 17 00:00:00

2001

meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-musl.patch +0 -3
-From: Fabrice Fontaine <[email protected]>
-Date: Sun, 8 Dec 2019 18:14:38 +0100
-Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not

defined on

(quoted diff) +6 -0
+From 5cac8b5fffa4ebf5f0090456c9e0cbf43827242a Mon Sep 17 00:00:00
+2001
+From: Naveen Saini <[email protected]>
+Date: Wed, 7 Apr 2021 11:32:52 +0800
+Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not
+defined on
  musl
 
 Do not call __GLIBC_PREREQ if it is not defined otherwise build

will @@ -12,14 +12,15 @@ Signed-off-by: Fabrice Fontaine <[email protected]>
Upstream-Status: Submitted
[https://github.com/oneapi-src/oneTBB/pull/203]

+Signed-off-by: Naveen Saini <[email protected]>
---
- src/tbbmalloc/proxy.cpp | 6 ++++--
+ src/tbbmalloc_proxy/proxy.cpp | 6 ++++--

  1 file changed, 4 insertions(+), 2 deletions(-)
Quoted 10 lines

meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-musl.patch Signed-off-by: Fabrice Fontaine <[email protected]>

Quoted 10 lines
meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-musl.patch +4 -4
-diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp
-index d96ae7a0..709ae839 100644
---- a/src/tbbmalloc/proxy.cpp
-+++ b/src/tbbmalloc/proxy.cpp
+diff --git a/src/tbbmalloc_proxy/proxy.cpp
+b/src/tbbmalloc_proxy/proxy.cpp index fe0dad89..93e68049 100644
+--- a/src/tbbmalloc_proxy/proxy.cpp
++++ b/src/tbbmalloc_proxy/proxy.cpp
 @@ -24,7 +24,8 @@
  // of aligned_alloc as required by new C++ standard, this makes it hard

to

Quoted 59 lines
Quoted 59 lines

// redefine aligned_alloc here. However, running on systems with
new libc @@ -40,3 +41,6 @@ index d96ae7a0..709ae839 100644
#endif // __linux__ && !__ANDROID__

#include "proxy.h"
+--
+2.17.1

meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-musl.patch +1 -0
+
meta-oe/recipes-support/tbb/tbb/cross-compile.patch deleted +0 -6
deleted file mode 100644
index 36578543f..000000000
@@ -1,35 +0,0 @@
-Author: Marcin Juszkiewicz <[email protected]>
-
-Upstream-Status: unsuitable
----
-
-diff --git a/build/linux.clang.inc b/build/linux.clang.inc -index

fe9b5c98..b0dcd68b 100644
---- a/build/linux.clang.inc
-+++ b/build/linux.clang.inc
-@@ -12,8 +12,8 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.

meta-oe/recipes-support/tbb/tbb/cross-compile.patch deleted +0 -9
-
--CPLUS ?= clang++
--CONLY ?= clang
-+CPLUS ?= $(CXX)
-+CONLY ?= $(CC)
- COMPILE_ONLY = -c -MMD
- PREPROC_ONLY = -E -x c++
- INCLUDE_KEY = -I
-diff --git a/build/linux.gcc.inc b/build/linux.gcc.inc -index

d820c15d..62c76afd 100644
---- a/build/linux.gcc.inc
-+++ b/build/linux.gcc.inc
-@@ -12,8 +12,8 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
--CPLUS ?= g++
--CONLY ?= gcc
-+CPLUS ?= $(CXX)
-+CONLY ?= $(CC)
- COMPILE_ONLY = -c -MMD
- PREPROC_ONLY = -E -x c++
- INCLUDE_KEY = -I
diff --git a/meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch b/meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted file mode 100644
index 91d10cb7a..000000000

meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -0
Quoted 8 lines

meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch

Quoted 8 lines
meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -1
@@ -1,30 +0,0 @@
-From f56eeb18a07df139864a99e1967d450cc5c8c0bb Mon Sep 17 00:00:00

2001

meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -5
-From: Lee Chee Yang <[email protected]>
-Date: Wed, 30 Sep 2020 16:18:35 +0800
-Subject: [PATCH] improve reproducibility
-
-remove the WORKDIR info from BUILD_COMMAND to improve

reproducibility.

Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -3
-also use SOURCE_DATE_EPOCH as DATETIME wherever possible.
-
-Upstream-Status: Inappropriate [sed WORKDIR does not applies to

upstream]
-Signed-off-by: Lee Chee Yang <[email protected]>
----
- build/version_info_linux.sh | 4 +-
- 1 file changed, 2 insertion(+), 2 deletion(-)

Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -2
-
-diff --git a/build/version_info_linux.sh

b/build/version_info_linux.sh -index 793cad11..ed6f4b2a 100644 ---- a/build/version_info_linux.sh
-+++ b/build/version_info_linux.sh
-@@ -25,6 +25,6 @@ echo '#N": BUILD_GCC'"\t\t"g++ --version </dev/null 2>&1 | grep 'g++''" ENDL \
- echo '#N": BUILD_LIBC'"\t"`getconf GNU_LIBC_VERSION | grep glibc |

sed -e 's/^glibc //'`'" ENDL \'

Quoted 4 lines
Quoted 4 lines

- echo '#N": BUILD_LD'"\t\t"ld -v 2>&1 | grep 'version''" ENDL \'
- echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \' --echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \'
-+echo '#N": BUILD_COMMAND'"\t"$(echo $* | sed

's#'$WORKDIR'#/workdir#g')'" ENDL \'

Quoted 3 lines
Quoted 3 lines

- echo ""
--echo "#define __TBB_DATETIME \""date -u"\""
-+echo "#define __TBB_DATETIME \""`$(date -u -d

"@$SOURCE_DATE_EPOCH" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" 2>/dev/null || date -u )`"\""

Quoted 22 lines
Quoted 22 lines

---
-2.25.1

meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -1
-
meta-oe/recipes-support/tbb/tbb/tbb.pc deleted +0 -11
deleted file mode 100644
index 4f9da1140..000000000
@@ -1,11 +0,0 @@
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
-
-Name: Threading Building Blocks
-Description: Intel's parallelism library for C++
-URL: https://software.intel.com/en-us/tbb
-Version: 2020.2
-Libs: -L${libdir} -ltbb
-Cflags: -I${includedir}
(quoted diff) +0 -0
Quoted 8 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime

Quoted 8 lines

b/meta-oe/recipes-support/tbb/tbb_2021.2.0.bb similarity index 59%
rename from meta-oe/recipes-support/tbb/tbb_2020.3.bb rename to meta-oe/recipes-support/tbb/tbb_2021.2.0.bb index 8e0094b31..357fbba34 100644

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -0
@@ -5,37 +5,24 @@ DESCRIPTION = "Parallelism library for C++ - runtime

files \

Quoted 4 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 4 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -1
     and threading mechanism for performance and scalability."
 HOMEPAGE = "https://software.intel.com/en-us/tbb"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM =

"file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"

Quoted 3 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 3 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +1 -2
-BRANCH = "tbb_2020"
-SRCREV = "eca91f16d7490a8abfdee652dadf457ec820cc37"
+LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=86d3f3a95c324c9479bd8986968f4327"

Quoted 3 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 3 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +2 -0
+BRANCH = "onetbb_2021"
+SRCREV = "2dba2072869a189b9fdab3ffa431d3ea49059a19"
 SRC_URI = "git://github.com/oneapi-

src/oneTBB.git;protocol=https;branch=${BRANCH} \

Quoted 25 lines
Quoted 25 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +8 -11
-           file://cross-compile.patch \
-           file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
-           file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
-           file://tbb.pc \
-           file://improve-reproducibility.patch \
+            file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
+            file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
 "
 
 S = "${WORKDIR}/git"
-PE = "1"
 
-COMPILER ?= "gcc"
-COMPILER_toolchain-clang = "clang"
+inherit cmake
 
-do_compile() {
-    oe_runmake compiler=${COMPILER} arch=${HOST_ARCH}
-}
+# test build fails, error: 'mallinfo mallinfo()' is deprecated
+EXTRA_OECMAKE += " \
+                    -DTBB_TEST=OFF \
+                    -DCMAKE_BUILD_TYPE=Release \
+                "
 
Quoted 4 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 4 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -4
-do_install() {
-    install -d ${D}${includedir} ${D}${libdir}
-    rm ${S}/include/tbb/index.html -f
-    cp -R --no-dereference --preserve=mode,links -v ${S}/include/tbb

${D}${includedir}

Quoted 9 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 9 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -6
-    for f in ${B}/build/linux_*_release/lib*.so*
-    do
-        install -Dm 0755 $f ${D}${libdir}/
-    done
-    install -Dm 0644 ${WORKDIR}/tbb.pc ${D}${libdir}/pkgconfig/tbb.pc
-}
 
 # fails with thumb enabled:
 # | arm-oe-linux-gnueabi-g++  -march=armv7-a -mthumb -mthumb-

interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 -mcpu=cortex- a9 -D__ARM__ -D__LINUX_ARM_ARCH__=7 -funwind-tables -mvectorize- with-neon-quad -rdynamic --sysroot=/OE/sysroots/m14tv -c -MMD - DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD -fPIC -D__TBB_BUILD=1 -Wall - Wno-parentheses -Wno-non-virtual-dtor -O2 -pipe -g -feliminate-unused-
debug-types -fpermissive -fvisibility-inlines-hidden -I../../src -
I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp

Quoted 6 lines
Quoted 6 lines

--
2.17.1

#4 lore raw
Quoted 38 lines · Naveen Saini
Quoted 38 lines
Quoted 8 lines
Quoted 6 lines · Naveen Saini

Switched to cmake build tool.

Rebased some patches due to directory re-structuring. Dropped patches, which are not required anymore.

Quoted 7 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime

Quoted 7 lines

rename from meta-oe/recipes-support/tbb/tbb_2020.3.bb rename to meta-oe/recipes-support/tbb/tbb_2021.2.0.bb index 8e0094b31..357fbba34 100644

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -0
@@ -5,37 +5,24 @@ DESCRIPTION = "Parallelism library for C++ - runtime

files \

Quoted 4 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 4 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -1
     and threading mechanism for performance and scalability."
 HOMEPAGE = "https://software.intel.com/en-us/tbb"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM =

"file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"

Quoted 3 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 3 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +1 -2
-BRANCH = "tbb_2020"
-SRCREV = "eca91f16d7490a8abfdee652dadf457ec820cc37"
+LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=86d3f3a95c324c9479bd8986968f4327"

Quoted 3 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 3 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +2 -0
+BRANCH = "onetbb_2021"
+SRCREV = "2dba2072869a189b9fdab3ffa431d3ea49059a19"
 SRC_URI = "git://github.com/oneapi-

src/oneTBB.git;protocol=https;branch=${BRANCH} \

Quoted 9 lines
Quoted 9 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +2 -5
-           file://cross-compile.patch \
-           file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
-           file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
-           file://tbb.pc \
-           file://improve-reproducibility.patch \
+            file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
+            file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
 "
 
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \ · line 20

Quoted 2 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -1
 S = "${WORKDIR}/git"
-PE = "1"

Why did you drop PE? Please send follow-up patch to restore it to fix:

ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-dbg went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-dev went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-doc went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-locale went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-src went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-staticdev went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]

Regards,

#5 lore raw
Quoted 39 lines · Martin Jansa
Quoted 38 lines · Naveen Saini
Quoted 38 lines
Quoted 8 lines
Quoted 6 lines · Naveen Saini

Switched to cmake build tool.

Rebased some patches due to directory re-structuring. Dropped patches, which are not required anymore.

Quoted 7 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime

Quoted 7 lines

rename from meta-oe/recipes-support/tbb/tbb_2020.3.bb rename to meta-oe/recipes-support/tbb/tbb_2021.2.0.bb index 8e0094b31..357fbba34 100644

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -0
@@ -5,37 +5,24 @@ DESCRIPTION = "Parallelism library for C++ - runtime

files \

Quoted 4 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 4 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -1
      and threading mechanism for performance and scalability."
  HOMEPAGE = "https://software.intel.com/en-us/tbb"
  LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM =

"file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"

Quoted 3 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 3 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +1 -2
-BRANCH = "tbb_2020"
-SRCREV = "eca91f16d7490a8abfdee652dadf457ec820cc37"
+LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=86d3f3a95c324c9479bd8986968f4327"

Quoted 3 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \

Quoted 3 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +2 -0
+BRANCH = "onetbb_2021"
+SRCREV = "2dba2072869a189b9fdab3ffa431d3ea49059a19"
  SRC_URI = "git://github.com/oneapi-

src/oneTBB.git;protocol=https;branch=${BRANCH} \

Quoted 9 lines
Quoted 9 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +2 -5
-           file://cross-compile.patch \
-           file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
-           file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
-           file://tbb.pc \
-           file://improve-reproducibility.patch \
+            file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \
+            file://GLIBC-PREREQ-is-not-defined-on-musl.patch \
  "
 
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb DESCRIPTION = "Parallelism library for C++ - runtime files \ · line 20

Quoted 2 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +0 -1
  S = "${WORKDIR}/git"
-PE = "1"

Why did you drop PE? Please send follow-up patch to restore it to fix:

right. Since its a simple change, I have sent the patch to restore it

Quoted 10 lines

ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-dbg went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-dev went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-doc went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-locale went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-src went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb-staticdev went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]
ERROR: tbb-2021.2.0-r0 do_packagedata: QA Issue: Package version for package tbb went backwards which would break package feeds (from 1:2020.3-r0 to 0:2021.2.0-r0) [version-going-backwards]

Regards,