-
Notifications
You must be signed in to change notification settings - Fork 330
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
Make demo_nodes_cpp_native install stuff only when it builds #590
Make demo_nodes_cpp_native install stuff only when it builds #590
Conversation
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left one non-blocking comment. I'll let you decide whether to accept it. Otherwise, looks good to me with green CI.
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
CI (build: CI (CycloneDDS only build: |
@Mergifyio backport humble |
✅ Backports have been created
|
* Make demo_nodes_cpp_native install stuff only when it builds Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> * doing nothing -> skipping Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> (cherry picked from commit 74db664)
…591) * Make demo_nodes_cpp_native install stuff only when it builds Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> * doing nothing -> skipping Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> (cherry picked from commit 74db664) Co-authored-by: Shane Loretz <sloretz@osrfoundation.org>
* Make demo_nodes_cpp_native install stuff only when it builds Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> * doing nothing -> skipping Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
* Make demo_nodes_cpp_native install stuff only when it builds Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> * doing nothing -> skipping Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> Signed-off-by: Bey Hao Yun <beyhy94@gmail.com>
This fixes a problem when using the tarball produced by this job: https://build.ros2.org/view/Hci/job/Hci__nightly-cyclonedds_ubuntu_jammy_amd64/
Rosdep sees
demo_nodes_cpp_native
requiresrmw_fastrtps_cpp
, but the tarball doesn't have that package. This causes rosdep to fail to find a system dependency with that name.The
ament_package()
call installs the package.xml and an ament_index entry for thedemo_nodes_cpp_native
package, but I don't think it should because the package didn't build anything. This usesreturn()
to preventament_package()
from being called whenrmw_fastrtps_cpp
isn't found.