Package: mongodb
Severity: normal

The build system make assumptions that are only valid on ubuntu systems,
and are most probably wrong anywhere else.

For example, it assumes that if the headers are found in
/usr/include/mozjs, they are those of an old spidermonkey version.
This is plain wrong.

The rpath to /usr/lib*/xulrunner-1.9.1 is also pointless on Debian
systems.

Anyways, on Debian systems, you can build without xulrunner-dev, but
only libmozjs-dev, if you can get rid of these wrong assumptions.

e.g. with the following gross hack, it builds fine with libmozjs-dev
instead of xulrunner-dev, and doesn't get a useless rpath:

(IMHO, the proper fix would be to use the pkg-config information for
mozilla-js, falling back to using js-config (provided by upstream
standalone tracemonkey), and get the version information and proper
include directory from there)

--- mongodb-1.2.2.orig/scripting/engine_spidermonkey.h
+++ mongodb-1.2.2/scripting/engine_spidermonkey.h
@@ -47,10 +47,10 @@
 
 #else
 
-#include "js/jsapi.h"
-#include "js/jsobj.h"
-#include "js/jsdate.h"
-#include "js/jsregexp.h"
+#include "mozjs/jsapi.h"
+#include "mozjs/jsobj.h"
+#include "mozjs/jsdate.h"
+#include "mozjs/jsregexp.h"
 
 #endif
 
@@ -76,9 +76,8 @@
 #define SM18
 #endif
 
-#ifdef XULRUNNER
 #define SM181
-#endif
+#define XULRUNNER
 
 namespace mongo {
 



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to