Description of problem: The tbb-devel package does not provide `TBBConfig.cmake`. It looks like, from Arch, that this command needs added to the %install section: https://github.com/archlinux/svntogit-packages/blob/packages/tbb/trunk/PKGBUILD#L32 cmake \ -DINSTALL_DIR="$pkgdir"/usr/lib/cmake/TBB \ -DSYSTEM_NAME=Linux -DTBB_VERSION_FILE="$pkgdir"/usr/include/tbb/tbb_stddef.h \ -P cmake/tbb_config_installer.cmake
Thanks for the report, Ben. I had to tweak the cmake invocation slightly (the one above just makes cmake complain that there is no CMakeLists.txt file). A Rawhide build is now running. If that doesn't break anything, I'll build for Fedora 32 - 34 next.
Hmm. The `-P` is "script mode", so it shouldn't need that. Or did you try to use `%cmake`? The key file to look for is `/usr/lib64/cmake/tbb/TBBConfig.cmake`. If that is new, then it (probably) worked. I'll test out the F33 package here locally once it lands in updates-testing. Thanks!
FEDORA-2021-c9be5cceb5 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c9be5cceb5
FEDORA-2021-865cc5a09e has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-865cc5a09e
FEDORA-2021-865cc5a09e has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-865cc5a09e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-865cc5a09e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-c9be5cceb5 has been pushed to the Fedora 32 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c9be5cceb5` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c9be5cceb5 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
The CMake package isn't working properly. The problem is that it does this: /usr/lib64/cmake/TBB/TBBConfig.cmake(45): get_filename_component(_tbb_root /usr/lib64/cmake/TBB/TBBConfig.cmake PATH ) /usr/lib64/cmake/TBB/TBBConfig.cmake(46): get_filename_component(_tbb_root /usr/lib64/cmake/TBB PATH ) which means it is looking in `/usr/lib64/cmake/TBB/lib/…` for its libraries. Looking into that config generator script to see what needs to happen.
Hmm. Seems like https://github.com/oneapi-src/oneTBB has it correct during a normal `install` process (at least when using its CMake build). No idea if that's a plausible switch for Rawhide? Seems upstream is moving to a turn-key solution eventually. Playing around with the tarball directly, it looks like what is actually wanted is: cmake -DSYSTEM_NAME=Linux -DINSTALL_DIR=$RPM_BUILD_ROOT%{_libdir}/cmake/TBB -P cmake/tbb_config_installer.cmake
That didn't quite do it either, because TBBConfig.cmake wound up looking in /usr/lib for the shared libraries, which of course doesn't work if %{_libdir} == /usr/lib64. This seems to produce the right output: cmake -DSYSTEM_NAME=Linux -DINSTALL_DIR=$RPM_BUILD_ROOT%{_libdir}/cmake/TBB -DLIB_REL_PATH=../.. -P cmake/tbb_config_installer.cmake I have started a Rawhide build with that invocation. If it looks good, I'll push builds for F32-F34 next.
I'm not able to install it on Fedora 33 due to libstdc++ symbol versions, but it looks good to me at a glance. Thanks!
FEDORA-2021-c9be5cceb5 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-865cc5a09e has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.