Skip to content

[rules score] rework dot integration#288

Open
hoe-jo wants to merge 1 commit into
mainfrom
joho_rework_dot_integration
Open

[rules score] rework dot integration#288
hoe-jo wants to merge 1 commit into
mainfrom
joho_rework_dot_integration

Conversation

@hoe-jo

@hoe-jo hoe-jo commented Jun 22, 2026

Copy link
Copy Markdown
Contributor
  • remove graphviz directive support
  • change lobster report to plantuml directive
  • use dot for rendering in plantuml (smetana as fallback)

- remove graphviz directive support
- change lobster report to plantuml directive
- use dot for rendering in plantuml (smetana as fallback)
@hoe-jo hoe-jo force-pushed the joho_rework_dot_integration branch from a02b34c to 9291581 Compare June 22, 2026 13:38
Comment on lines +207 to +217
_dot_path = Path(_resolve_execroot_path(os.environ["GRAPHVIZ_DOT"]))
# Derive library search paths from the binary location so the rule passes
# only GRAPHVIZ_DOT and conf.py stays self-contained.
# The graphviz cmake deb installs:
# usr/bin/dot_builtins ← GRAPHVIZ_DOT points here
# usr/lib/*.so* ← LD_LIBRARY_PATH (core shared libs)
# usr/lib/graphviz/*.so* ← LTDL_LIBRARY_PATH (layout/render plugins)
_usr_dir = _dot_path.parent.parent # usr/bin → parent → usr
os.environ["LD_LIBRARY_PATH"] = str(_usr_dir / "lib")
os.environ["LTDL_LIBRARY_PATH"] = str(_usr_dir / "lib" / "graphviz")
plantuml = f"{plantuml_path} -graphvizdot {_dot_path}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really nasty...
Better go into this direction:
eclipse-score/communication#548

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants