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

Fix problem with Googletest's LIBRARY_OUTPUT_DIRECTORY #1135

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

roehling
Copy link
Contributor

@roehling roehling commented Feb 22, 2021

The horribly maintained CMake files which are shipped with Googletest
override the library output directory to ${CMAKE_BINARY_DIR}/lib, which
points to the top-level build directory (it should have been
CMAKE_CURRENT_BINARY_DIR).

Unfortunately, that directory is used by setuptools as staging area for
Python modules, and setup.py install will happily install everything it
finds in the lib/ folder, including the libgtest.so binary. Among
others, this has bitten PR2/pr2_mechanism#343 and ros/geometry#223

This PR fixes the output location to something sane(ish).

The horribly maintained CMake files which are shipped with Googletest
override the library output directory to ${CMAKE_BINARY_DIR}/lib, which
points to the top-level build directory (it should have been
CMAKE_CURRENT_BINARY_DIR).

Unfortunately, that directory is used by setuptools as staging area for
Python modules, and setup.py install will happily install everything it
finds in the lib/ folder, including the libgtest.so binary. Among
others, this has bitten PR2/pr2_mechanism#343 and ros/geometry#223

This PR fixes the output location to something sane(ish).
@v4hn
Copy link
Contributor

v4hn commented Feb 22, 2021

Thanks for looking into this Timo! You're proving the point that talking to colleagues about an issue at times resolves the issue 😄 💐

@jspricke
Copy link
Member

Thanks! Please rebuild ros-noetic-controller-manager-tests, ros-noetic-pr2-controller-manager, ros-noetic-tf after releasing this.
Found using: ros/pool/main/r$ for f in ros-noetic-*/*.deb; do dpkg-deb -c "$f" | grep -q "python3/dist-packages/libgtest.so" && echo "$f"; done

@davefeilseifer
Copy link

was this rebuild done? it seems the most recent noetic sync did not fix this problem. Installing both ros-noetic-pr2-mechanism is still showing a conflict

@roehling
Copy link
Contributor Author

@davefeilseifer I doubt it, the PR is still unmerged.

@davefeilseifer
Copy link

this is holding up prerelease testing for several other pr2 packages, is there anything that can be done to hurry this along?

@v4hn
Copy link
Contributor

v4hn commented Mar 18, 2021

ping @mjcarroll @dirk-thomas

@dirk-thomas
Copy link
Member

ping

@v4hn I am not a maintainer of this repository anymore.

@peci1
Copy link
Contributor

peci1 commented Apr 17, 2021

@tfoote @mjcarroll This has been holding the whole Moveit and dependent packages from Noetic release for more than a month...

@fmauch
Copy link

fmauch commented Jun 7, 2021

Any chance this would get applied to melodic, as well? We've also stumbled upon this in our ros-melodic package builds on Archlinux (see ros-melodic-arch/ros-melodic-tf#6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants