]> git.pld-linux.org Git - packages/dyninst.git/blame - dyninst-tbb.patch
fix build with tbb 2021.4 and finish upgrade
[packages/dyninst.git] / dyninst-tbb.patch
CommitLineData
e0511022
JP
1--- dyninst-12.0.1/cmake/Modules/FindTBB.cmake.orig 2021-11-23 22:48:27.000000000 +0100
2+++ dyninst-12.0.1/cmake/Modules/FindTBB.cmake 2021-12-16 20:23:09.983021706 +0100
3@@ -155,6 +155,7 @@
4 set(_version_files
5 "${TBB_INCLUDE_DIRS}/tbb/tbb_stddef.h"
6 "${TBB_INCLUDE_DIRS}/tbb/version.h"
7+ "${TBB_INCLUDE_DIRS}/oneapi/tbb/version.h"
8 )
9 foreach(f IN ITEMS ${_version_files})
10 if(EXISTS ${f})
fe4c339c
JP
11diff --color -ur dyninst-12.0.1.orig/common/h/concurrent.h dyninst-12.0.1/common/h/concurrent.h
12--- dyninst-12.0.1.orig/common/h/concurrent.h 2021-11-23 22:48:27.000000000 +0100
13+++ dyninst-12.0.1/common/h/concurrent.h 2021-12-20 00:43:49.261018867 +0100
14@@ -54,10 +54,10 @@
15
16 template<typename K, typename V>
17 class dyn_c_hash_map : protected tbb::concurrent_hash_map<K, V,
18- tbb::tbb_hash_compare<K>, std::allocator<std::pair<K,V>>> {
19+ tbb::tbb_hash_compare<K>, std::allocator<std::pair<const K,V>>> {
20
21 typedef tbb::concurrent_hash_map<K, V,
22- tbb::tbb_hash_compare<K>, std::allocator<std::pair<K,V>>> base;
23+ tbb::tbb_hash_compare<K>, std::allocator<std::pair<const K,V>>> base;
24 public:
25 using typename base::value_type;
26 using typename base::mapped_type;
27diff --color -ur dyninst-12.0.1.orig/symtabAPI/src/dwarfWalker.h dyninst-12.0.1/symtabAPI/src/dwarfWalker.h
28--- dyninst-12.0.1.orig/symtabAPI/src/dwarfWalker.h 2021-11-23 22:48:27.000000000 +0100
29+++ dyninst-12.0.1/symtabAPI/src/dwarfWalker.h 2021-12-20 00:46:32.186998418 +0100
30@@ -36,6 +36,8 @@
31 }
32
33 namespace tbb {
34+namespace detail {
35+namespace d1 {
36 using namespace Dyninst::SymtabAPI;
37 template<>
38 struct tbb_hash_compare<type_key> {
39@@ -51,6 +53,8 @@
40 }
41 };
42 }
43+}
44+}
45
46 namespace Dyninst {
47 namespace SymtabAPI {
This page took 0.067529 seconds and 4 git commands to generate.