summaryrefslogtreecommitdiffstats
path: root/debian/patches/0021-Support-kernel-backport.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0021-Support-kernel-backport.patch')
-rw-r--r--debian/patches/0021-Support-kernel-backport.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/0021-Support-kernel-backport.patch b/debian/patches/0021-Support-kernel-backport.patch
new file mode 100644
index 0000000..9d781d8
--- /dev/null
+++ b/debian/patches/0021-Support-kernel-backport.patch
@@ -0,0 +1,38 @@
+From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
+Date: Sun, 28 Jan 2024 09:53:08 +0000
+Subject: Support kernel backport
+
+Postfix fail on chroot pbuilder due to backported kernel
+
+forwarded: not-needed
+---
+ makedefs | 2 +-
+ src/util/sys_defs.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/makedefs b/makedefs
+index ffb21ad..3aa5df4 100644
+--- a/makedefs
++++ b/makedefs
+@@ -564,7 +564,7 @@ EOF
+ : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
+ : ${PLUGIN_LD="${CC-gcc} -shared"}
+ ;;
+- Linux.[345].*) SYSTYPE=LINUX$RELEASE_MAJOR
++ Linux.[34567].*) SYSTYPE=LINUX$RELEASE_MAJOR
+ case "$CCARGS" in
+ *-DNO_DB*) ;;
+ *-DHAS_DB*) ;;
+diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h
+index 39daa16..8159a83 100644
+--- a/src/util/sys_defs.h
++++ b/src/util/sys_defs.h
+@@ -749,7 +749,7 @@ extern int initgroups(const char *, int);
+ /*
+ * LINUX.
+ */
+-#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5)
++#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5) || defined(LINUX6) || defined(LINUX7)
+ #define SUPPORTED
+ #define UINT32_TYPE unsigned int
+ #define UINT16_TYPE unsigned short