Parcourir la source

make Postfix finally working with Berkeley DB 4.1

Ralf S. Engelschall il y a 23 ans
Parent
commit
6f94fa0d67
2 fichiers modifiés avec 19 ajouts et 2 suppressions
  1. 18 1
      postfix/postfix-db4.patch
  2. 1 1
      postfix/postfix.spec

+ 18 - 1
postfix/postfix-db4.patch

@@ -1,4 +1,3 @@
-diff -Naur postfix-1.1.11.orig/src/util/dict_db.c postfix-1.1.11/src/util/dict_db.c
 --- postfix-1.1.11.orig/src/util/dict_db.c	Mon Oct 14 18:54:26 2002
 +++ postfix-1.1.11/src/util/dict_db.c	Mon Oct 14 19:52:16 2002
 @@ -520,8 +520,13 @@
@@ -15,3 +14,21 @@ diff -Naur postfix-1.1.11.orig/src/util/dict_db.c postfix-1.1.11/src/util/dict_d
      if ((errno = db->fd(db, &dbfd)) != 0)
  	msg_fatal("get database file descriptor: %m");
  #endif
+--- postfix-1.1.11.orig/src/global/mkmap_db.c.orig	Mon Nov 20 19:05:25 2000
++++ postfix-1.1.11/src/global/mkmap_db.c	Mon Nov 11 17:09:36 2002
+@@ -66,7 +66,15 @@
+     /*
+      * Fill in the generic members.
+      */
++#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
++    /* OpenPKG/RSE hack: lock source instead of target file because more
++       than one edge in Postfix really want the locked file to be created
++       and implicitly insist that the lock is not a dedicated file (for
++       instance it is not removed after closing, etc) */
++    mkmap->lock_file = concatenate(path, (char *) 0); 
++#else
+     mkmap->lock_file = concatenate(path, ".db", (char *) 0);
++#endif
+     mkmap->open = db_open;
+ 
+     /*

+ 1 - 1
postfix/postfix.spec

@@ -49,7 +49,7 @@ Distribution: OpenPKG [BASE]
 Group:        Mail
 License:      IPL
 Version:      %{V_postfix}
-Release:      20021014
+Release:      20021111
 
 #   list of sources
 Source0:      ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-%{V_postfix}.tar.gz