mongo / mongod as packaged can't load libmozjs.so
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mongodb (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Clint Byrum | ||
Maverick |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mongodb
As a workaround, I created a symbolic link to the xulrunner version of this library in /usr/lib.
This stops working and has to be relinked whenever xulrunner gets updated to a new version number.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mongodb 1:1.2.2-1
ProcVersionSign
Uname: Linux 2.6.32-19-generic x86_64
Architecture: amd64
Date: Tue Apr 6 21:57:33 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
LANG=en_CA.utf8
SHELL=/bin/bash
SourcePackage: mongodb
== SRU REPORT ==
=== IMPACT ===
The impact of this bug could be moderate, as we are removing the rpath link to a specific release of libmozjs.so and instead providing a wrapper that will find the library for the user. However, no running code is changing, just the startup mechanism.
=== DEV STATUS ===
This has been resolved in Maverick and the current dev branch by writing a wrapper script that finds the currently installed libmozjs.so and adds it to LD_LIBRARY_PATH. This solution will work going forward as long as the library maintains ABI compatibility, but that is an issue for xulrunner, not mongodb, and will affect many other packages as well.
=== PATCH STATUS ===
Patch is in development. See merge proposals when complete.
=== TEST CASE ===
* Install Ubuntu Server 10.04 without applying updates
* Check that xulrunner-1.9.2 is at version 1.9.2.3+
* Install package mongodb
* run 'mongo' -- should work
* Apply updates -- xulrunner-1.9.2 should be updated to 1.9.2.12+
* run 'mongo' -- this fails because the upstream version of xulrunner-1.9.2 has changed, and the rpath stored in these binaries is now invalid.
=== REGRESSION POTENTIAL ===
As the impact statement says, we are changing the startup behavior of the package in a fundamental way. However, the alternative is breaking the package every time a new version of xulrunner-1.9.2 is uploaded.
Related branches
- Micah Gersten (community): Needs Fixing
- Ubuntu branches: Pending requested
-
Diff: 244 lines (+92/-34)11 files modifiedSConstruct (+2/-2)
buildscripts/hacks_ubuntu.py (+4/-1)
debian/changelog (+16/-0)
debian/control (+2/-1)
debian/copyright (+21/-0)
debian/mongodb-clients.install (+8/-8)
debian/mongodb-clients.lintian (+0/-9)
debian/mongodb-server.install (+2/-3)
debian/mongodb-server.lintian (+0/-4)
debian/rules (+5/-6)
debian/xulwrapper (+32/-0)
- Stefano Rivera: Needs Fixing
- Ubuntu Sponsors: Pending requested
-
Diff: 131 lines (+58/-8)5 files modifiedSConstruct (+4/-4)
buildscripts/hacks_ubuntu.py (+4/-1)
debian/changelog (+13/-0)
debian/rules (+5/-3)
debian/xulwrapper (+32/-0)
tags: | added: patch |
Changed in mongodb (Ubuntu): | |
assignee: | nobody → Emmet Hikory (persia) |
Changed in mongodb (Ubuntu): | |
status: | Incomplete → Triaged |
assignee: | Emmet Hikory (persia) → nobody |
importance: | Undecided → Medium |
Changed in mongodb (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Clint Byrum (clint-fewbar) |
Changed in mongodb (Ubuntu): | |
status: | In Progress → Confirmed |
assignee: | Clint Byrum (clint-fewbar) → nobody |
Changed in mongodb (Ubuntu): | |
assignee: | nobody → Micah Gersten (micahg) |
status: | Confirmed → In Progress |
description: | updated |
Changed in mongodb (Ubuntu Lucid): | |
assignee: | nobody → Clint Byrum (clint-fewbar) |
status: | Fix Committed → In Progress |
tags: |
added: verification-done removed: verification-needed |
Same for me.
$ find /usr/lib|grep libmozjs firefox- 3.6.2/libmozjs. so xulrunner- devel-1. 9.2.2/sdk/ lib/libmozjs. so xulrunner- 1.9.2.2/ libmozjs. so
/usr/lib/
/usr/lib/
/usr/lib/