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 643799 - need to detect mozjs status for debian/ubuntu
need to detect mozjs status for debian/ubuntu
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-03 17:18 UTC by Colin Walters
Modified: 2012-09-06 22:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Colin Walters 2011-03-03 17:18:13 UTC
For GP Linux forks which put spidermonkey in a versioned directory like /usr/lib/xulrunner-1.2.3 and also do *not* add it to /etc/ld.so.conf.d, we need to add it to LD_LIBRARY_PATH dynamically.

There are two approaches to dealing with this; compile time and run time.  

* compile time: (for ELF binaries) detect where libmozjs.so lives and add an rpath to it. 
* runtime: Run pkg-config

While compile time would be nice, unfortunately we can't do it for gnome-shell because we're a plugin for mutter.  So what we should do is:

* Detect this situation in configure
* Use it to generate a wrapper script /usr/libexec/gnome-shell/mozjs-wrapper
* Use the wrapper at both compile time (for introspection dumping) and in the installed /usr/bin/gnome-shell script.
Comment 1 Giovanni Campagna 2011-03-05 13:13:16 UTC
Why can't it be done compile time?
It works for libgnome-bluetooth-applet, which is installed in $(libdir)/gnome-bluetooth, and compile-time linked with libgnome-shell.
Comment 2 Giovanni Campagna 2012-09-06 22:00:15 UTC
We have a binary, and we use libjs185, not xulrunner. Anything else is a disto bug now!