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

ament-cmake-vendor-package: don't 'fix' cmake files #417

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Pleune
Copy link

@Pleune Pleune commented Jun 7, 2024

the ament cmake vendoring works by downloading files into the ros2_ws/install/opt/<package> folder, which is a local path. It then sets the CMAKE_PREFIX_PATH to point into this directory. However, the normal nixpkgs cmake setup renames the /opt/ chunk with /var/empty, which then breaks the CMAKE_PREFIX_PATH setup. since this is a local install, just dont "fix" the cmake paths.

I noticed this by trying to build https://github.com/ros2/rmw_zenoh, which uses the ament cmake vendoring, and therefore just simply does not build without this patch.

I had to apply this in the distro overlay files, as the vendoring package does not exist in foxy.

@Pleune Pleune force-pushed the ament_cmake_vendor_package_dont_fix_cmake branch 2 times, most recently from 8899187 to bfaca4f Compare July 9, 2024 14:05
@Pleune
Copy link
Author

Pleune commented Jul 9, 2024

Rebased and add patch for Jazzy. This is still needed to support rmw_zenoh.

@lopsided98
Copy link
Owner

This should go in ros2-overlay.nix

@Pleune Pleune force-pushed the ament_cmake_vendor_package_dont_fix_cmake branch from bfaca4f to 05c79f9 Compare August 6, 2024 19:33
@Pleune
Copy link
Author

Pleune commented Aug 6, 2024

Updated to apply in ros2-overlay.nix

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.

None yet

2 participants