sys-apps/tcp-wrappers: fix USE=-ipv6
authorThomas Deutschmann <whissi@gentoo.org>
Fri, 30 Aug 2019 22:32:49 +0000 (00:32 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Fri, 30 Aug 2019 22:33:40 +0000 (00:33 +0200)
Closes: https://bugs.gentoo.org/692416
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch [new file with mode: 0644]
sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild

diff --git a/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch b/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch
new file mode 100644 (file)
index 0000000..eebd600
--- /dev/null
@@ -0,0 +1,15 @@
+We use malloc() from stdlib.h.
+
+--- a/scaffold.c
++++ b/scaffold.c
+@@ -26,10 +26,6 @@ static char sccs_id[] = "@(#) scaffold.c 1.6 97/03/21 19:27:24";
+ #define       INADDR_NONE     (-1)            /* XXX should be 0xffffffff */
+ #endif
+-#ifndef INET6
+-extern char *malloc();
+-#endif
+-
+ /* Application-specific. */
+ #include "tcpd.h"
index 00e58c8c433f9d0949c708fa59f7e9f5298d7f11..8e96239d91620f12447816d17b16f478f9b0f64a 100644 (file)
@@ -25,6 +25,7 @@ S=${WORKDIR}/${MY_P}
 src_prepare() {
        eapply $(sed -e 's:^:../debian/patches/:' ../debian/patches/series)
        eapply "${FILESDIR}"/${PN}-7.6-redhat-bug11881.patch
+       eapply "${FILESDIR}"/${PN}-7.6.28-no-external-malloc.patch
 
        eapply_user