Skip to content

doxygen mapping adds graphviz as a run dependency of packages with <doc_depend>doxygen</doc_depend> (e.g. rsl) #256

Backlog

Description

@gordon-n-stevenson

On Jazzy, ros2-rsl 1.3.0 (latest linux-64 build np2py314h6ba3a81_31; the generation 25 py312 build is the same) has graphviz >=14.1.2,<15.0a0 as a run dependency, which brings GTK3, cairo, pango and fonts into the environment.

RSL's package.xml does not mention graphviz. It only has <doc_depend>doxygen</doc_depend>, and robostack.yaml maps doxygen to [doxygen, graphviz]. The generated recipe puts both in host, and graphviz's run_exports then add it to run.

Neither is used. RSL's docs target (doxygen_add_docs(docs ...), no ALL) is not part of the default build, and librsl.so links only libstdc++, libm, libgcc_s and libc. Repacking the package without graphviz works for us.

These other Jazzy packages also have a graphviz run dependency: ros2-coal, ros2-eigenpy, ros2-jrl-cmakemodules, ros2-pinocchio, ros2-proxsuite, ros2-visp, ros-jazzy-hpp-fcl. I have not checked whether each comes from the same mapping. ros2-qt-dotgraph and ros2-tf2-tools use graphviz themselves.

Proposal

Map doxygen to [doxygen] only. A package that needs graphviz at run time declares it through its own key (graphviz, python3-pygraphviz).

If graphviz should stay available for packages that render diagrams in their docs, a narrower fix is remove_host: [graphviz] for rsl in patch/dependencies.yaml.

I can open a PR for either if one 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