From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/5] postfix: Fix FTBFS with glibc >= 2.30 Date: Wed, 05 Feb 2020 11:45:44 +0000 Message-ID: <20200205114547.16047-2-michael.tremer@ipfire.org> In-Reply-To: <20200205114547.16047-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4502064131932173483==" List-Id: --===============4502064131932173483== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- lfs/postfix | 1 + .../postfix-3.4.8-build-fix-glibc-2.30.patch | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 src/patches/postfix-3.4.8-build-fix-glibc-2.30.patch diff --git a/lfs/postfix b/lfs/postfix index 887051470..f23636478 100644 --- a/lfs/postfix +++ b/lfs/postfix @@ -99,6 +99,7 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/postfix-3.4.8-build-fi= x-glibc-2.30.patch cd $(DIR_APP) && make -f Makefile.init makefiles \ DEBUG=3D"" OPT=3D"$(CFLAGS) -fno-strict-aliasing" CCARGS=3D"$(CCARGS)" AUX= LIBS=3D"$(AUXLIBS)" cd $(DIR_APP) && make $(MAKETUNING) diff --git a/src/patches/postfix-3.4.8-build-fix-glibc-2.30.patch b/src/patch= es/postfix-3.4.8-build-fix-glibc-2.30.patch new file mode 100644 index 000000000..c36baf0b9 --- /dev/null +++ b/src/patches/postfix-3.4.8-build-fix-glibc-2.30.patch @@ -0,0 +1,51 @@ +Description: fix build with glibc 2.30 + glibc 2.30 release notes at + https://savannah.gnu.org/forum/forum.php?forum_id=3D9515 states: + """ + Support for the "inet6" option in /etc/resolv.conf and the RES_USE_INET6 + resolver flag (deprecated in glibc 2.25) have been removed. + ... + The obsolete RES_INSECURE1 and RES_INSECURE2 option flags for the DNS stub + resolver have been removed from . + """ + And RES_AAONLY and RES_PRIMARY are already flagged as deprecated and are + being guarded with the same fix. +Origin: upstream, https://github.com/vdukhovni/postfix/commit/3274c3cea9d739= f86e84b65664aabb692e37e83f#diff-777bfb681a1cd539ddc8e1e606959ffa +Bug: http://postfix.1071664.n5.nabble.com/build-failure-with-glibc-2-30-td10= 2511.html +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1842923 +Last-Update: 2019-09-05 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +diff --git a/postfix/src/dns/dns_str_resflags.c b/postfix/src/dns/dns_str_re= sflags.c +index 5f2cce5e..472394c3 100644 +--- a/src/dns/dns_str_resflags.c ++++ b/src/dns/dns_str_resflags.c +@@ -52,18 +52,28 @@ + static const LONG_NAME_MASK resflag_table[] =3D { + "RES_INIT", RES_INIT, + "RES_DEBUG", RES_DEBUG, ++#ifdef RES_AAONLY + "RES_AAONLY", RES_AAONLY, ++#endif + "RES_USEVC", RES_USEVC, ++#ifdef RES_PRIMARY + "RES_PRIMARY", RES_PRIMARY, ++#endif + "RES_IGNTC", RES_IGNTC, + "RES_RECURSE", RES_RECURSE, + "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 --=20 2.20.1 --===============4502064131932173483==--