commit:     2a458168fe8d4dc408090302aabc0c4711a28a4b
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  2 08:31:44 2016 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Jan  2 08:36:02 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a458168

sys-block/nbd: Fix bigendian build.

Package-Manager: portage-2.2.26

 sys-block/nbd/files/nbd-3.12.1-readit-and-weep.patch | 16 ++++++++++++++++
 sys-block/nbd/nbd-3.12.1.ebuild                      |  6 +++++-
 2 files changed, 21 insertions(+), 1 deletion(-)

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
new file mode 100644
index 0000000..6e0a31d
--- /dev/null
+++ b/sys-block/nbd/files/nbd-3.12.1-readit-and-weep.patch
@@ -0,0 +1,16 @@
+--- a/cliserv.c
++++ b/cliserv.c
+@@ -81,6 +81,7 @@
+       hi = ntohl(hi);
+       return ((u64) lo) << 32U | hi;
+ }
++#endif
+ 
+ /**
+  * Read data from a file descriptor into a buffer
+@@ -103,5 +104,3 @@
+               }
+       }
+ }
+-
+-#endif

diff --git a/sys-block/nbd/nbd-3.12.1.ebuild b/sys-block/nbd/nbd-3.12.1.ebuild
index 566cdcf..9d504e4 100644
--- a/sys-block/nbd/nbd-3.12.1.ebuild
+++ b/sys-block/nbd/nbd-3.12.1.ebuild
@@ -4,7 +4,7 @@
 
 EAPI="4"
 
-inherit toolchain-funcs
+inherit eutils toolchain-funcs
 
 DESCRIPTION="Userland client/server for kernel network block device"
 HOMEPAGE="http://nbd.sourceforge.net/";
@@ -20,6 +20,10 @@ RDEPEND=">=dev-libs/glib-2.0
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+src_prepare() {
+       epatch "${FILESDIR}"/nbd-3.12.1-readit-and-weep.patch
+}
+
 src_configure() {
        econf \
                --enable-lfs \

Reply via email to