]> TLD Linux GIT Repositories - packages/postfix.git/commitdiff
- fix building with glibc 2.30
authorMarcin Krol <hawk@tld-linux.org>
Thu, 5 Sep 2019 20:05:04 +0000 (22:05 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 5 Sep 2019 20:05:04 +0000 (22:05 +0200)
glibc-2.30.patch [new file with mode: 0644]
postfix.spec

diff --git a/glibc-2.30.patch b/glibc-2.30.patch
new file mode 100644 (file)
index 0000000..8a92780
--- /dev/null
@@ -0,0 +1,20 @@
+diff -ur postfix-3.4.6.orig/src/dns/dns_str_resflags.c postfix-3.4.6/src/dns/dns_str_resflags.c
+--- postfix-3.4.6.orig/src/dns/dns_str_resflags.c      2016-05-15 17:20:14.000000000 +0200
++++ postfix-3.4.6/src/dns/dns_str_resflags.c   2019-09-05 22:01:00.522000000 +0200
+@@ -60,10 +60,16 @@
+     "RES_DEFNAMES", RES_DEFNAMES,
+     "RES_STAYOPEN", RES_STAYOPEN,
+     "RES_DNSRCH", RES_DNSRCH,
++#ifdef RES_INSECURE1
+     "RES_INSECURE1", RES_INSECURE1,
++#endif
++#ifdef RES_INSECURE2
+     "RES_INSECURE2", RES_INSECURE2,
++#endif
+     "RES_NOALIASES", RES_NOALIASES,
++#ifdef RES_USE_INET6
+     "RES_USE_INET6", RES_USE_INET6,
++#endif
+ #ifdef RES_ROTATE
+     "RES_ROTATE", RES_ROTATE,
+ #endif
index dd3a7143dcc71f7911308b63df29d7a5d672e7db..d9d65deb5b6a76fb636e485494f998eb7697d358 100644 (file)
@@ -18,7 +18,7 @@ Summary(pt_BR.UTF-8): Postfix - Um MTA (Mail Transport Agent) de alto desempenho
 Summary(sk.UTF-8):     Agent prenosu pošty Postfix
 Name:          postfix
 Version:       3.4.6
-Release:       4
+Release:       5
 Epoch:         2
 License:       distributable
 Group:         Networking/Daemons/SMTP
@@ -41,6 +41,7 @@ Patch2:               %{name}-master.cf_cyrus.patch
 Patch3:                %{name}-conf.patch
 Patch4:                %{name}-link.patch
 Patch5:                %{name}-scache_clnt.patch
+Patch6:                glibc-2.30.patch
 URL:           http://www.postfix.org/
 %{?with_sasl:BuildRequires:    cyrus-sasl-devel}
 BuildRequires: db-devel
@@ -249,6 +250,7 @@ sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 %{__make} -f Makefile.init makefiles