mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 20:16:49 +02:00
postfix: fix build with kernel 4.9 headers
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
12
src/patches/postfix-2.10.0-build_with_kernel4x.patch
Normal file
12
src/patches/postfix-2.10.0-build_with_kernel4x.patch
Normal file
@@ -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 ]
|
||||
Reference in New Issue
Block a user