F40 Change Proposal: Modernize TBB (System-Wide)

Modernize Thread Building Blocks for Fedora 40

Announced as an F39 change, and still correct for F40

This is a proposed Change for Fedora Linux.
This document represents a proposed Change. As part of the Changes process, proposals are publicly announced in order to receive community feedback. This proposal will only be implemented if approved by the Fedora Engineering Steering Committee.

:link: Summary

Fedora is currently shipping version 2020.3 (released July 10, 2020) of the Thread Building Blocks library. The current upstream version is 2021.8 (released December 22, 2022). The Fedora community has expressed interest in moving the TBB package to track a more modern version of the upstream.

This was approved as a change for F39 but got dropped due to confusion about who was (and wasn’t) working on it.

:link: Owner

:link: Current status

  • Targeted release: 40
  • Last updated: 2023-10-31
  • Discussion topic
  • FESCo issue:
  • Tracker bug:
  • Release notes tracker:

Previous tickets for F39 change:

:link: Detailed Description

Fedora has shipped with version 2020.3 of the Thread Building Blocks library since Fedora 33. The upstream project made a decision to break backward compatibility after that version was released. As packages move to match the upstream’s changes it becomes more difficult to defer updating the Fedora packaging for TBB. The situation is further complicated as there are currently a majority of TBB dependent packages which have not been updated to track a new upstream release, as detailed in this analysis on the tracking issue.

This proposal aims to provide a way to modernize the TBB packge version for Fedora while providing stability for those packages which continue to depend on the older TBB library version.

It will be possible to install both devel and runtime versions of both TBB packages, however the devel compat package for version 2020.3 will require clients to point to a new include path where the legacy headers will be found.

:link: Feedback

:link: Benefit to Fedora

Fedora 40 will include a current version of Thread Building Blocks (version 2021.8) while continuing to support clients dependent on an older version of TBB (version 2020.3). Fedora will stay relevant as far as Thread Building Blocks clients are concerned.

:link: Scope

  • Proposal owners:

    • A compat package based on the current 2020.3 version of the existing TBB package was already created for F38.
    • Evaluate TBB dependent packages to identify those which need to move to the compat version of the TBB package. An initial analysis suggests the majority of current TBB clients will need to move to the compat package.
    • Post a request for rebuilds to fedora-devel
    • Create patches for those packages affected by this change to adjust their includes to point the compat package’s headers as necessary, work with affected package owners to update package specs to account for the change.
    • When most packages are done, re-tag all the packages in rawhide.
    • Watch fedora-devel and assist in rebuilding broken TBB clients.
  • Other developers:

    • Those who depend on Thread Building Blocks will have to rebuild their packages. Feature owners will alleviate some of this work as indicated above, and will assist those whose packages fail to build in debugging them.
  • Release engineering: TODO

  • Policies and guidelines: N/A (not needed for this Change)

    • Apart from scope, this is business as usual, so no new policies, no new guidelines.

:link: Upgrade/compatibility impact

  • No manual configuration or data migration needed.
  • Some impact on other packages needing code changes to rebuild.

:link: How To Test

  • No special hardware is needed.
  • Parallel install of the 2020.3 TBB compat packages and the updated TBB packages and checking that it does not break other packages.

:link: User Experience

  • Expected to remain largely the same.
  • Developers building third-party software on Fedora may need to rebuild against the new TBB packages, and may need to adjust their code to either remain on the compat TBB version or move to the new version supplied by the updated TBB package.

:link: Dependencies

Packages that must be rebuilt: & dnf repoquery -s --releasever=rawhide --whatrequires libtbb\* --enablerepo=fedora | sort -u

The tracking issue’s analysis suggests that only the following packages will be able to move to a newer TBB -

  • fawkes
  • gazebo
  • opencascade
  • pmemkv
  • root

While the remaining clients of TBB will need to have their spec’s include paths adjusted to use the 2020.3 compat package.

:link: Contingency Plan

  • Contingency mechanism: Worst case scenario is to abandon the update and simply ship F40 with the existing TBB package, which is already in rawhide.

:link: Documentation

1 Like

The Summary and Benefit to Fedora sections say that the current upstream version is 2021.8. The current upstream version is actually 2021.10.

I still have a COPR for tbb 2021, should that prove useful. I was able to simplify the spec file somewhat after the 2021.10 release came out.

typo in the subject - “propsal” not “proposal”.

Thank you! Corrected now :+1:

Ah, thanks, Jerry. My current spec file that I planned to push to rawhide was already based on your copr, but I will take another look at your latest version and copy your changes. Thanks!

That might have changed in the months since I last checked. I think a few package maintainers have made changes that will allow moving them to the new TBB. And I submitted a change for dyninst that makes it work with the new TBB.

I’ll check again and update the list.

This change proposal has now been submitted to FESCo with ticket #3099 for voting.

To find out more, please visit our Changes Policy documentation.