sys-apps/usermode-utilities: fix build w/newer glibc #580816
authorFelix Janda <felix.janda@posteo.de>
Sun, 27 Nov 2016 23:56:04 +0000 (18:56 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 27 Nov 2016 23:56:04 +0000 (18:56 -0500)
sys-apps/usermode-utilities/files/usermode-utilities-20070815-headers.patch [new file with mode: 0644]
sys-apps/usermode-utilities/usermode-utilities-20070815-r3.ebuild

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 (file)
index 0000000..13fd556
--- /dev/null
@@ -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"
index b6ae228bc591648cf53cfbe3740e131986516ee3..5544e69e48d4126fc921a82e0bdd46315b18d73d 100644 (file)
@@ -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