summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2026-05-08 17:23:26 +0800
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-05-12 01:10:18 -0700
commita6a2d6346cf0df9123ead1498cd9fa619b7616b5 (patch)
treefda8f636543d3fa7bb9834b0d920946117a98b78
parent088013da95860f94983b3efeab6354e3b92be53b (diff)
downloadmeta-openembedded-a6a2d6346cf0df9123ead1498cd9fa619b7616b5.tar.gz
postfix: make it can compile with linux 7.x
Fix compile failure on host with linux 7.x | DEBUG: Executing shell function do_compile | NOTE: make -j 64 OPT= DEBUG= OPTS= makefiles | make -f Makefile.in MAKELEVEL= Makefiles | (echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp | ATTENTION: | ATTENTION: Unknown system type: Linux 7.0.0-14-generic | ATTENTION: | make: *** [Makefile.in:33: Makefiles] Error 1 | make: *** [Makefile:22: makefiles] Error 2 | ERROR: oe_runmake failed Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0001-makedefs-Account-for-linux-7.x-version.patch47
-rw-r--r--meta-networking/recipes-daemons/postfix/postfix_3.10.8.bb1
2 files changed, 48 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/postfix/files/0001-makedefs-Account-for-linux-7.x-version.patch b/meta-networking/recipes-daemons/postfix/files/0001-makedefs-Account-for-linux-7.x-version.patch
new file mode 100644
index 0000000000..4bc59ace7d
--- /dev/null
+++ b/meta-networking/recipes-daemons/postfix/files/0001-makedefs-Account-for-linux-7.x-version.patch
@@ -0,0 +1,47 @@
1From 5466d510dfbc2b7a81dcf766f83d2c89066c0446 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 11 May 2026 18:16:07 +0000
4Subject: [PATCH] makedefs: Account for linux 7.x version
5
6Major version has bumped to 7, update the scripts
7
8Upstream-Status: Backport [The latest stable version 3.11 already fixed]
9
10Refer:
11https://www.ftp.saix.net/MTA/postfix/index.html
12
13Signed-off-by: Changqing Li <changqing.li@windriver.com>
14---
15 makedefs | 2 +-
16 src/util/sys_defs.h | 2 +-
17 2 files changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/makedefs b/makedefs
20index 74b103d..fe8c618 100644
21--- a/makedefs
22+++ b/makedefs
23@@ -625,7 +625,7 @@ EOF
24 : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
25 : ${PLUGIN_LD="${CC-gcc} -shared"}
26 ;;
27- Linux.[3456].*)
28+ Linux.[34567].*)
29 SYSTYPE=LINUX$RELEASE_MAJOR
30 case "$CCARGS" in
31 *-DNO_DB*) ;;
32diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h
33index 70aab23..c5472eb 100644
34--- a/src/util/sys_defs.h
35+++ b/src/util/sys_defs.h
36@@ -763,7 +763,7 @@ extern int initgroups(const char *, int);
37 * LINUX.
38 */
39 #if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5) \
40- || defined(LINUX6)
41+ || defined(LINUX6) || defined(LINUX7)
42 #define SUPPORTED
43 #define UINT32_TYPE unsigned int
44 #define UINT16_TYPE unsigned short
45--
462.53.0
47
diff --git a/meta-networking/recipes-daemons/postfix/postfix_3.10.8.bb b/meta-networking/recipes-daemons/postfix/postfix_3.10.8.bb
index a66ecc0b5d..6b82c04fbe 100644
--- a/meta-networking/recipes-daemons/postfix/postfix_3.10.8.bb
+++ b/meta-networking/recipes-daemons/postfix/postfix_3.10.8.bb
@@ -26,6 +26,7 @@ SRC_URI = "http://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${P
26 file://0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch \ 26 file://0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch \
27 file://0004-Fix-icu-config.patch \ 27 file://0004-Fix-icu-config.patch \
28 file://0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \ 28 file://0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \
29 file://0001-makedefs-Account-for-linux-7.x-version.patch \
29 " 30 "
30 31
31SRC_URI[sha256sum] = "31d4b3eb8093d823b5a151f571719ff7c0462571bc95e6440d87ca525bfb096c" 32SRC_URI[sha256sum] = "31d4b3eb8093d823b5a151f571719ff7c0462571bc95e6440d87ca525bfb096c"