1 |
commit: 37f9b7c2560e861f5148f96bf80ec97b287495bc |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 12 10:24:33 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 12 10:24:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37f9b7c2 |
7 |
|
8 |
sys-apps/usermode-utilities: Use proper fuse slot |
9 |
|
10 |
Closes: https://bugs.gentoo.org/673674 |
11 |
Package-Manager: Portage-2.3.53, Repoman-2.3.12 |
12 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
13 |
|
14 |
.../usermode-utilities-20070815-headers.patch | 8 ++-- |
15 |
.../usermode-utilities-20070815-r4.ebuild | 44 ++++++++++++++++++++++ |
16 |
2 files changed, 48 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/usermode-utilities/files/usermode-utilities-20070815-headers.patch b/sys-apps/usermode-utilities/files/usermode-utilities-20070815-headers.patch |
19 |
index 13fd556ec98..00531a1db2b 100644 |
20 |
--- a/sys-apps/usermode-utilities/files/usermode-utilities-20070815-headers.patch |
21 |
+++ b/sys-apps/usermode-utilities/files/usermode-utilities-20070815-headers.patch |
22 |
@@ -2,8 +2,8 @@ https://bugs.gentoo.org/580816 |
23 |
|
24 |
include headers needed by targets |
25 |
|
26 |
---- b/tools-20070815/uml_net/ethertap.c |
27 |
-+++ a/tools-20070815/uml_net/ethertap.c |
28 |
+--- b/uml_net/ethertap.c |
29 |
++++ a/uml_net/ethertap.c |
30 |
@@ -13,6 +13,7 @@ |
31 |
#include <sys/stat.h> |
32 |
#include <sys/ioctl.h> |
33 |
@@ -15,8 +15,8 @@ include headers needed by targets |
34 |
|
35 |
for major/minor macros |
36 |
|
37 |
---- b/tools-20070815/uml_net/host.c |
38 |
-+++ a/tools-20070815/uml_net/host.c |
39 |
+--- b/uml_net/host.c |
40 |
++++ a/uml_net/host.c |
41 |
@@ -10,6 +10,7 @@ |
42 |
#include <ctype.h> |
43 |
#include <sys/wait.h> |
44 |
|
45 |
diff --git a/sys-apps/usermode-utilities/usermode-utilities-20070815-r4.ebuild b/sys-apps/usermode-utilities/usermode-utilities-20070815-r4.ebuild |
46 |
new file mode 100644 |
47 |
index 00000000000..04ceb9e3621 |
48 |
--- /dev/null |
49 |
+++ b/sys-apps/usermode-utilities/usermode-utilities-20070815-r4.ebuild |
50 |
@@ -0,0 +1,44 @@ |
51 |
+# Copyright 1999-2019 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=7 |
55 |
+inherit toolchain-funcs |
56 |
+ |
57 |
+DESCRIPTION="Tools for use with Usermode Linux virtual machines" |
58 |
+HOMEPAGE="http://user-mode-linux.sourceforge.net/" |
59 |
+SRC_URI="http://user-mode-linux.sourceforge.net/uml_utilities_${PV}.tar.bz2" |
60 |
+ |
61 |
+LICENSE="GPL-2" |
62 |
+SLOT="0" |
63 |
+KEYWORDS="~amd64 ~arm ~x86" |
64 |
+IUSE="fuse" |
65 |
+ |
66 |
+RDEPEND=" |
67 |
+ fuse? ( sys-fs/fuse:0= ) |
68 |
+ sys-libs/readline:0= |
69 |
+" |
70 |
+DEPEND="${RDEPEND}" |
71 |
+ |
72 |
+S="${WORKDIR}"/tools-${PV} |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ |
77 |
+ # Merge previous patches with fix for bug #331099 |
78 |
+ eapply "${FILESDIR}"/${P}-rollup.patch |
79 |
+ # Fix owner of humfsify; bug #364531 |
80 |
+ eapply "${FILESDIR}"/${P}-humfsify-owner.patch |
81 |
+ eapply "${FILESDIR}"/${P}-headers.patch #580816 |
82 |
+ |
83 |
+ sed -i -e 's:-o \$(BIN):$(LDFLAGS) -o $(BIN):' "${S}"/*/Makefile || die "LDFLAGS sed failed" |
84 |
+ sed -i -e 's:-o \$@:$(LDFLAGS) -o $@:' "${S}"/moo/Makefile || die "LDFLAGS sed (moo) failed" |
85 |
+ if ! use fuse; then |
86 |
+ einfo "Skipping build of umlmount to avoid sys-fs/fuse dependency." |
87 |
+ sed -i -e 's/\<umlfs\>//' Makefile || die "sed to remove sys-fs/fuse dependency failed" |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+src_compile() { |
92 |
+ tc-export AR CC |
93 |
+ emake CFLAGS="${CFLAGS} ${CPPFLAGS} -DTUNTAP -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -Wall" all |
94 |
+} |