provide and support a top-level library package for libmozjs (Was: Unable to use libmozjs.so in an application, because of library path problem.)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
XULRunner |
Confirmed
|
Unknown
|
|||
mozjs (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: xulrunner-1.9
source package: xulrunner-1.9
version: 1.9.0.1
ubuntu 8.04 and 8.10
I'm working on a project which depends on xulrunner and spidermonkey (libmozjs). I use ubuntu 8.04 and xulrunner 1.9 as my development environment. The problem is, libmozjs.so is in /usr/lib/
The content of mozilla-js.pc provided by xulrunner-1.9-dev package:
----8<-
prefix=/usr
sdkdir=
includedir=
Name: JavaScript
Description: The Mozilla JavaScript Library
Version: 1.9.0.1
Requires: nspr >= 3.12.0
Libs: -L${sdkdir}/lib -lmozjs
Cflags: -I${includedir}
----8<-
You can see that there is no libdir definition in this file, and the -L parameter points to /usr/lib/
Below is mozilla-js.pc from openSUSE 11:
----8<-
prefix=/usr
sdkdir=
libdir=
includedir=
Name: JavaScript
Description: The Mozilla JavaScript Library
Version: 1.9.0.3
Requires: nspr >= 4.7.1
Libs: -L${sdkdir}/lib -lmozjs
Cflags: -I${includedir}
----8<-
You can see that libdir is provided in this file and "/usr/lib64/
Then I can use the libdir as rpath in my application and is still ok after upgrading xulrunner to a newer version.
Besides the libdir issue, the Cflags in ubuntu's mozilla-js.pc is incorrect, which should be -I${includedir}
Both ubuntu 8.04 and 8.10 have this issue.
Changed in xulrunner-1.9: | |
assignee: | nobody → asac |
Changed in xulrunner-1.9 (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in xulrunner: | |
status: | Unknown → Confirmed |
Changed in xulrunner: | |
importance: | Unknown → Medium |
Changed in xulrunner: | |
importance: | Medium → Unknown |
xulrunner doesnt really ship a library in the "old" sense. xulrunner is more a sdk + a runner.
What is your use case? How do you currently try to link against it?