boostorg / boostorg/property_tree
[bug] Boost 1.89.0 always build Serialization module
- Dominant language
- C++
- Stars
- 65
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
Greetings!
This bug was originally reported by @stevenwdv on the issue https://github.com/conan-io/conan-center-index/issues/28801.
When building Boost 1.89.0 from source, Boost Serialization is always built, even when configured not to be built. The same is not true for Boost 1.88.0, it works as expected: It does not generate boost_serialization when disabled;
BTW, I see no changes from 1.88.0 to 1.89.0: https://github.com/boostorg/serialization/compare/boost-1.88.0...boost-1.89.0 So it seems related to a transitive module.
### Environment
OS: Linux (Ubuntu 22.04)
Compiler: GCC 11
Arch: AMD64
Build Type: Release
B2 Options: `--without-serialization --without-graph --without-wave link=static`
### Steps to Reproduce
```
wget https://archives.boost.io/release/1.89.0/source/boost_1_89_0.tar.bz2
tar jxf boost_1_89_0.tar.bz2
cd boost_1_89_0/
./bootstrap.sh
./b2 --without-serialization --without-graph --without-wave link=static install --prefix=/tmp/install-boost
find /tmp/install-boost/lib -type f -name "*serialization*"
/tmp/install-boost/lib/libboost_serialization.a
```
### Build Log
Full build log shows disabled serialization, but installs `libboost_serialization.a`.
[boost-1.89.0-no-serialization.log](https://github.com/user-attachments/files/23301452/boost-1.89.0-no-serialization.log)
Regards.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.