postfix: Fix compile against glibc 2.36
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Dec 2022 19:18:28 +0000 (20:18 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Thu, 21 Sep 2023 21:35:38 +0000 (23:35 +0200)
This backports a change from postfix 3.8, I do not know exactly why it
detects Linux 6 here, but this is needed to fix compilation with glibc
2.36.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 33786efe661f8aef720914926c6f5ad2f0ba8187)

mail/postfix/Makefile
mail/postfix/patches/502-detect-glibc.patch [new file with mode: 0644]

index 4f9119e6aa97f0ab14bf76d35a81b0eea3b4d6f2..b86fdcb6d7998fa0622422c37d15f71d8d32e3a5 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=postfix
 PKG_VERSION:=3.5.8
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:= \
diff --git a/mail/postfix/patches/502-detect-glibc.patch b/mail/postfix/patches/502-detect-glibc.patch
new file mode 100644 (file)
index 0000000..abfc9d4
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/src/util/sys_defs.h
++++ b/src/util/sys_defs.h
+@@ -749,7 +749,8 @@ 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)
+ #define SUPPORTED
+ #define UINT32_TYPE   unsigned int
+ #define UINT16_TYPE   unsigned short