diff --git a/cmake-remove-include-path.patch b/cmake-remove-include-path.patch new file mode 100644 index 0000000..cce8cb6 --- /dev/null +++ b/cmake-remove-include-path.patch @@ -0,0 +1,26 @@ +Index: tbb-2019_U8/cmake/templates/TBBConfig.cmake.in +=================================================================== +--- tbb-2019_U8.orig/cmake/templates/TBBConfig.cmake.in ++++ tbb-2019_U8/cmake/templates/TBBConfig.cmake.in +@@ -60,8 +60,6 @@ foreach (_tbb_component ${TBB_FIND_COMPO + if (EXISTS "${_tbb_release_lib}" OR EXISTS "${_tbb_debug_lib}") + if (NOT TARGET TBB::${_tbb_component}) + add_library(TBB::${_tbb_component} SHARED IMPORTED) +- set_target_properties(TBB::${_tbb_component} PROPERTIES +- INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/@TBB_INC_REL_PATH@") + + if (EXISTS "${_tbb_release_lib}") + set_target_properties(TBB::${_tbb_component} PROPERTIES +Index: tbb-2019_U8/cmake/templates/TBBConfigInternal.cmake.in +=================================================================== +--- tbb-2019_U8.orig/cmake/templates/TBBConfigInternal.cmake.in ++++ tbb-2019_U8/cmake/templates/TBBConfigInternal.cmake.in +@@ -43,8 +43,6 @@ foreach (_tbb_component ${TBB_FIND_COMPO + + if (EXISTS "${_tbb_release_lib}" OR EXISTS "${_tbb_debug_lib}") + add_library(TBB::${_tbb_component} SHARED IMPORTED) +- set_target_properties(TBB::${_tbb_component} PROPERTIES +- INTERFACE_INCLUDE_DIRECTORIES "${_tbb_root}/include"@TBB_COMPILE_DEFINITIONS@) + + if (EXISTS "${_tbb_release_lib}") + set_target_properties(TBB::${_tbb_component} PROPERTIES diff --git a/disable-irml.patch b/disable-irml.patch index bef2472..da7a5c1 100644 --- a/disable-irml.patch +++ b/disable-irml.patch @@ -1,8 +1,8 @@ -Index: tbb-2018_U2/python/setup.py +Index: tbb-2019_U8/python/setup.py =================================================================== ---- tbb-2018_U2.orig/python/setup.py -+++ tbb-2018_U2/python/setup.py -@@ -71,7 +71,7 @@ _tbb = Extension("tbb._api", ["tbb/api.i +--- tbb-2019_U8.orig/python/setup.py ++++ tbb-2019_U8/python/setup.py +@@ -67,7 +67,7 @@ _tbb = Extension("tbb._api", ["tbb/api.i extra_compile_args=compile_flags + tbb_flag, extra_link_args=tbb_flag, libraries =(['tbb'] if not use_compiler_tbb else []) + diff --git a/optflags.patch b/optflags.patch index 5ee23c2..af636dd 100644 --- a/optflags.patch +++ b/optflags.patch @@ -1,7 +1,7 @@ -Index: tbb-2019_U7/build/linux.gcc.inc +Index: tbb-2019_U8/build/linux.gcc.inc =================================================================== ---- tbb-2019_U7.orig/build/linux.gcc.inc -+++ tbb-2019_U7/build/linux.gcc.inc +--- tbb-2019_U8.orig/build/linux.gcc.inc ++++ tbb-2019_U8/build/linux.gcc.inc @@ -65,7 +65,7 @@ ifneq (,$(shell $(CONLY) -dumpfullversio endif diff --git a/reproducible.patch b/reproducible.patch index 7322c24..18590c0 100644 --- a/reproducible.patch +++ b/reproducible.patch @@ -1,7 +1,7 @@ -Index: tbb-2019_U7/build/version_info_linux.sh +Index: tbb-2019_U8/build/version_info_linux.sh =================================================================== ---- tbb-2019_U7.orig/build/version_info_linux.sh -+++ tbb-2019_U7/build/version_info_linux.sh +--- tbb-2019_U8.orig/build/version_info_linux.sh ++++ tbb-2019_U8/build/version_info_linux.sh @@ -16,10 +16,10 @@ # Script used to generate version info string @@ -21,10 +21,10 @@ Index: tbb-2019_U7/build/version_info_linux.sh echo "" -echo "#define __TBB_DATETIME \""`date -u`"\"" +echo "#define __TBB_DATETIME \""`date -u -r $(dirname $0)/../CHANGES`"\"" -Index: tbb-2019_U7/build/linux.inc +Index: tbb-2019_U8/build/linux.inc =================================================================== ---- tbb-2019_U7.orig/build/linux.inc -+++ tbb-2019_U7/build/linux.inc +--- tbb-2019_U8.orig/build/linux.inc ++++ tbb-2019_U8/build/linux.inc @@ -57,7 +57,7 @@ endif ifndef runtime export gcc_version:=$(shell gcc -dumpfullversion -dumpversion) diff --git a/tbb.changes b/tbb.changes index 54715c2..3bb347e 100644 --- a/tbb.changes +++ b/tbb.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jun 7 10:44:30 UTC 2019 - Ismail Dönmez + +- Add cmake-remove-include-path.patch to remove setting include + path since we already install under /usr/include and this fixes + idiot OpenCV trying to do -isystem $TBB_INCLUDE_DIR + ------------------------------------------------------------------- Thu Jun 6 12:22:31 UTC 2019 - Ismail Dönmez diff --git a/tbb.spec b/tbb.spec index 1450b8a..016a914 100644 --- a/tbb.spec +++ b/tbb.spec @@ -36,6 +36,7 @@ Patch1: optflags.patch Patch2: reproducible.patch # PATCH-FIX-OPENSUSE disable-irml.patch -- Don't try to link to irml Patch3: disable-irml.patch +Patch4: cmake-remove-include-path.patch BuildRequires: cmake BuildRequires: gcc-c++ %if %{with python2} @@ -116,9 +117,7 @@ This package contains the header files needed for development with tbb. %prep %setup -q -n %{name}-%{rel_ver} -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 +%autopatch -p1 %build make OPTFLAGS="%{optflags}" %{?_smp_mflags} tbb_build_prefix=obj