summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/progress-linux/0001-system-type.patch19
-rw-r--r--debian/patches/series1
2 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0001-system-type.patch b/debian/patches/progress-linux/0001-system-type.patch
new file mode 100644
index 0000000..62c32c7
--- /dev/null
+++ b/debian/patches/progress-linux/0001-system-type.patch
@@ -0,0 +1,19 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Adding compatibility for current kernel versions to fix FTBFS.
+
+diff -Naurp postfix.orig/makedefs postfix/makedefs
+--- postfix.orig/makedefs
++++ postfix/makedefs
+@@ -557,7 +557,11 @@ EOF
+ : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
+ : ${PLUGIN_LD="${CC-gcc} -shared"}
+ ;;
+- Linux.[345].*) SYSTYPE=LINUX$RELEASE_MAJOR
++ Linux.[34567].*)
++ case "$SYSTEM.$RELEASE" in
++ Linux.[345].*) SYSTYPE=LINUX$RELEASE_MAJOR ;;
++ Linux.[67].*) SYSTYPE=LINUX5 ;;
++ esac
+ case "$CCARGS" in
+ *-DNO_DB*) ;;
+ *-DHAS_DB*) ;;
diff --git a/debian/patches/series b/debian/patches/series
index bb1d7f4..04864df 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -17,3 +17,4 @@ postfix-dup-postconf.patch
70_postfix-check.diff
tls_version.diff
debian-man-name.diff
+progress-linux/0001-system-type.patch