Skip to content

Conversation

@fabianbs96
Copy link
Member

The install does not install libraries into ${CMAKE_INSTALL_PREFIX}/lib/phasar, but directly into ${CMAKE_INSTALL_PREFIX}/lib.
So, the linker rpath should point there as well

@fabianbs96 fabianbs96 requested a review from vulder February 22, 2023 08:11
@fabianbs96 fabianbs96 requested a review from MMory as a code owner February 22, 2023 08:11
@fabianbs96 fabianbs96 self-assigned this Feb 22, 2023
@vulder
Copy link
Collaborator

vulder commented Feb 22, 2023

@MMory What is the desired location when you package phasar? The RPATH should be correct, however, I'm not sure if you want to directly install into lib, so I'll just wanted to point that out.

@MMory
Copy link
Member

MMory commented Feb 27, 2023

For testing, I have set CMAKE_INSTALL_PREFIX to /opt/phasar. When doing so, all of phasars libs are installed to /opt/phasar/lib64, but the schema validator is installed to /opt/phasar/lib. The RPATH is set to /opt/phasar/lib64, leaving the schema validator unresolved. lib seems to be hardcoded on the schema validator side. @fabianbs96 what do you think we should do?

@fabianbs96 fabianbs96 changed the title Fix RPATH for install Draft: Fix RPATH for install Mar 1, 2023
@fabianbs96 fabianbs96 marked this pull request as draft March 1, 2023 17:33
@fabianbs96
Copy link
Member Author

Thanks @MMory for that info. That is indeed an issue.
I marked this PR as draft again, as it seems there is more work to be done.
We should also think about whether it is a good idea to install external dependencies at all

@fabianbs96 fabianbs96 added bug Something isn't working tooling dependencies Pull requests that update a dependency file labels Mar 1, 2023
Copy link
Member

@MMory MMory left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@vulder vulder marked this pull request as ready for review March 16, 2023 14:19
@vulder vulder merged commit 96d8cb1 into development Mar 16, 2023
@vulder vulder deleted the f-FixRPath branch March 16, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants