1 |
commit: 2a458168fe8d4dc408090302aabc0c4711a28a4b |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 08:31:44 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 08:36:02 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a458168 |
7 |
|
8 |
sys-block/nbd: Fix bigendian build. |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
sys-block/nbd/files/nbd-3.12.1-readit-and-weep.patch | 16 ++++++++++++++++ |
13 |
sys-block/nbd/nbd-3.12.1.ebuild | 6 +++++- |
14 |
2 files changed, 21 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/sys-block/nbd/files/nbd-3.12.1-readit-and-weep.patch b/sys-block/nbd/files/nbd-3.12.1-readit-and-weep.patch |
17 |
new file mode 100644 |
18 |
index 0000000..6e0a31d |
19 |
--- /dev/null |
20 |
+++ b/sys-block/nbd/files/nbd-3.12.1-readit-and-weep.patch |
21 |
@@ -0,0 +1,16 @@ |
22 |
+--- a/cliserv.c |
23 |
++++ b/cliserv.c |
24 |
+@@ -81,6 +81,7 @@ |
25 |
+ hi = ntohl(hi); |
26 |
+ return ((u64) lo) << 32U | hi; |
27 |
+ } |
28 |
++#endif |
29 |
+ |
30 |
+ /** |
31 |
+ * Read data from a file descriptor into a buffer |
32 |
+@@ -103,5 +104,3 @@ |
33 |
+ } |
34 |
+ } |
35 |
+ } |
36 |
+- |
37 |
+-#endif |
38 |
|
39 |
diff --git a/sys-block/nbd/nbd-3.12.1.ebuild b/sys-block/nbd/nbd-3.12.1.ebuild |
40 |
index 566cdcf..9d504e4 100644 |
41 |
--- a/sys-block/nbd/nbd-3.12.1.ebuild |
42 |
+++ b/sys-block/nbd/nbd-3.12.1.ebuild |
43 |
@@ -4,7 +4,7 @@ |
44 |
|
45 |
EAPI="4" |
46 |
|
47 |
-inherit toolchain-funcs |
48 |
+inherit eutils toolchain-funcs |
49 |
|
50 |
DESCRIPTION="Userland client/server for kernel network block device" |
51 |
HOMEPAGE="http://nbd.sourceforge.net/" |
52 |
@@ -20,6 +20,10 @@ RDEPEND=">=dev-libs/glib-2.0 |
53 |
DEPEND="${RDEPEND} |
54 |
virtual/pkgconfig" |
55 |
|
56 |
+src_prepare() { |
57 |
+ epatch "${FILESDIR}"/nbd-3.12.1-readit-and-weep.patch |
58 |
+} |
59 |
+ |
60 |
src_configure() { |
61 |
econf \ |
62 |
--enable-lfs \ |