Skip to content

Fix genai libs duplication - #4472

Open
michalkulakowski wants to merge 2 commits into
mainfrom
mkulakow/fix_duplicated_libraries
Open

Fix genai libs duplication#4472
michalkulakowski wants to merge 2 commits into
mainfrom
mkulakow/fix_duplicated_libraries

Conversation

@michalkulakowski

Copy link
Copy Markdown
Collaborator

🛠 Summary

JIRA/Issue if applicable.
Describe the changes.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Copilot AI lite review requested due to automatic review settings August 25, 2026 08:07

Copilot AI left a comment

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.

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

This PR adjusts the packaging script to reduce duplicated/broad ELF patching by narrowing which shared libraries have their RPATH modified during release packaging.

Changes:

  • Refactors patchelf invocation for ovms into a multi-line guarded block.
  • Limits patchelf RPATH updates to top-level .so* files in /ovms_release/lib using find ... -exec ... +.
  • Replaces a broad plugin glob with a find that targets lib*plugin.so* files.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread create_package.sh Outdated
Comment thread create_package.sh Outdated
Comment thread create_package.sh Outdated
Comment on lines +129 to +130
find /ovms_release/lib/ -maxdepth 1 -type f -iname '*.so*' -exec patchelf --debug --remove-rpath {} +
find /ovms_release/lib/ -maxdepth 1 -type f -iname '*.so*' -exec patchelf --debug --set-rpath '$ORIGIN/../lib' {} +
Comment thread create_package.sh Outdated
patchelf --debug --set-rpath '$ORIGIN' /ovms_release/lib/libopenvino.so
patchelf --debug --set-rpath '$ORIGIN' /ovms_release/lib/libopenvino_tokenizers.so
patchelf --debug --set-rpath '$ORIGIN' /ovms_release/lib/lib*plugin.so
find /ovms_release/lib -maxdepth 1 -type f -name 'lib*plugin.so*' -exec patchelf --debug --set-rpath '$ORIGIN' {} +
@michalkulakowski
michalkulakowski force-pushed the mkulakow/fix_duplicated_libraries branch 2 times, most recently from f1d87a2 to b4e260d Compare September 2, 2026 13:13
@michalkulakowski
michalkulakowski force-pushed the mkulakow/fix_duplicated_libraries branch from b4e260d to 0e43c5e Compare September 2, 2026 13:14
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

4 participants