From c2477a76b1edeb7bec683b4f924b16ff53a6798f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 23 Mar 2024 07:56:14 -0400 Subject: [PATCH] net-dns/djbdns: hide -Wincompatible-pointer-types problems This is the worst solution to this problem, but our djbdns package isn't djbdns at all, it's twenty patches in a trenchcoat. Maintenance for things like this typically comes in the form of yet more downstream patches, but invasive patches are essentially blocked by the fact that they introduce conflicts with the others. There is at least one big patch, the ipv6 patch, that is maintained by someone else, so it's not as simple as basing all new patches on top of the old ones. For lack of a better solution, we append -Wno-error for this warning. Closes: https://bugs.gentoo.org/927539 Signed-off-by: Michael Orlitzky --- net-dns/djbdns/djbdns-1.05-r39.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net-dns/djbdns/djbdns-1.05-r39.ebuild b/net-dns/djbdns/djbdns-1.05-r39.ebuild index 77ba586d70d90..9b70fbb959bb3 100644 --- a/net-dns/djbdns/djbdns-1.05-r39.ebuild +++ b/net-dns/djbdns/djbdns-1.05-r39.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit readme.gentoo-r1 toolchain-funcs +inherit flag-o-matic readme.gentoo-r1 toolchain-funcs DESCRIPTION="Collection of DNS client/server software" HOMEPAGE="https://cr.yp.to/djbdns.html" @@ -81,6 +81,10 @@ src_prepare() { } src_compile() { + # Bug 927539. This is beyond our ability to realistically fix due + # to patch conflicts. + append-cflags $(test-flags-CC -Wno-error=incompatible-pointer-types) + echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die echo "/usr" > conf-home || die