rpms/postfix/devel postfix-2.4.5-open_define.patch, NONE, 1.1 .cvsignore, 1.25, 1.26 postfix.spec, 1.56, 1.57 sources, 1.25, 1.26

Thomas Woerner (twoerner) fedora-extras-commits at redhat.com
Mon Aug 13 16:54:57 UTC 2007


Author: twoerner

Update of /cvs/pkgs/rpms/postfix/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14105

Modified Files:
	.cvsignore postfix.spec sources 
Added Files:
	postfix-2.4.5-open_define.patch 
Log Message:
[tw]
- new version 2.4.5
- fixed compile proplem with glibc-2.6.90+



postfix-2.4.5-open_define.patch:

--- NEW FILE postfix-2.4.5-open_define.patch ---
diff -up postfix-2.4.5/src/util/dict_open.c.open_define postfix-2.4.5/src/util/dict_open.c
--- postfix-2.4.5/src/util/dict_open.c.open_define	2006-06-26 14:59:19.000000000 +0200
+++ postfix-2.4.5/src/util/dict_open.c	2007-08-13 18:46:18.000000000 +0200
@@ -302,7 +302,7 @@ DICT   *dict_open3(const char *dict_type
 	dict_open_init();
     if ((dp = (DICT_OPEN_INFO *) htable_find(dict_open_hash, dict_type)) == 0)
 	msg_fatal("unsupported dictionary type: %s", dict_type);
-    if ((dict = dp->open(dict_name, open_flags, dict_flags)) == 0)
+    if ((dict = (dp->open)(dict_name, open_flags, dict_flags)) == 0)
 	msg_fatal("opening %s:%s %m", dict_type, dict_name);
     if (msg_verbose)
 	msg_info("%s: %s:%s", myname, dict_type, dict_name);
@@ -323,7 +323,7 @@ void    dict_open_register(const char *t
 	msg_panic("%s: dictionary type exists: %s", myname, type);
     dp = (DICT_OPEN_INFO *) mymalloc(sizeof(*dp));
     dp->type = mystrdup(type);
-    dp->open = open;
+    (dp->open) = open;
     htable_enter(dict_open_hash, dp->type, (char *) dp);
 }
 
diff -up postfix-2.4.5/src/util/dict_db.c.open_define postfix-2.4.5/src/util/dict_db.c
--- postfix-2.4.5/src/util/dict_db.c.open_define	2007-01-04 15:06:07.000000000 +0100
+++ postfix-2.4.5/src/util/dict_db.c	2007-08-13 18:46:18.000000000 +0200
@@ -665,10 +665,10 @@ static DICT *dict_db_open(const char *cl
     if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
 	msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
 #if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
-    if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0)
+    if ((errno = (db->open)(db, 0, db_path, 0, type, db_flags, 0644)) != 0)
 	msg_fatal("open database %s: %m", db_path);
 #elif (DB_VERSION_MAJOR == 3 || DB_VERSION_MAJOR == 4)
-    if ((errno = db->open(db, db_path, 0, type, db_flags, 0644)) != 0)
+    if ((errno = (db->open)(db, db_path, 0, type, db_flags, 0644)) != 0)
 	msg_fatal("open database %s: %m", db_path);
 #else
 #error "Unsupported Berkeley DB version"
diff -up postfix-2.4.5/src/global/mkmap_open.c.open_define postfix-2.4.5/src/global/mkmap_open.c
--- postfix-2.4.5/src/global/mkmap_open.c.open_define	2004-12-15 01:24:22.000000000 +0100
+++ postfix-2.4.5/src/global/mkmap_open.c	2007-08-13 18:46:18.000000000 +0200
@@ -177,7 +177,7 @@ MKMAP  *mkmap_open(const char *type, con
      * Truncate the database upon open, and update it. Read-write mode is
      * needed because the underlying routines read as well as write.
      */
-    mkmap->dict = mkmap->open(path, open_flags, dict_flags);
+    mkmap->dict = (mkmap->open)(path, open_flags, dict_flags);
     mkmap->dict->lock_fd = -1;			/* XXX just in case */
     mkmap->dict->stat_fd = -1;			/* XXX just in case */
     mkmap->dict->flags |= DICT_FLAG_DUP_WARN;
diff -up postfix-2.4.5/src/global/mkmap_cdb.c.open_define postfix-2.4.5/src/global/mkmap_cdb.c
--- postfix-2.4.5/src/global/mkmap_cdb.c.open_define	2004-12-09 00:58:05.000000000 +0100
+++ postfix-2.4.5/src/global/mkmap_cdb.c	2007-08-13 18:46:18.000000000 +0200
@@ -56,7 +56,7 @@
 MKMAP *mkmap_cdb_open(const char *unused_path)
 {
     MKMAP  *mkmap = (MKMAP *) mymalloc(sizeof(*mkmap));
-    mkmap->open = dict_cdb_open;
+    (mkmap->open) = dict_cdb_open;
     mkmap->after_open = 0;
     mkmap->after_close = 0;
     return (mkmap);
diff -up postfix-2.4.5/src/global/mail_dict.c.open_define postfix-2.4.5/src/global/mail_dict.c
--- postfix-2.4.5/src/global/mail_dict.c.open_define	2004-01-04 19:53:27.000000000 +0100
+++ postfix-2.4.5/src/global/mail_dict.c	2007-08-13 18:46:18.000000000 +0200
@@ -64,5 +64,5 @@ void    mail_dict_init(void)
     DICT_OPEN_INFO *dp;
 
     for (dp = dict_open_info; dp->type; dp++)
-	dict_open_register(dp->type, dp->open);
+      dict_open_register(dp->type, (dp->open));
 }


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/postfix/devel/.cvsignore,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- .cvsignore	5 Jun 2007 08:45:35 -0000	1.25
+++ .cvsignore	13 Aug 2007 16:54:24 -0000	1.26
@@ -7,3 +7,4 @@
 postfix-2.3.4.tar.gz
 postfix-2.3.6.tar.gz
 postfix-2.4.3.tar.gz
+postfix-2.4.5.tar.gz


Index: postfix.spec
===================================================================
RCS file: /cvs/pkgs/rpms/postfix/devel/postfix.spec,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- postfix.spec	15 Jun 2007 14:07:18 -0000	1.56
+++ postfix.spec	13 Aug 2007 16:54:24 -0000	1.57
@@ -38,8 +38,8 @@
 
 Name: postfix
 Summary: Postfix Mail Transport Agent
-Version: 2.4.3
-Release: 3%{?dist}
+Version: 2.4.5
+Release: 1%{?dist}
 Epoch: 2
 Group: System Environment/Daemons
 URL: http://www.postfix.org
@@ -79,6 +79,7 @@
 Patch7: postfix-2.1.5-aliases.patch
 Patch8: postfix-large-fs.patch
 Patch9: postfix-2.4.0-cyrus.patch
+Patch10: postfix-2.4.5-open_define.patch
 
 # Optional patches - set the appropriate environment variables to include
 #                    them when building the package/spec file
@@ -136,6 +137,7 @@
 %patch7 -p1 -b .aliases
 %patch8 -p1 -b .large-fs
 %patch9 -p1 -b .cyrus
+%patch10 -p1 -b .open_define
 
 %if %{PFLOGSUMM}
 gzip -dc %{SOURCE53} | tar xf -
@@ -464,6 +466,10 @@
 
 
 %changelog
+* Mon Aug 13 2007 Thomas Woerner <twoerner at redhat.com> 2:2.4.5-1
+- new version 2.4.5
+- fixed compile proplem with glibc-2.6.90+
+
 * Fri Jun 15 2007 Thomas Woerner <twoerner at redhat.com> 2:2.4.3-3
 - added missing epoch in requirement of pflogsumm sub package
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/postfix/devel/sources,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- sources	5 Jun 2007 08:45:35 -0000	1.25
+++ sources	13 Aug 2007 16:54:24 -0000	1.26
@@ -1,2 +1,2 @@
 1f78fcaf2a36ec3520ecff286a45251a  pflogsumm-1.1.0.tar.gz
-7d2e126189b91f41fdb1ddb0bd354fd3  postfix-2.4.3.tar.gz
+ceba0cde05d12baa0ba2ed69fbb96b42  postfix-2.4.5.tar.gz




More information about the fedora-extras-commits mailing list