After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 781527 - build: Add rpath on mutter's private library directory to some more libraries
build: Add rpath on mutter's private library directory to some more libraries
Status: RESOLVED DUPLICATE of bug 768781
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-04-20 11:49 UTC by Iain Lane
Modified: 2017-04-20 17:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Add rpath on mutter's private library directory to some more libraries (1.84 KB, patch)
2017-04-20 11:50 UTC, Iain Lane
none Details | Review

Description Iain Lane 2017-04-20 11:49:59 UTC
I tried to build gnome-shell in jhbuild on Ubuntu and it failed like this.

What do you think of this fix? It's a bit annoying that `-rpath' doesn't work, because that is used elsewhere in the file, but this fixes it for me. Maybe you know of a different way?
Comment 1 Iain Lane 2017-04-20 11:50:04 UTC
Created attachment 350118 [details] [review]
build: Add rpath on mutter's private library directory to some more libraries

The build may fail with:

  [...]/src/tmp-introspectodvrhpz5/.libs/Shell-0.1: error while loading
  shared libraries: libmutter-clutter-0.so: cannot open shared object
  file: No such file or directory

because of missing RPATH/RUNPATH on some libraries meaning the dynamic
linker can't find libmutter-clutter-N.so.

Pass this to LDFLAGS so that it's added and found.

(-R is needed rather than -rpath because there's already a -rpath passed
in by automake and we get "libtool: link: warning: ignoring multiple
`-rpath's for a libtool library". Tip from
https://lists.gnu.org/archive/html/libtool/2008-11/msg00008.html.)
Comment 2 Florian Müllner 2017-04-20 17:35:41 UTC
Assuming this is a duplicate of bug 768781.

*** This bug has been marked as a duplicate of bug 768781 ***
Comment 3 Iain Lane 2017-04-20 17:45:56 UTC
Looks like it. I searched and didn't find that.

Maybe someone could review the patch there then?