summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorIsmael Luceno2021-05-05 20:24:32 +0200
committerIsmael Luceno2021-05-05 20:24:32 +0200
commit8f257deb3fd449b976304e3781bf6bda8572b227 (patch)
tree18193d30d9523c75e4ad42fa053b89dab2386ec4 /mail
parent16c3f8ed48e993adfa2e9b366601dfc90cb731be (diff)
postfix: Fix build against musl
Diffstat (limited to 'mail')
-rwxr-xr-xmail/postfix/BUILD7
-rw-r--r--mail/postfix/HISTORY2
-rw-r--r--mail/postfix/patches/0001-Fix-missing-includes.patch15
3 files changed, 24 insertions, 0 deletions
diff --git a/mail/postfix/BUILD b/mail/postfix/BUILD
index 14834c68b4..22d5d66d83 100755
--- a/mail/postfix/BUILD
+++ b/mail/postfix/BUILD
@@ -9,6 +9,13 @@ install -vm 2775 -d -o mail -g mail "$INSTALL_ROOT/var/spool/mail" &&
local AUXLIBS="-L$INSTALL_ROOT/usr/lib -L$INSTALL_ROOT/lib -lm" &&
local CCARGS="" &&
+case "$HOST" in
+ (*-musl)
+ # XXX incomplete NIS implementation on musl
+ CCARGS+=' -DNO_NIS'
+ ;;
+esac &&
+
if is_depends_enabled $SPELL pcre; then
AUXLIBS="$AUXLIBS -lpcre" &&
CCARGS="$CCARGS -DHAS_PCRE" &&
diff --git a/mail/postfix/HISTORY b/mail/postfix/HISTORY
index 5946808fdf..0a97b35ad2 100644
--- a/mail/postfix/HISTORY
+++ b/mail/postfix/HISTORY
@@ -5,6 +5,8 @@
* DETAILS: updated spell to 3.6.0
* no-db.patch: removed, no longer needed
* PRE_BUILD: converted to apply_patch_dir
+ * BUILD, patches/0001-Fix-missing-includes.patch:
+ fixed build against musl
2015-07-02 Vlad Glagolev <stealth@sourcemage.org>
* CONFLICTS: added opensmtpd
diff --git a/mail/postfix/patches/0001-Fix-missing-includes.patch b/mail/postfix/patches/0001-Fix-missing-includes.patch
new file mode 100644
index 0000000000..7caebdc053
--- /dev/null
+++ b/mail/postfix/patches/0001-Fix-missing-includes.patch
@@ -0,0 +1,15 @@
+From: Ismael Luceno <ismael@iodev.co.uk>
+Subject: [PATCH] Fix missing includes
+
+Upstream-Status: Pending
+
+--- a/src/posttls-finger/posttls-finger.c
++++ b/src/posttls-finger/posttls-finger.c
+@@ -336,6 +336,7 @@
+ #include <ctype.h>
+ #include <stdlib.h>
+ #include <unistd.h>
++#include <stdio.h>
+ #include <signal.h>
+ #include <fcntl.h>
+ #include <errno.h>