summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/progress-linux')
-rw-r--r--debian/patches/progress-linux/0001-system-type.patch19
1 files changed, 19 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*) ;;