commit:     5a7c2b8a0244b71e7f74deb45c78fdb69e6305e3
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Sun Nov 27 23:56:04 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Nov 27 23:56:04 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a7c2b8a

sys-apps/usermode-utilities: fix build w/newer glibc #580816

 .../usermode-utilities-20070815-headers.patch      | 27 ++++++++++++++++++++++
 .../usermode-utilities-20070815-r3.ebuild          |  2 ++
 2 files changed, 29 insertions(+)

diff --git 
a/sys-apps/usermode-utilities/files/usermode-utilities-20070815-headers.patch 
b/sys-apps/usermode-utilities/files/usermode-utilities-20070815-headers.patch
new file mode 100644
index 00000000..13fd556
--- /dev/null
+++ 
b/sys-apps/usermode-utilities/files/usermode-utilities-20070815-headers.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/580816
+
+include headers needed by targets
+
+--- b/tools-20070815/uml_net/ethertap.c
++++ a/tools-20070815/uml_net/ethertap.c
+@@ -13,6 +13,7 @@
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
+ #include <net/if.h>
++#include <sys/select.h>
+ #include "host.h"
+ #include "output.h"
+ 
+
+for major/minor macros
+
+--- b/tools-20070815/uml_net/host.c
++++ a/tools-20070815/uml_net/host.c
+@@ -10,6 +10,7 @@
+ #include <ctype.h>
+ #include <sys/wait.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include "output.h"
+ #include "host.h"
+ 

diff --git a/sys-apps/usermode-utilities/usermode-utilities-20070815-r3.ebuild 
b/sys-apps/usermode-utilities/usermode-utilities-20070815-r3.ebuild
index b6ae228..5544e69 100644
--- a/sys-apps/usermode-utilities/usermode-utilities-20070815-r3.ebuild
+++ b/sys-apps/usermode-utilities/usermode-utilities-20070815-r3.ebuild
@@ -26,6 +26,8 @@ src_prepare() {
        epatch "${FILESDIR}"/${P}-rollup.patch
        # Fix owner of humfsify; bug #364531
        epatch "${FILESDIR}"/${P}-humfsify-owner.patch
+       epatch "${FILESDIR}"/${P}-headers.patch #580816
+
        sed -i -e 's:-o \$(BIN):$(LDFLAGS) -o $(BIN):' "${S}"/*/Makefile || die 
"LDFLAGS sed failed"
        sed -i -e 's:-o \$@:$(LDFLAGS) -o $@:' "${S}"/moo/Makefile || die 
"LDFLAGS sed (moo) failed"
        if ! use fuse; then

Reply via email to