Repository navigation
Place doxygen (and its expanded graphviz) in build instead of host - #204
Open
gordon-n-stevenson wants to merge 1 commit into
Open
gordon-n-stevenson wants to merge 1 commit into
gordon-n-stevenson wants to merge 1 commit into
Conversation
robostack.yaml maps doxygen to [doxygen, graphviz]. Keeping them in requirements.host on native builds triggers conda-forge graphviz'\''s run_exports (leaking graphviz/GTK3/cairo/pango into requirements.run) and runs graphviz'\''s post-link hooks inside $PREFIX (leaking cache files into built packages). Route build/buildtool dependencies resolving to doxygen directly to requirements.build for both native and cross builds, while keeping direct graphviz dependencies in host/run unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
|
Wouldn't it better ro change build_depend and buildtool_depend to go in build instead of host, instead of having custom per-package logic? |
Member
|
Or actually, I did a quick check and it seems that build_depend is tipically used for header only deps so it should go in host, while indeed buildtool_depend seems to contain tipically actuall build toll dependencies. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Route
doxygenbuild/buildtool dependencies (and any companion packages it expands to viarobostack.yaml, notablygraphviz) intorequirements.buildinstead ofrequirements.host, unconditionally for both native and cross builds.Motivation
In
RoboStack/robostack,shared/robostack.yamlmaps:Previously,
vincaresolveddoxygenintorequirements.hostand only moveddoxygenitself tobuildwhen cross-compiling (build_platform != target_platform). On native builds (and forgraphvizon all builds),graphvizstayed inrequirements.host.Because
conda-forge'sgraphvizdefinesrun_exports: pin_subpackage('graphviz', max_pin='x')and runs GTK/gdk-pixbuf/glib/icon cache post-link hooks in$PREFIX:graphviz(along with GTK3, cairo, pango, librsvg, fonts) leaks intorequirements.runof every ROS package declaring<build_depend>doxygen</build_depend>or<buildtool_depend>doxygen</buildtool_depend>.$PREFIXand get packaged into the built.condaarchive.This currently affects 7–9 packages per distro in
robostack-{humble,jazzy,lyrical,rolling}(e.g.ros2-rsl,ros2-coal,ros2-eigenpy,ros2-jrl-cmakemodules,ros2-pinocchio,ros2-proxsuite,ros2-visp,ros2-hpp-fcl).doxygenanddotare purely build-machine CLI tools (already placed inbuildfor cross-compilation); placing them unconditionally inrequirements.buildavoids both therun_exportsleak and$PREFIXcache pollution while keeping directgraphvizdependencies inhost/rununtouched.Testing
vinca/test_recipes.py(SYSTEM_PACKAGES["doxygen"] = ["doxygen", "graphviz"]) and added tests coveringbuild_depend/buildtool_dependondoxygenand directbuild_dependongraphviz.pytest vinca/: 355 passed, 4 skipped.(Note:
pixi-build-ros/vinca-rshas the same native/crossdoxygenrule incrates/pixi_build_ros/src/requirements.rsand would benefit from the same change.)