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

build: remove boost_python from the standard link list. #15344

Closed

Conversation

wjwithagen
Copy link
Contributor

  • Cmake and Boost return a list of libraries to liink in
    Boost_LIBRARIES. Under FreeBSD it also contains libboost-python.
    Which is not what is expect.
    So we remove this entry from the list.

Signed-off-by: Willem Jan Withagen wjw@digiware.nl

 - Cmake and Boost return a list of libraries to liink in
   Boost_LIBRARIES. Under FreeBSD it also contains libboost-python.
   Which is not what is expect.
   So we remove this entry from the list.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
@wjwithagen wjwithagen requested a review from tchaikov May 28, 2017 15:42
@@ -597,6 +597,10 @@ set(Boost_USE_MULTITHREADED ON)
find_package(Boost 1.61 COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
include_directories(SYSTEM ${PROJECT_BINARY_DIR}/include)
if(FREEBSD)
list(REMOVE_ITEM Boost_LIBRARIES "/usr/local/lib/libboost_python.so")
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of making a surgery on Boost_LIBRARIES, i'd recommend only link the necessary boost libs. i will prepare another PR later 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.

@tchaikov
Make sense. Prevents dependany on what is embeded in the default stuff that comes with the packages. But note that I'm using the SYSTEM stuff, so I have no idea how that impacts your solution.

Copy link
Contributor

Choose a reason for hiding this comment

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

@tchaikov tchaikov self-assigned this May 28, 2017
@tchaikov
Copy link
Contributor

@wjwithagen if you are happy with #15346, we can close this PR. as it supersedes this one.

@wjwithagen
Copy link
Contributor Author

@tchaikov
You have closed #15346 as well....
So I'm sort of lost in the bundle of PRs trying to fix this and other stuff.
I like the idea of only loading the list with things that are required.
But would suggest to move the WITH_MGR for boost to the mgr CMake files.
And then only use that for the ceph_mgr.
And perhaps there are more tools that need a bit more careful handeling.

And then still do I need to add -lpython to the parts where libboost_python is linked.

@tchaikov
Copy link
Contributor

tchaikov commented May 29, 2017

@wjwithagen i agree with you. see #15225, i believe it would address your issue. my changes are moved there.

ahh, i was wrong. see #15347. i reopened it. sorry for the confusion.

@tchaikov
Copy link
Contributor

tchaikov commented Jun 5, 2017

since #15347 is merged, i am closing this one.

@tchaikov tchaikov closed this Jun 5, 2017
@wjwithagen wjwithagen deleted the wip-wjw-freebsd-bootspython branch January 23, 2019 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants