Skip to content

Fix genai libs duplication - #4472

Open
michalkulakowski wants to merge 1 commit into
mainfrom
mkulakow/fix_duplicated_libraries
Open

Fix genai libs duplication#4472
michalkulakowski wants to merge 1 commit 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
find /ovms_release/lib/ -iname '*.so*' -exec patchelf --debug --remove-rpath {} \;
find /ovms_release/lib/ -iname '*.so*' -exec patchelf --debug --set-rpath '$ORIGIN/../lib' {} \;
if [ "$FUZZER_BUILD" == "0" ]; then
patchelf --remove-rpath ./ovms
Comment thread create_package.sh
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
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
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' {} +
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.

2 participants