]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
postfix: fix build with kernel 4.9 headers
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 12 Feb 2017 18:48:53 +0000 (19:48 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 12 Feb 2017 18:48:53 +0000 (19:48 +0100)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/postfix
src/patches/postfix-2.10.0-build_with_kernel4x.patch [new file with mode: 0644]

index b8029f7634ba58411f7658760a7518afeec0ba0a..4864fb9f6eb1de58c0a1684211c215d8bb91f14e 100644 (file)
@@ -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 (file)
index 0000000..73b6859
--- /dev/null
@@ -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 ]