rpms/evolution-data-server/devel evolution-data-server-1.11.90-glibc-open.patch, NONE, 1.1 evolution-data-server.spec, 1.179, 1.180

Matthew Barnes (mbarnes) fedora-extras-commits at redhat.com
Wed Aug 15 17:10:41 UTC 2007


Author: mbarnes

Update of /cvs/pkgs/rpms/evolution-data-server/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19605

Modified Files:
	evolution-data-server.spec 
Added Files:
	evolution-data-server-1.11.90-glibc-open.patch 
Log Message:

* Mon Aug 13 2007 Matthew Barnes <mbarnes at redhat.com> - 1.11.90-1.fc8
- Update to 1.11.90
- Add patch for GNOME bug #466987 (glibc redefines "open").
- Remove patch for GNOME bug #415891 (fixed upstream).


evolution-data-server-1.11.90-glibc-open.patch:

--- NEW FILE evolution-data-server-1.11.90-glibc-open.patch ---
--- evolution-data-server-1.11.90/libdb/dbm/dbm.c.glibc-open	2007-07-05 02:02:46.000000000 -0400
+++ evolution-data-server-1.11.90/libdb/dbm/dbm.c	2007-08-15 12:45:08.000000000 -0400
@@ -240,7 +240,7 @@ __db_ndbm_open(file, oflags, mode)
 	if ((ret = dbp->set_pagesize(dbp, 4096)) != 0 ||
 	    (ret = dbp->set_h_ffactor(dbp, 40)) != 0 ||
 	    (ret = dbp->set_h_nelem(dbp, 1)) != 0 ||
-	    (ret = dbp->open(dbp, NULL,
+	    (ret = (*dbp->open)(dbp, NULL,
 	    path, NULL, DB_HASH, __db_oflags(oflags), mode)) != 0) {
 		__os_set_errno(ret);
 		return (NULL);
--- evolution-data-server-1.11.90/libedataserver/e-dbhash.c.glibc-open	2007-07-05 02:01:55.000000000 -0400
+++ evolution-data-server-1.11.90/libedataserver/e-dbhash.c	2007-08-15 12:45:08.000000000 -0400
@@ -33,9 +33,9 @@ e_dbhash_new (const char *filename)
 		return NULL;
 	}
 
-	rv = db->open (db, NULL, filename, NULL, DB_HASH, 0, 0666);
+	rv = (*db->open) (db, NULL, filename, NULL, DB_HASH, 0, 0666);
 	if (rv != 0) {
-		rv = db->open (db, NULL, filename, NULL, DB_HASH, DB_CREATE, 0666);
+		rv = (*db->open) (db, NULL, filename, NULL, DB_HASH, DB_CREATE, 0666);
 
 		if (rv != 0) {
 			db->close (db, 0);
--- evolution-data-server-1.11.90/addressbook/backends/file/e-book-backend-file.c.glibc-open	2007-08-15 12:54:20.000000000 -0400
+++ evolution-data-server-1.11.90/addressbook/backends/file/e-book-backend-file.c	2007-08-15 12:54:58.000000000 -0400
@@ -1100,7 +1100,7 @@ e_book_backend_file_load_source (EBookBa
 				(void *(*)(void *, size_t))g_try_realloc,
 				g_free);
 
-		db_error = env->open (env, NULL, DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_THREAD, 0);
+		db_error = (*env->open) (env, NULL, DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_THREAD, 0);
 		if (db_error != 0) {
 			env->close(env, 0);
 			g_warning ("db_env_open failed with %s", db_strerror (db_error));
@@ -1125,7 +1125,7 @@ e_book_backend_file_load_source (EBookBa
 		return db_error_to_status (db_error);
 	}
 
-	db_error = db->open (db, NULL, filename, NULL, DB_HASH, DB_THREAD, 0666);
+	db_error = (*db->open) (db, NULL, filename, NULL, DB_HASH, DB_THREAD, 0666);
 
 	if (db_error == DB_OLD_VERSION) {
 		db_error = e_db3_utils_upgrade_format (filename);
@@ -1137,7 +1137,7 @@ e_book_backend_file_load_source (EBookBa
 			return db_error_to_status (db_error);
 		}
 
-		db_error = db->open (db, NULL, filename, NULL, DB_HASH, DB_THREAD, 0666);
+		db_error = (*db->open) (db, NULL, filename, NULL, DB_HASH, DB_THREAD, 0666);
 	}
 
 	bf->priv->file_db = db;
@@ -1154,7 +1154,7 @@ e_book_backend_file_load_source (EBookBa
                 	g_free (filename);
                 	return GNOME_Evolution_Addressbook_OtherError;
         	}
-		db_error = db->open (db, NULL, filename, NULL, DB_HASH, DB_RDONLY | DB_THREAD, 0666);
+		db_error = (*db->open) (db, NULL, filename, NULL, DB_HASH, DB_RDONLY | DB_THREAD, 0666);
 
 		if (db_error != 0 && !only_if_exists) {
 			int rv;
@@ -1181,7 +1181,7 @@ e_book_backend_file_load_source (EBookBa
 				return GNOME_Evolution_Addressbook_OtherError;
 			}
 
-			db_error = db->open (db, NULL, filename, NULL, DB_HASH, DB_CREATE | DB_THREAD, 0666);
+			db_error = (*db->open) (db, NULL, filename, NULL, DB_HASH, DB_CREATE | DB_THREAD, 0666);
 			if (db_error != 0) {
 				db->close (db, 0);
 				g_warning ("db->open (... DB_CREATE ...) failed with %s", db_strerror (db_error));


Index: evolution-data-server.spec
===================================================================
RCS file: /cvs/pkgs/rpms/evolution-data-server/devel/evolution-data-server.spec,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -r1.179 -r1.180
--- evolution-data-server.spec	14 Aug 2007 16:09:13 -0000	1.179
+++ evolution-data-server.spec	15 Aug 2007 17:10:06 -0000	1.180
@@ -63,6 +63,9 @@
 # RH bug #243296
 Patch21: evolution-data-server-1.11.5-fix-64bit-acinclude.patch
 
+# GNOME bug #466987
+Patch22: evolution-data-server-1.11.90-glibc-open.patch
+
 ### Dependencies ###
 
 Requires: GConf2
@@ -151,6 +154,7 @@
 %patch19 -p1 -b .camel-folder-symmary-crash
 %patch20 -p1 -b .camel-certdb-nss-cert-get
 %patch21 -p1 -b .fix-64bit-acinclude
+%patch22 -p1 -b .glibc-open
 
 mkdir -p krb5-fakeprefix/include
 mkdir -p krb5-fakeprefix/lib
@@ -386,6 +390,7 @@
 %changelog
 * Mon Aug 13 2007 Matthew Barnes <mbarnes at redhat.com> - 1.11.90-1.fc8
 - Update to 1.11.90
+- Add patch for GNOME bug #466987 (glibc redefines "open").
 - Remove patch for GNOME bug #415891 (fixed upstream).
 
 * Wed Aug 08 2007 Matthew Barnes <mbarnes at redhat.com> - 1.11.6.1-1.fc8




More information about the fedora-extras-commits mailing list