mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
postfix: update to 3.5.8
Pass TARGET_[C/LD]FLAGS to reduce filesize. Fix glibc compilation by adding lresolv. Remove uClibc-ng patch as that's now gone. Refreshed other patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- a/src/util/dict_db.c
|
||||
+++ b/src/util/dict_db.c
|
||||
@@ -750,8 +750,8 @@ static DICT *dict_db_open(const char *class, const char *path, int open_flags,
|
||||
@@ -750,8 +750,8 @@ static DICT *dict_db_open(const char *cl
|
||||
msg_fatal("create DB database: %m");
|
||||
if (db == 0)
|
||||
msg_panic("db_create null result");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/src/util/sys_defs.h
|
||||
+++ b/src/util/sys_defs.h
|
||||
@@ -760,9 +760,8 @@ extern int initgroups(const char *, int);
|
||||
@@ -760,9 +760,8 @@ extern int initgroups(const char *, int)
|
||||
#define INTERNAL_LOCK MYFLOCK_STYLE_FLOCK
|
||||
#define DEF_MAILBOX_LOCK "fcntl, dotlock" /* RedHat >= 4.x */
|
||||
#define HAS_FSYNC
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
RELEASE=`(uname -r) 2>/dev/null`
|
||||
# No ${x%%y} support in Solaris 11 /bin/sh
|
||||
RELEASE_MAJOR=`expr "$RELEASE" : '\([0-9]*\)'` || exit 1
|
||||
@@ -229,6 +229,15 @@ case $# in
|
||||
@@ -242,6 +242,15 @@ case "$SYSTEM" in
|
||||
esac
|
||||
|
||||
case "$SYSTEM.$RELEASE" in
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
From 4fe5b1f216f1643080299bdb35e07f07b9c2caae Mon Sep 17 00:00:00 2001
|
||||
From: Rosen Penev <rosenp@gmail.com>
|
||||
Date: Thu, 2 May 2019 22:28:57 -0700
|
||||
Subject: [PATCH] dns_lookup: Fix compilation with uClibc-ng
|
||||
|
||||
uClibc-ng does not have res_send or res_nsend. ifdef the entire function.
|
||||
---
|
||||
src/dns/dns_lookup.c | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/dns/dns_lookup.c b/src/dns/dns_lookup.c
|
||||
index 1ea98b3..d7771d4 100644
|
||||
--- a/src/dns/dns_lookup.c
|
||||
+++ b/src/dns/dns_lookup.c
|
||||
@@ -311,6 +311,10 @@ typedef struct DNS_REPLY {
|
||||
static int dns_res_query(const char *name, int class, int type,
|
||||
unsigned char *answer, int anslen)
|
||||
{
|
||||
+#ifdef __UCLIBC__
|
||||
+ msg_info("dns_res_query() is not supported under uClibc");
|
||||
+ return 0;
|
||||
+#else
|
||||
unsigned char msg_buf[MAX_DNS_QUERY_SIZE];
|
||||
HEADER *reply_header = (HEADER *) answer;
|
||||
int len;
|
||||
@@ -369,6 +373,7 @@ static int dns_res_query(const char *name, int class, int type,
|
||||
}
|
||||
return (len);
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
/* dns_res_search - res_search() that can return negative replies */
|
||||
--
|
||||
2.17.1
|
||||
|
||||
Reference in New Issue
Block a user