From abfc08773f5d2ded4b5e49b2b0b62f06a4caa944 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 5 Sep 2019 22:05:04 +0200 Subject: [PATCH] - fix building with glibc 2.30 --- glibc-2.30.patch | 20 ++++++++++++++++++++ postfix.spec | 4 +++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 glibc-2.30.patch diff --git a/glibc-2.30.patch b/glibc-2.30.patch new file mode 100644 index 0000000..8a92780 --- /dev/null +++ b/glibc-2.30.patch @@ -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 diff --git a/postfix.spec b/postfix.spec index dd3a714..d9d65de 100644 --- a/postfix.spec +++ b/postfix.spec @@ -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 -- 2.44.0