openbsd-ports/www/mozilla-firefox/patches/patch-services_crypto_modules_WeaveCrypto_js
landry 433f3c4b5e Update to mozilla-firefox 5.0:
That's the first release following the new fast scheme of one major
release every 6 weeks..
Check out http://www.mozilla.com/en-US/firefox/5.0/releasenotes/ for
release notes. Note that it's still badly broken on sparc64, and
unlikely to be fixed soon... you still have www/firefox36.

Tested by (at least, probably forgetting some..) rpointel@, pea@,
ckuethe@ and myself on amd64, bluhm@ on i386 and ajacoutot@ on macppc
(thanks!)
ok rpointel@
2011-06-28 05:43:57 +00:00

31 lines
1.4 KiB
Plaintext

$OpenBSD: patch-services_crypto_modules_WeaveCrypto_js,v 1.2 2011/06/28 05:43:57 landry Exp $
Fix libnss3 opening
--- services/crypto/modules/WeaveCrypto.js.orig Fri May 27 18:12:42 2011
+++ services/crypto/modules/WeaveCrypto.js Tue May 31 22:18:26 2011
@@ -151,20 +151,19 @@ WeaveCrypto.prototype = {
Cc["@mozilla.org/psm;1"].getService(Ci.nsISupports);
// Open the NSS library.
- let path = ctypes.libraryName("nss3");
+ let path = '${LOCALBASE}/lib/libnss3.so';
// XXX really want to be able to pass specific dlopen flags here.
var nsslib;
try {
- this.log("Trying NSS library without path");
+ this.log("Trying NSS library with path " + path);
nsslib = ctypes.open(path);
} catch(e) {
// In case opening the library without a full path fails,
// try again with a full path.
- let file = Services.dirsvc.get("GreD", Ci.nsILocalFile);
- file.append(path);
- this.log("Trying again with path " + file.path);
- nsslib = ctypes.open(file.path);
+ let path2 = '${LOCALBASE}/lib/libnss3.so.${NSS_SO_VERSION}';
+ this.log("Trying again with path " + path2);
+ nsslib = ctypes.open(path2);
}
this.log("Initializing NSS types and function declarations...");