From 24247159dd2d757690798f93e40499e217fee58a Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 12 Feb 2017 19:48:53 +0100 Subject: [PATCH] postfix: fix build with kernel 4.9 headers Signed-off-by: Arne Fitzenreiter --- lfs/postfix | 1 + src/patches/postfix-2.10.0-build_with_kernel4x.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/patches/postfix-2.10.0-build_with_kernel4x.patch diff --git a/lfs/postfix b/lfs/postfix index b8029f763..4864fb9f6 100644 --- a/lfs/postfix +++ b/lfs/postfix @@ -102,6 +102,7 @@ $(subst %,%_MD5,$(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/$(THISAPP)-build_with_kernel4x.patch cd $(DIR_APP) && make -f Makefile.init makefiles \ DEBUG="" OPT="$(CFLAGS) -fno-strict-aliasing" CCARGS="$(CCARGS)" AUXLIBS="$(AUXLIBS)" cd $(DIR_APP) && make $(MAKETUNING) diff --git a/src/patches/postfix-2.10.0-build_with_kernel4x.patch b/src/patches/postfix-2.10.0-build_with_kernel4x.patch new file mode 100644 index 000000000..73b685996 --- /dev/null +++ b/src/patches/postfix-2.10.0-build_with_kernel4x.patch @@ -0,0 +1,12 @@ +diff -Naur postfix-2.10.0.org/makedefs postfix-2.10.0/makedefs +--- postfix-2.10.0.org/makedefs 2013-02-04 02:33:13.000000000 +0100 ++++ postfix-2.10.0/makedefs 2017-02-08 10:10:56.713314716 +0100 +@@ -347,7 +347,7 @@ + fi;; + esac + ;; +- Linux.3*) SYSTYPE=LINUX3 ++ Linux.[34]*) SYSTYPE=LINUX3 + case "$CCARGS" in + *-DNO_DB*) ;; + *) if [ -f /usr/include/db.h ]