summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Janda <felix.janda@posteo.de>2016-11-27 18:56:04 -0500
committerMike Frysinger <vapier@gentoo.org>2016-11-27 18:56:04 -0500
commit5a7c2b8a0244b71e7f74deb45c78fdb69e6305e3 (patch)
tree21938e681b6dc93a99b944a5cd3cde9dbe809ac2 /sys-apps
parentsys-block/tgt: fix bashisms in init.d script (diff)
downloadgentoo-5a7c2b8a0244b71e7f74deb45c78fdb69e6305e3.tar.gz
gentoo-5a7c2b8a0244b71e7f74deb45c78fdb69e6305e3.tar.bz2
gentoo-5a7c2b8a0244b71e7f74deb45c78fdb69e6305e3.zip
sys-apps/usermode-utilities: fix build w/newer glibc #580816
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/usermode-utilities/files/usermode-utilities-20070815-headers.patch27
-rw-r--r--sys-apps/usermode-utilities/usermode-utilities-20070815-r3.ebuild2
2 files changed, 29 insertions, 0 deletions
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 000000000000..13fd556ec98d
--- /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 b6ae228bc591..5544e69e48d4 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