From Fedora Project Wiki
No edit summary
(Add trackers)
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Modernize Thread Building Blocks for Fedora 39 =
= Modernize Thread Building Blocks for Fedora 39 =
{{Change_Proposal_Banner}}


== Summary ==
== Summary ==
Fedora is currently shipping version 2020.3 (released July 10, 2020) of the Thread Building Blocks library. The current upstream version is 2021.7 (released October 28, 2022). The Fedora community has
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 [https://bugzilla.redhat.com/show_bug.cgi?id=2036372 interest] in moving the TBB package to track a more modern version of the upstream.
expressed [https://bugzilla.redhat.com/show_bug.cgi?id=2036372 interest] in moving the TBB package
to track a more modern version of the upstream.


== Owner ==
== Owner ==
Line 17: Line 13:


== Current status ==
== Current status ==
[[Category:ChangePageIncomplete]]
[[Category:ChangeAcceptedF39]]
<!-- When your change proposal page is completed and ready for review and announcement -->
<!-- When your change proposal page is completed and ready for review and announcement -->
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->
Line 33: Line 29:
ON_QA -> change is fully code complete
ON_QA -> change is fully code complete
-->
-->
* FESCo issue: <will be assigned by the Wrangler>
* [https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/D7AL35H5LRR6WRIQB6DZOTP3FFKR67JZ/ devel thread]
* Tracker bug: <will be assigned by the Wrangler>
* FESCo issue: [https://pagure.io/fesco/issue/2959 #2959]
* Release notes tracker: <will be assigned by the Wrangler>
* Tracker bug: [https://bugzilla.redhat.com/show_bug.cgi?id=2175941 #2175941]
* Release notes tracker: [https://pagure.io/fedora-docs/release-notes/issue/969 #969]


== Detailed Description ==
== Detailed Description ==
Fedora has shipped with version 2020.3 of the Thread Building Blocks library since Fedora 33. The
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 this release. As packages have
upstream project made a decision to break backward compatibility after that version was released.
moved to match the upstream's changes it has become more difficult to continue to defer updating the
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 by not all dependent packages having
Fedora packaging for TBB. The situation is further complicated as there are currently a majority
been updated to track the latest upstream changes, as detailed in this [https://bugzilla.redhat.com/show_bug.cgi?id=2036372#c1 comment] on the tracking issue.
of TBB dependent packages which have not been updated to track a new upstream release, as detailed in this [https://bugzilla.redhat.com/show_bug.cgi?id=2036372#c1 analysis] on the tracking issue.


This proposal is part of a [https://fedoraproject.org/wiki/Changes/F39TBB2020.3 pair] of proposals that aim to provide a way to modernize the TBB packge version for Fedora while providing stability for those packages which are dependent on the older TBB library version.
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, but 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.
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.


== Feedback ==
== Feedback ==
Line 53: Line 50:
== Benefit to Fedora ==
== Benefit to Fedora ==


Fedora 39 will include a current version of Thread Building Blocks, specifically version 2021.7.
Fedora 39 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.
Fedora will stay relevant, as far as Thread Building Blocks clients are concerned, including GCC's support for Standard C++, as ships with an embedded version of the C++17 parallel algorithms, based on code that is also part of the upstream TBB, and currently requires TBB to be present on the system.
 
Fedora 39 will continue to include the older 2020.3 version of TBB to ensure stability for Thread Building Blocks clients which are not currently able to move to a newer version of TBB.


== Scope ==
== Scope ==
* Proposal owners:
* Proposal owners:
** A compat package based on the current 2020.3 version of the existing TBB package will be created.
** A compat package based on the current 2020.3 version of the existing TBB package will be created.
** Evaluate TBB dependent packages to identify those which need to move to the compat version of the TBB package. An initial
** 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.
[https://bugzilla.redhat.com/show_bug.cgi?id=2036372#c1 analysis] suggests the majority of current TBB clients will need to
move to the compat package.
** Request a "f39-tbb" [https://docs.pagure.org/releng/sop_adding_side_build_targets.html build system tag]
** Build TBB into that tag.
** Post a request for rebuilds to fedora-devel
** 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.
** 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 rawhide.
** When most packages are done, re-tag all the packages in rawhide.
** Watch fedora-devel and assist in rebuilding broken TBB clients.
** Watch fedora-devel and assist in rebuilding broken TBB clients.


Line 85: Line 75:
== How To Test ==
== How To Test ==
* No special hardware is needed.
* 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
* Parallel install of the 2020.3 TBB compat packages and the updated TBB packages and checking that it does not break other packages.
break other packages. See [https://bugzilla.redhat.com/show_bug.cgi?id=2036372#c1] for an analysis of impacted packages.


== User Experience ==
== User Experience ==
Line 103: Line 92:
* root
* root


While the remaining clients of TBB will need to have their spec's include paths adjusted to use the proposed [https://fedoraproject.org/wiki/Changes/F39TBB2020.3 2020.3 compat] package.
While the remaining clients of TBB will need to have their spec's include paths adjusted to use the 2020.3 compat package.


== Contingency Plan ==
== Contingency Plan ==

Revision as of 21:40, 6 March 2023

Modernize Thread Building Blocks for Fedora 39

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.

Owner


Current status

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.

Feedback

Benefit to Fedora

Fedora 39 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.

Scope

  • Proposal owners:
    • A compat package based on the current 2020.3 version of the existing TBB package will be created.
    • 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.

Upgrade/compatibility impact

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

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.

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.

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.

Contingency Plan

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

Documentation

Release Notes