Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: fix boost build on ubuntu 16.10 yakkety #12143

Merged
merged 1 commit into from Nov 22, 2016

Conversation

bassam
Copy link
Contributor

@bassam bassam commented Nov 22, 2016

If the host system has boost version 1.61 or higher (as in the case
for ubuntu 16.10 yakkety) the ceph build is currently broken. it
will pickup the system boost libraries but use the headers from the
submodule.

This commit ensure that when WITH_SYSTEM_BOOST is OFF we always
use the boost libraries and headers built from the submodule.

Signed-off-by: Bassam Tabbara bassam.tabbara@quantum.com

If the host system has boost version 1.61 or higher (as in the case
for ubuntu 16.10 yakkety) the ceph build is currently broken. it
will pickup the system boost libraries but use the headers from the
submodule.

This commit ensure that when WITH_SYSTEM_BOOST is OFF we always
use the boost libraries and headers built from the submodule.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
@@ -460,7 +463,7 @@ if(WITH_MGR)
endif()

# require minimally the bundled version
find_package(Boost 1.61 COMPONENTS thread system regex random program_options date_time iostreams REQUIRED)
find_package(Boost 1.61 COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
Copy link
Contributor

Choose a reason for hiding this comment

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

where is BOOST_COMPONENTS coming from? this list should be the minimal set of components that ceph actually relies on

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it comes from a few lines above 3eef10b#diff-af3b638bc2a3e6c650974192a53c7291R459. It was there but never used. I assume the intention was to pass it to find_package so I went ahead and did that. Its unrelated to this PR however.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I introduced BOOST_COMPONENTS for that purpose, but lost track of it debugging builds. If it works correctly, it's slightly cleaner.

Copy link
Contributor

@mattbenjamin mattbenjamin left a comment

Choose a reason for hiding this comment

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

Looks valid. Builds for me on F23, and more importantly passed the build check.

@mattbenjamin mattbenjamin merged commit 5aa8121 into ceph:master Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants