From 3e66ef0d159c3dd4af1cf201b51b92eacb4e617f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 03:55:06 +0200 Subject: Adding compatibility for current kernel versions to fix FTBFS. Signed-off-by: Daniel Baumann --- debian/patches/progress-linux/0001-system-type.patch | 19 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 20 insertions(+) create mode 100644 debian/patches/progress-linux/0001-system-type.patch 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 +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 -- cgit v1.2.3