[packages/postfix/postfix-3.6] Fix build on Linux 7.x kernels; release 6
arekm
arekm at pld-linux.org
Wed Jul 29 07:15:58 CEST 2026
commit dfedf24b7160a6ec663ed5f03f8ff7a37bfe7bd3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Jul 29 07:12:21 2026 +0200
Fix build on Linux 7.x kernels; release 6
linux-7.patch | 22 ++++++++++++++++++++++
postfix.spec | 4 +++-
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/postfix.spec b/postfix.spec
index df931fb..932064a 100644
--- a/postfix.spec
+++ b/postfix.spec
@@ -31,7 +31,7 @@ Summary(pt_BR.UTF-8): Postfix - Um MTA (Mail Transport Agent) de alto desempenho
Summary(sk.UTF-8): Agent prenosu pošty Postfix
Name: postfix
Version: 3.6.18
-Release: 5
+Release: 6
Epoch: 2
License: IBM Public License or Eclipse Public License v2.0
Group: Networking/Daemons/SMTP
@@ -67,6 +67,7 @@ Patch8: %{name}-dictname.patch
Patch11: %{name}-scache_clnt.patch
Patch12: format-security.patch
Patch13: glibc-2.34.patch
+Patch14: linux-7.patch
URL: http://www.postfix.org/
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
BuildRequires: db-devel
@@ -320,6 +321,7 @@ find -type f | xargs %{__sed} -i -e 's|/etc/postfix|/etc/mail|g'
%patch -P12 -p1
%endif
%patch -P13 -p1
+%patch -P14 -p1
%if %{with tcp}
sed -i 's/ifdef SNAPSHOT/if 1/' src/util/dict_open.c
diff --git a/linux-7.patch b/linux-7.patch
new file mode 100644
index 0000000..d50fa81
--- /dev/null
+++ b/linux-7.patch
@@ -0,0 +1,22 @@
+--- postfix-3.6.18/makedefs.orig
++++ postfix-3.6.18/makedefs
+@@ -568,7 +568,7 @@
+ : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
+ : ${PLUGIN_LD="${CC-gcc} -shared"}
+ ;;
+-Linux.[3456].*) SYSTYPE=LINUX$RELEASE_MAJOR
++Linux.[34567].*) SYSTYPE=LINUX$RELEASE_MAJOR
+ case "$CCARGS" in
+ *-DNO_DB*) ;;
+ *-DHAS_DB*) ;;
+--- postfix-3.6.18/src/util/sys_defs.h.orig
++++ postfix-3.6.18/src/util/sys_defs.h
+@@ -750,7 +750,7 @@
+ * LINUX.
+ */
+ #if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5) \
+- || defined(LINUX6)
++ || defined(LINUX6) || defined(LINUX7)
+ #define SUPPORTED
+ #define UINT32_TYPE unsigned int
+ #define UINT16_TYPE unsigned short
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/postfix.git/commitdiff/dfedf24b7160a6ec663ed5f03f8ff7a37bfe7bd3
More information about the pld-cvs-commit
mailing list