Skip to content

Reintroduce library_path.sh patches from humble to fix LD_LIBRARY_PATH pollution#233

Closed
Ryan4253 wants to merge 1 commit into
RoboStack:mainfrom
Ryan4253:main
Closed

Reintroduce library_path.sh patches from humble to fix LD_LIBRARY_PATH pollution#233
Ryan4253 wants to merge 1 commit into
RoboStack:mainfrom
Ryan4253:main

Conversation

@Ryan4253

@Ryan4253 Ryan4253 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Closes #228

As title (reasoning are addressed in the issue). This restores the humble patches that were deleted in this commit. I couldn't find a reason why these patches were deleted rather than migrated to Jazzy unfortunately

There are three patches in humble that touches library_path.sh:

  • ament-package - The patch that deletes library_path.sh is taken from humble. The second hunk that modifies templates.py to use importlib for file operations is already modernized in Jazzy so I omitted it.
  • ament-cmake-core - The patch is taken verbatim from humble
  • ros-workspace - The patch with equivalent content already exists for jazzy here

Verification:

  • Both patches pass git apply --check
  • I simulated the post rebuild state by removing all library_path.{sh, dsv} and their local_setup references. $CONDA_PREFIX/lib no longer appears in LD_LIBRARY_PATH, ros2 / rclpy still load, and system binaries like git now runs

Note: A rebuild of all packages that uses library_path.sh will likely be needed after this merge

@Ryan4253

Copy link
Copy Markdown
Contributor Author

The CI is failing because diagnostics_remote_logging failed to build. While this was added as an ignore to vinca.yaml it seems like the newest version of diagnostics (4.2.7) adds it as a dependency so it was pulled in transitively.

I took a look around different PRs and the windows CI seems to have been failing for a while. Should be irrelevant to this PR. A proper fix would be to patch diagnostics_remote_logging or to exclude it as a diagnostics dep from windows too.

@Tobias-Fischer

Copy link
Copy Markdown
Contributor

I'm happy to cherry-pick this into #212

@Ryan4253

Copy link
Copy Markdown
Contributor Author

Feel free to do whatever to get this landed asap

@Tobias-Fischer

Copy link
Copy Markdown
Contributor

cherry-picked

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.

ros-jazzy missing ament-package.patch which results in LD_LIBRARY_PATH being polluted with $CONDA_PREFIX/lib

2 participants