diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:55:06 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:01:22 +0000 |
commit | 3e66ef0d159c3dd4af1cf201b51b92eacb4e617f (patch) | |
tree | ed3f3a1ee4d99df2ebf1dabe63e8fc43be2054f2 /debian | |
parent | Adding default-mta to postfix provides. (diff) | |
download | postfix-3e66ef0d159c3dd4af1cf201b51b92eacb4e617f.tar.xz postfix-3e66ef0d159c3dd4af1cf201b51b92eacb4e617f.zip |
Adding compatibility for current kernel versions to fix FTBFS.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/patches/progress-linux/0001-system-type.patch | 19 | ||||
-rw-r--r-- | debian/patches/series | 1 |
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 |