Skip to content

rmw_implementation pulls every RMW as a run dependency #257

Backlog

Description

@gordon-n-stevenson

On Jazzy, ros2-rmw-implementation 2.15.6 (build np2py312h1bab3cf_25, linux-64) has these run dependencies:

  • ros2-rmw-connextdds
  • ros2-rmw-cyclonedds-cpp
  • ros2-rmw-fastrtps-cpp
  • ros2-rmw-fastrtps-dynamic-cpp

Upstream's package.xml lists the four as build_depend, plus <group_depend>rmw_implementation_packages</group_depend>. vinca adds the members of a group to both the host and the run requirements (group_dependencies in vinca/recipes.py), which is where the run dependencies come from.

librmw_implementation.so links none of them. It loads the RMW named by RMW_IMPLEMENTATION, or the default, at run time. So an environment that only ever uses Fast DDS still installs Cyclone DDS, iceoryx and the Connext RMW. Repacking the package without ros2-rmw-connextdds and ros2-rmw-cyclonedds-cpp took 15 packages out of a linux-64 environment, and Fast DDS publish and subscribe still work.

Proposal

Keep only the default RMW as a run dependency of rmw_implementation, with a remove_run entry in patch/dependencies.yaml, and leave the other RMW packages installable by name. The host requirements would stay as they are, so the build does not change.

If typical installs should keep the current behaviour, ros-base could list the other RMWs explicitly, so that only minimal installs change.

I can open a PR if this direction is acceptable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions