commit:     e219ad8be80cbe165b40781c2841c4d6eeb07c90
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 30 22:32:49 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Aug 30 22:33:40 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e219ad8b

sys-apps/tcp-wrappers: fix USE=-ipv6

Closes: https://bugs.gentoo.org/692416
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 .../files/tcp-wrappers-7.6.28-no-external-malloc.patch    | 15 +++++++++++++++
 sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild          |  1 +
 2 files changed, 16 insertions(+)

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
index 00000000000..eebd600aab2
--- /dev/null
+++ b/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch
@@ -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"

diff --git a/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild 
b/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild
index 00e58c8c433..8e96239d916 100644
--- a/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild
+++ b/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild
@@ -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
 

Reply via email to