]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-3.8.14 postfix-3.8 v3.8.14
authorWietse Z Venema <wietse@porcupine.org>
Fri, 5 Dec 2025 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <ietf-dane@dukhovni.org>
Mon, 8 Dec 2025 00:18:10 +0000 (11:18 +1100)
postfix/HISTORY
postfix/makedefs
postfix/src/global/mail_version.h

index 3dfa543311c38153d7e57a965c789ebe67ec572a..9ad2141a4025ea17fd887aa9650d4e3b701117a6 100644 (file)
@@ -27597,3 +27597,13 @@ Apologies for any names omitted.
        Bugfix (defect introduced: Postfix 2.9, date: 20120307):
        segfault with duplicate parameter name in "postconf -X" or
        "postconf -#'. File: postconf/postconf_edit.c.
+
+20251205
+
+       Compatibility: recent Linux distributions have C compilers
+       with a built-in 'bool' type (size=1) that conflicts with
+       Postfix's bool (an alias for int, typically size=4). Postfix
+       3.11 adopts the built-in bool type, but that change is too
+       large for the stable releases. Instead, the command "make
+       makefiles" will figure out how to make the compiler
+       backwards-compatible. File: makedefs.
index 005e4b31e0d9e1bec1c979344c1d39417d8c2238..073f4c77d91a064046d04c141f3642f4378ab255 100644 (file)
@@ -1225,6 +1225,25 @@ ${WARN='-Wall -Wno-comment -Wformat -Wimplicit -Wmissing-prototypes \
        -Wparentheses -Wstrict-prototypes -Wswitch -Wuninitialized \
        -Wunused -Wno-missing-braces -fno-common'}
 
+# C23 introduces a built-in type 'bool' (size 1) which breaks past Postfix
+# practice where 'bool' is an alias for 'int' (typically, size 4).
+# Fortunately, -std=gnu17 works with both gcc and clang.
+cat >makedefs.test.c <<'EOF'
+/* This appears in mail_params.h */
+typedef int bool;
+EOF
+
+if eval ${CC} ${CCARGS} -c makedefs.test.c >/dev/null 2>&1
+then
+    : No further action needed.
+elif eval ${CC} -std=gnu17 ${CCARGS} -c makedefs.test.c >/dev/null 2>&1
+then
+    CCARGS="-std=gnu17 $CCARGS"
+else
+    error 'Please specify "CC=..." or "CCARGS=..." option to disable C23 bool'
+fi
+rm -f makedefs.test.[co]
+
 # Extract map type names from -DHAS_XXX compiler options.  We avoid
 # problems with tr(1) range syntax by using enumerations instead,
 # and we don't try to figure out which awk versions have tolower().
index cc90befbfd01b765fe898c0d0e0179a89315a5a2..15af0c2a77dced93d0b30d068c108504b13c2f57 100644 (file)
@@ -20,8 +20,8 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20251125"
-#define MAIL_VERSION_NUMBER    "3.8.13"
+#define MAIL_RELEASE_DATE      "20251205"
+#define MAIL_VERSION_NUMBER    "3.8.14"
 
 #ifdef SNAPSHOT
 #define MAIL_VERSION_DATE      "-" MAIL_RELEASE_DATE