New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runpath stripped on ninja install #4136
Comments
To set the install time rpath, use |
Is this a bug in gnome-boxes then in how it uses subprojects? |
@felipeborges bringing you into the loop here |
FWICT Debian guidelines seem to indicate that each package is responsible for installing non-public shared libraries to a secret location and is also responsible for adding rpaths. This would seem to indicate that if gnome-boxes builds subprojects, it should set this up properly. |
@jpakkane so, a bug in gnome-boxes then or the subprojects? which of those is supposed to set the |
Rpath is the property of the executable that is running, so in this case it should be set on |
If the subprojects are available as system libraries, then no rpath is needed in the binary. What's the idiomatic way to set rpath properly in this case? |
Something like: if dep_object.type_name() == 'internal'
# set up rpath
else
# deps comr from the system, no need for rpathing
endif |
Thanks @jpakkane |
Version: 0.47.2-1
gnome-boxes uses subprojects: https://gitlab.gnome.org/GNOME/gnome-boxes/tree/master/subprojects
In Debian, gtk-frdp and libovf-glib are not packaged as system libraries yet, so when building gnome-boxes the internal subprojects are used.
The binary in the build dir has
The two libraries are installed into pkglibdir and required by the binary:
After a ninja install, the runpath is gone from the binary. The result is, that the binary crashes, as it can't find the libraries.
The text was updated successfully, but these errors were encountered: