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 <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2024-03-23 07:56:14 -04:00
parent d289b73c23
commit c2477a76b1

View File

@@ -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