diff options
author | Jeroen Roovers <jer@gentoo.org> | 2016-01-02 09:31:44 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2016-01-02 09:36:02 +0100 |
commit | 2a458168fe8d4dc408090302aabc0c4711a28a4b (patch) | |
tree | a717ea76f906c7d93c3bca5ab7dc2a18f4fb9538 /sys-block/nbd | |
parent | dev-ruby/rack-cache: add dependency on new enough minitest, bug 565882 (diff) | |
download | gentoo-2a458168fe8d4dc408090302aabc0c4711a28a4b.tar.gz gentoo-2a458168fe8d4dc408090302aabc0c4711a28a4b.tar.bz2 gentoo-2a458168fe8d4dc408090302aabc0c4711a28a4b.zip |
sys-block/nbd: Fix bigendian build.
Package-Manager: portage-2.2.26
Diffstat (limited to 'sys-block/nbd')
-rw-r--r-- | sys-block/nbd/files/nbd-3.12.1-readit-and-weep.patch | 16 | ||||
-rw-r--r-- | sys-block/nbd/nbd-3.12.1.ebuild | 6 |
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 \ |