Skip to content

Conversation

@kou
Copy link
Member

@kou kou commented Oct 27, 2025

Rationale for this change

Boost 1.89.0 removed backward compatibility CMake package for Boost.System. Boost.System is header-only since Boost 1.69. So CMake package for Boost.System isn't needed but it's provided for backward compatibility.

CentOS 7 uses Boost 1.69. So we can drop support for Boost 1.68 or older.

What changes are included in this PR?

  • Require Boost 1.69 or later.
  • Remove system from COMPONENTS because Boost.System is header-only.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@github-actions
Copy link

⚠️ GitHub issue #47945 has been automatically assigned in GitHub to PR creator.

@kou kou added the CI: Extra Run extra CI label Oct 27, 2025
@kou kou force-pushed the cpp-boost-system branch from 5deedbf to ed1a930 Compare October 27, 2025 01:23
@kou
Copy link
Member Author

kou commented Oct 27, 2025

@lahwaacz Could you try this?

@lahwaacz
Copy link

@kou This seems to work, thanks!

Boost.System is header-only since Boost 1.69.

CentOS 7 uses Boost 1.69. So we can drop support for Boost 1.68 or
older.
@kou kou force-pushed the cpp-boost-system branch from ed1a930 to 5be3e60 Compare October 27, 2025 23:27
@kou
Copy link
Member Author

kou commented Oct 28, 2025

Thanks. I'll merge this in a few days if nobody objects this.

Copy link
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kou this looks good to me, I just have a question of something I don't understand.

gmock>=1.10.0
google-cloud-cpp>=1.34.0
gtest>=1.10.0
libboost-devel
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this!

# enable CMP0167 "The FindBoost module is removed."
# https://cmake.org/cmake/help/latest/policy/CMP0167.html with CMake
# 3.30.0 or later.
set(Boost_ADDITIONAL_VERSIONS
Copy link
Member

@raulcd raulcd Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we don't have to add "1.89.0" here.
I understand that we will have to remove this once CMake >= 3.30.0 but from https://cmake.org/cmake/help/latest/module/FindBoost.html it doesn't seem like 1.89.0 should not be added to this list. Do you know why this is not required?

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants