public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Arne Fitzenreiter <arne_f@ipfire.org>
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	[thread overview]
Message-ID: <20230107114701.4075482-2-arne_f@ipfire.org> (raw)
In-Reply-To: <20230107114701.4075482-1-arne_f@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 2890 bytes --]

---
 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  <info(a)ipfire.org>                     #
+# Copyright (C) 2007-2023  IPFire Team  <info(a)ipfire.org>                     #
 #                                                                             #
 # 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-234-build-fix.patch
 	cd $(DIR_APP) && make -f Makefile.init makefiles \
 		DEBUG="" OPT="$(CFLAGS) -fno-strict-aliasing" CCARGS="$(CCARGS)" AUXLIBS="$(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="LD_LIBRARY_PATH=`pwd`/lib"}
+ 		: ${PLUGIN_LD="${CC-gcc} -shared"}
+ 		;;
+- Linux.[345].*)	SYSTYPE=LINUX$RELEASE_MAJOR
++ Linux.[3-6].*)	SYSTYPE=LINUX$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
-- 
2.34.1


  reply	other threads:[~2023-01-07 11:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-07 11:46 kernel: update to 6.1.x Arne Fitzenreiter
2023-01-07 11:46 ` Arne Fitzenreiter [this message]
2023-01-07 11:46 ` [PATCH 2/9] rtl8189es: update to e58bd86c9d9408c648b1246a0dd76b16856ec172 Arne Fitzenreiter
2023-01-07 11:46 ` [PATCH 3/9] rtl8189fs: update to 476020109b3841421af289a7b78c7a25b0c45fac Arne Fitzenreiter
2023-01-07 11:46 ` [PATCH 4/9] rtl8822bu: update to 20210702-2590672d717e2516dd2e96ed66f1037a6815bced Arne Fitzenreiter
2023-01-07 11:46 ` [PATCH 5/9] rtl8812au: update to 20210629-07ac856293e247347b891c5dbd13f3ab8321132d Arne Fitzenreiter
2023-01-07 11:46 ` [PATCH 6/9] rtl8821cu: update to 20210118-7b8c45a270454f05e2dbf3beeb4afcf817db65da Arne Fitzenreiter
2023-01-07 11:46 ` [PATCH 7/9] strace: update to 6.1 Arne Fitzenreiter
2023-01-07 11:47 ` [PATCH 8/9] xradio: disabled build Arne Fitzenreiter
2023-01-09 15:33 ` kernel: update to 6.1.x Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230107114701.4075482-2-arne_f@ipfire.org \
    --to=arne_f@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox