Opened 5 years ago
Last modified 7 months ago
#59834 assigned enhancement
Boost: update to 1.76.0 — at Version 14
Reported by: | michaelld (Michael Dickens) | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | mascguy (Christopher Nielsen), reneeotten (Renee Otten) | |
Port: | boost |
Description (last modified by mascguy (Christopher Nielsen))
Boost 1.76.0 was released on 20210416: https://www.boost.org/users/history/version_1_76_0.html
Change History (14)
comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:2 Changed 5 years ago by michaelld (Michael Dickens)
comment:3 Changed 5 years ago by michaelld (Michael Dickens)
Description: | modified (diff) |
---|---|
Summary: | Boost: update to 1.72.0 → Boost: update to 1.73.0 |
comment:4 Changed 4 years ago by michaelld (Michael Dickens)
Description: | modified (diff) |
---|---|
Summary: | Boost: update to 1.73.0 → Boost: update to 1.74.0 |
comment:5 Changed 4 years ago by michaelld (Michael Dickens)
Description: | modified (diff) |
---|
I've closed the WIP PR for 1.72.0 because it was stale. I'll do a local update / test to work on compatibility and if things aren't horrible then I'll create another PR. Hopefully this Boost is more project-compatible than the prior 2 versions, and so we can get it in place more quickly.
comment:6 Changed 4 years ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
comment:8 Changed 4 years ago by mascguy (Christopher Nielsen)
And is there anything I can do to help?
comment:9 follow-up: 10 Changed 4 years ago by michaelld (Michael Dickens)
Thanks for the prod, @mascguy!
Boost is a challenging port to get updated. The API changes regularly which breaks backwards compatibility. It takes time even for actively-in-development ports to get working with these releases; and older ports that are not actively in development will just fail eventually because the Boost API is so different. We can't just update the "boost" port because it breaks other ports; reliably; potentially for weeks if not months until fixes are in place. Some ports will of course work without modification; but many will not. Some of those ports are not trivially updated to work with newer Boost, whether by us directly or via upstream fixes. These reasons are why Boost is stuck where it is for such a long time. Prior PRs have failed because too many ports could not be updated, and it would take too much aggregate time to do all of this work -- and so some of the ports updated in the PR get stale & need to be rebased, which takes even more time ... just not enough time in the day / week / month to get all of this done!
The best solution I've been able to come up with -- and, this is imperfect -- is to use the current "boost_169" port or create some more recent version such as "boost_172" as the dependency instead of "boost" on -all- dependent ports. Then, we can update the boost port to the current release without worrying about breaking ports that use it. Ports that are able to use the "boost" current release port can change the dependency to allow for either of those Boost ports; but, at least one version of Boost should be tested to always work ... which is why this solution is imperfect! What happens if some future port that uses Boost can't work with 1.69 or the current release? I guess we'll need intermediate ports such as "boost_174" etc ... which so long as they can be built and installed in parallel could be made to work. Not a perfect solution, but at least the vast majority of ports that depend on Boost would work regardless of the Boost release port version and compatibility.
comment:10 Changed 4 years ago by mascguy (Christopher Nielsen)
Replying to michaelld:
The best solution I've been able to come up with -- and, this is imperfect -- is to use the current "boost_169" port or create some more recent version such as "boost_172" as the dependency instead of "boost" on -all- dependent ports. [...]
Makes sense Michael, thanks for the info!
Given the lack of backward-compatibility between boost releases, multiple version-specific ports make perfect sense. That's arguably better than being limited to a single, older release.
And please let me know if there's anything I can do to assist, particularly building and testing of dependent ports.
comment:11 Changed 4 years ago by reneeotten (Renee Otten)
any progress on this (right now upstream is at version 1.76)? I was looking at a build failure for a port and see messages like
/opt/local/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp:29:9: error: '_Atomic' is a C11 extension [-Werror,-Wc11-extensions] typedef _Atomic( boost::int_least32_t ) atomic_int_least32_t;
that seems to be resolved by this commit and is, therefore, likely available for version after 1.72.
Is the plan to keep boost
following the latest version and add boostXYZ
to keep older ones around? To maintain the status quo in MacPorts one would need to rename the current boost
port to boost172
, update all ports that depend on it to that new name, and then update boost
to the latest version - correct? Maintainers can then check whether "their" port builds with boost 1.76 and, if so, change the dependency. Is there at all a reason to generate ports for intermediate versions?
comment:12 Changed 4 years ago by reneeotten (Renee Otten)
Cc: | reneeotten added |
---|
comment:13 Changed 4 years ago by michaelld (Michael Dickens)
Yes that's still my hope ... not sure when I'll get to this, but it would be good to get it done! The first step would be to create the boost171
port & move all current ports to use it instead of boost
. Then we could start adding in boostXYZ
& boost
(latest release) ports, which would be standalone & we could then update any port that depends on Boost to whatever boostXYZ
it works with. Eventually we'd want to deprecate older boostXYZ
. This will be a bit of a pain to maintain for older OSX / macOS, but it provides the most robust solution that allows us to easily update boost
for development purposes.
comment:14 Changed 3 years ago by mascguy (Christopher Nielsen)
Description: | modified (diff) |
---|---|
Owner: | set to michaelld |
Status: | new → assigned |
Summary: | Boost: update to 1.74.0 → Boost: update to 1.76.0 |
https://github.com/macports/macports-ports/pull/5996