summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-block/nbd/files/nbd-3.12.1-readit-and-weep.patch16
-rw-r--r--sys-block/nbd/nbd-3.12.1.ebuild6
2 files changed, 21 insertions, 1 deletions
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 000000000000..6e0a31d6b4ea
--- /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 566cdcf1596b..9d504e4d4125 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 \