evolution/evolution-shared-nss-db.patch
OBS User autobuild ca4dfa5662 Accepting request 27071 from GNOME:Factory
Copy from GNOME:Factory/evolution based on submit request 27071 from user dimstar

OBS-URL: https://build.opensuse.org/request/show/27071
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/evolution?expand=0&rev=76
2009-12-18 12:57:58 +00:00

41 lines
1.6 KiB
Diff

Index: evolution-2.29.3.1/configure.ac
===================================================================
--- evolution-2.29.3.1.orig/configure.ac
+++ evolution-2.29.3.1/configure.ac
@@ -910,6 +910,9 @@ if test "x${enable_nss}" = "xyes" || tes
AC_DEFINE(ENABLE_SMIME,1,[Define if SMIME should be enabled])
msg_smime="yes (Mozilla NSS)"
fi
+
+ mozilla_nss="$mozilla_nss nss-shared-helper"
+
AC_DEFINE(HAVE_NSS,1,[Define if you have NSS])
AC_DEFINE(HAVE_SSL,1,[Define if you have a supported SSL library])
AC_DEFINE_UNQUOTED(MOZILLA_NSS_LIB_DIR,"`$PKG_CONFIG --variable=libdir $mozilla_nss`",[Define to the full path of mozilla nss library])
Index: evolution-2.29.3.1/smime/lib/e-cert-db.c
===================================================================
--- evolution-2.29.3.1.orig/smime/lib/e-cert-db.c
+++ evolution-2.29.3.1/smime/lib/e-cert-db.c
@@ -73,6 +73,7 @@
#include "e-util/e-dialog-utils.h"
#include "e-util/e-util-private.h"
#include <libedataserverui/e-passwords.h>
+#include <nss-shared-helper.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -166,7 +167,12 @@ initialize_nss (void)
#endif
/* we initialize NSS here to make sure it only happens once */
- success = (SECSuccess == NSS_InitReadWrite (evolution_dir_path));
+ success = (SECSuccess == nsshelp_open_db ("evolution", evolution_dir_path, 0));
+
+ if (!success) {
+ g_warning ("Opening non-shared cert database");
+ success = (SECSuccess == NSS_InitReadWrite (evolution_dir_path));
+ }
if (!success) {
success = (SECSuccess == NSS_Init (evolution_dir_path));
if (success)