$OpenBSD: patch-services_crypto_modules_WeaveCrypto_js,v 1.4 2012/06/11 15:29:56 landry Exp $
Fix libnss3 opening
--- services/crypto/modules/WeaveCrypto.js.orig	Wed May  2 05:17:12 2012
+++ services/crypto/modules/WeaveCrypto.js	Wed May  9 23:06:35 2012
@@ -157,12 +157,12 @@ 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,
