From e4d3afeabd232ba5f824a17a3504390e6b0469b3 Mon Sep 17 00:00:00 2001 From: Val Kulkov Date: Sun, 19 Nov 2017 11:50:18 -0500 Subject: [PATCH] postfix: version update, fix file descriptor passing Update to the latest stable release. Fix check for file descriptor passing that causes libmilter's runtime error when libmilter/OpenDKIM are used with Postfix: "unix_send_fd: your system has no support for file descriptor passing" The issue with the file descriptor passing has been fixed upstream in 20170618 update to Postfix v3.3 experimental release. The patch must therefore be removed before compiling Postfix v3.3.* Signed-off-by: Val Kulkov --- mail/postfix/Makefile | 6 +++--- mail/postfix/patches/110-glibc-defs.patch | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 mail/postfix/patches/110-glibc-defs.patch diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index a04af3d16..530950788 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=postfix -PKG_RELEASE:=2 -PKG_VERSION:=3.2.3 +PKG_RELEASE:=1 +PKG_VERSION:=3.2.4 PKG_SOURCE_URL:= \ https://cdn.postfix.johnriley.me/mirrors/postfix-release/official/ \ ftp://ftp.porcupine.org/mirrors/postfix-release/official/ -PKG_HASH:=5b0b975d075ea7561028d4109c581549b794aa92d733429ea6d9fa57751140bf +PKG_HASH:=ec55ebaa2aa464792af8d5ee103eb68b27a42dc2b36a02fee42dafbf9740c7f6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_MAINTAINER:=Denis Shulyaka PKG_LICENSE:=IPL-1.0 diff --git a/mail/postfix/patches/110-glibc-defs.patch b/mail/postfix/patches/110-glibc-defs.patch new file mode 100644 index 000000000..b2d7c17a4 --- /dev/null +++ b/mail/postfix/patches/110-glibc-defs.patch @@ -0,0 +1,19 @@ +This patch fixes the runtime error when libmilter is used with Postfix: +"unix_send_fd: your system has no support for file descriptor passing" + +The issue has been fixed upstream in 20170618 update to Postfix v.3.3: +http://postfix.1071664.n5.nabble.com/Fix-check-for-file-descriptor-passing-td90983.html + +This patch must be removed before compiling Postfix v.3.3.* + +--- a/src/util/sys_defs.h ++++ b/src/util/sys_defs.h +@@ -804,7 +804,7 @@ extern int initgroups(const char *, int) + #define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1) + #endif + #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)) \ +- || (__GLIBC__ < 2) ++ || (defined(__GLIBC__) && __GLIBC__ < 2) + #define CANT_USE_SEND_RECV_MSG + #define DEF_SMTP_CACHE_DEMAND 0 + #else