From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arne Fitzenreiter To: development@lists.ipfire.org Subject: [PATCH 1/9] postfix: patch for build with kernel 6.x Date: Sat, 07 Jan 2023 11:46:53 +0000 Message-ID: <20230107114701.4075482-2-arne_f@ipfire.org> In-Reply-To: <20230107114701.4075482-1-arne_f@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1272557596191571293==" List-Id: --===============1272557596191571293== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable --- lfs/postfix | 3 ++- .../postfix/postfix-3.7.2-fix_linux6.patch | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/patches/postfix/postfix-3.7.2-fix_linux6.patch diff --git a/lfs/postfix b/lfs/postfix index 0a078b8d2..160772bee 100644 --- a/lfs/postfix +++ b/lfs/postfix @@ -1,7 +1,7 @@ ############################################################################= ### # = # # IPFire.org - A linux based firewall = # -# Copyright (C) 2007-2022 IPFire Team = # +# Copyright (C) 2007-2023 IPFire Team = # # = # # This program is free software: you can redistribute it and/or modify = # # it under the terms of the GNU General Public License as published by = # @@ -103,6 +103,7 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/postfix/postfix-3.7.2-= fix_linux6.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/postfix-3.6.2-glibc-23= 4-build-fix.patch cd $(DIR_APP) && make -f Makefile.init makefiles \ DEBUG=3D"" OPT=3D"$(CFLAGS) -fno-strict-aliasing" CCARGS=3D"$(CCARGS)" AUX= LIBS=3D"$(AUXLIBS)" diff --git a/src/patches/postfix/postfix-3.7.2-fix_linux6.patch b/src/patches= /postfix/postfix-3.7.2-fix_linux6.patch new file mode 100644 index 000000000..f5a9c5826 --- /dev/null +++ b/src/patches/postfix/postfix-3.7.2-fix_linux6.patch @@ -0,0 +1,24 @@ +diff -Naur postfix-3.7.2.org/makedefs postfix-3.7.2/makedefs +--- postfix-3.7.2.org/makedefs 2022-01-23 21:53:41.000000000 +0100 ++++ postfix-3.7.2/makedefs 2022-10-18 16:11:50.259575443 +0200 +@@ -627,7 +627,7 @@ + : ${SHLIB_ENV=3D"LD_LIBRARY_PATH=3D`pwd`/lib"} + : ${PLUGIN_LD=3D"${CC-gcc} -shared"} + ;; +- Linux.[345].*) SYSTYPE=3DLINUX$RELEASE_MAJOR ++ Linux.[3-6].*) SYSTYPE=3DLINUX$RELEASE_MAJOR + case "$CCARGS" in + *-DNO_DB*) ;; + *-DHAS_DB*) ;; +diff -Naur postfix-3.7.2.org/src/util/sys_defs.h postfix-3.7.2/src/util/sys_= defs.h +--- postfix-3.7.2.org/src/util/sys_defs.h 2021-12-05 19:59:27.000000000 +0100 ++++ postfix-3.7.2/src/util/sys_defs.h 2022-10-18 16:09:29.682371415 +0200 +@@ -751,7 +751,7 @@ + /* + * LINUX. + */ +-#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5) ++#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5= ) || defined(LINUX6) + #define SUPPORTED + #define UINT32_TYPE unsigned int + #define UINT16_TYPE unsigned short --=20 2.34.1 --===============1272557596191571293==--