From Fedora Project Wiki
(Submitted to FESCo)
Line 35: Line 35:
 
Fedora 32 includes Boost 1.69 which is the same version as F31 and F30, and is several releases behind the latest upstream release (Boost 1.73 was released April 28th 2020).
 
Fedora 32 includes Boost 1.69 which is the same version as F31 and F30, and is several releases behind the latest upstream release (Boost 1.73 was released April 28th 2020).
  
Fedora will stay relevant, as far as Boost clients are concerned. Boost 1.73 brings four new components:
+
Fedora will stay relevant, as far as Boost clients are concerned. Boost 1.73 brings five new components:
 
* [https://www.boost.org/libs/outcome/ Boost.Outcome], A set of tools for reporting and handling function failures in contexts where <i>directly</i> using C++ exception handling is unsuitable, from Niall Douglas.
 
* [https://www.boost.org/libs/outcome/ Boost.Outcome], A set of tools for reporting and handling function failures in contexts where <i>directly</i> using C++ exception handling is unsuitable, from Niall Douglas.
 
* [https://www.boost.org/libs/histogram/ Boost.Histogram], Fast and extensible multi-dimensional histograms with convenient interface for C++14, from Hans Dembinski.
 
* [https://www.boost.org/libs/histogram/ Boost.Histogram], Fast and extensible multi-dimensional histograms with convenient interface for C++14, from Hans Dembinski.

Revision as of 20:06, 6 May 2020

Boost 1.73 upgrade

Summary

This change brings Boost 1.73 to Fedora. This will mean Fedora ships with a recent upstream Boost release.

Owner

Current status

  • Targeted release: Fedora 33
  • Last updated: 2020-05-06
  • FESCo issue: #2388
  • Tracker bug: <will be assigned by the Wrangler>
  • Release notes tracker: <will be assigned by the Wrangler>

Detailed Description

The aim is to synchronize Fedora with the most recent Boost release. Because ABI stability is absent from Boost, this entails rebuilding of all dependent packages. This also entails the change owner assisting maintainers of client packages in decoding cryptic boost-ese seen in output from g++.

The equivalent changes for previous releases were Fedora 30 Change, Fedora 29 Change, Fedora 28 Change, Fedora 27 Change, Fedora 26 Change, Fedora 25 Change, Fedora 24 Change, Fedora 23 Change and Fedora 22 Change.

Benefit to Fedora

Fedora 32 includes Boost 1.69 which is the same version as F31 and F30, and is several releases behind the latest upstream release (Boost 1.73 was released April 28th 2020).

Fedora will stay relevant, as far as Boost clients are concerned. Boost 1.73 brings five new components:

  • Boost.Outcome, A set of tools for reporting and handling function failures in contexts where directly using C++ exception handling is unsuitable, from Niall Douglas.
  • Boost.Histogram, Fast and extensible multi-dimensional histograms with convenient interface for C++14, from Hans Dembinski.
  • Boost.Variant2, A never-valueless, strong guarantee implementation of std::variant, from Peter Dimov.
  • Boost.Nowide, Standard library functions with UTF-8 API on Windows, from Artyom Beilis.
  • Boost.StaticString, A dynamically resizable string of characters with compile-time fixed capacity and contiguous embedded storage, from Vinnie Falco and Krystian Stasiowski.

Scope

  • Proposal owners:
    • Build will be done with Boost.Build v2 (which is the upstream-sanctioned way of building Boost)
    • Request a "f33-boost" build system tag (discussion): TODO
    • Build boost into that tag (take a look at the build #606493 for inspiration)
    • Post a request for rebuilds to fedora-devel
    • Work on rebuilding dependent packages in the tag.
    • When most is done, re-tag all the packages to rawhide
    • Watch fedora-devel and assist in rebuilding broken Boost clients (by fixing the client, or Boost).
  • Other developers:
    • Those who depend on Boost DSOs 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.
    • The existing boost-nowide package will need to be retired, as it is now included in the upstream Boost release.


  • Release engineering: #9421 (a check of an impact with Release Engineering is needed)
  • Policies and guidelines:
    • Apart from scope, this is business as usual, so no new policies, no new guidelines.
  • Trademark approval: N/A (not needed for this Change)


Upgrade/compatibility impact

  • The boost-jam package has been replaced by boost-b2. The separate boost-nowide package will be replace by a subpackage of boost.
  • No manual configuration or data migration needed.
  • Some impact on other packages needing code changes to rebuild. Historically this hasn't been too much of a problem and could always be resolved before deadline.

How To Test

  • No special hardware is needed.
  • Integration testing simply consists of installing Boost packages (dnf install boost) on Fedora and checking that it does not break other packages (see below for a way to obtain a list of boost clients).


User Experience

  • Expected to remain largely the same.
  • Developers building third-party software on Fedora may need to rebuild against the new Boost packages, and may need to adjust their code if the new Boost release is not source-compatible.
  • Developers using bjam to build their own software will need to switch to using the new name for the tool, b2

Dependencies

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

All clients: $ dnf repoquery --releasever=rawhide --archlist=src --whatrequires boost-devel --disablerepo='*' --enablerepo=fedora-source

Contingency Plan

  • Contingency mechanism: Worst case scenario is to abandon the update and simply ship F33 with Boost 1.69, which is already in rawhide. It would also be possible to ship an older release (1.70.0, 1.71.0 or 1.72.0) which would still be newer than in current Fedora releases.
  • Contingency deadline: We will know whether the change can be made once the rebuilds in the side tag are done, which will be July 2020, ideally before the mass rebuild.
  • Blocks release? No
  • Blocks product? None


Documentation

Release Notes

Boost has been upgraded to version 1.73. Apart from a number of bug fixes and improvements to existing libraries. Compared to Fedora 32, this brings: