commit: 4b8605982b246ed5c6ff895fa32b4e603ca602ad
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 3 04:04:52 2017 +0000
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Tue Jan 3 04:06:53 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b860598
sys-block/open-isns: fix builds on musl
This patch is in place as the code path it changes fixes is
only accessible on musl based systems and only fails to compile
on musl based systems.
Package-Manager: portage-2.3.0
sys-block/open-isns/files/open-isns-0.97-musl.patch | 11 +++++++++++
sys-block/open-isns/open-isns-0.97.ebuild | 2 ++
2 files changed, 13 insertions(+)
diff --git a/sys-block/open-isns/files/open-isns-0.97-musl.patch
b/sys-block/open-isns/files/open-isns-0.97-musl.patch
new file mode 100644
index 00000000..098ade4
--- /dev/null
+++ b/sys-block/open-isns/files/open-isns-0.97-musl.patch
@@ -0,0 +1,11 @@
+--- ./include/libisns/util.h.orig
++++ ./include/libisns/util.h
+@@ -114,6 +114,6 @@
+ # define ntohll(x) __bswap_64(x)
+ # endif
+ # else
+-# include <sys/endian.h>
++# include <endian.h>
+ # define htonll(x) htobe64(x)
+ # define ntohll(x) be64toh(x)
+ # endif
diff --git a/sys-block/open-isns/open-isns-0.97.ebuild
b/sys-block/open-isns/open-isns-0.97.ebuild
index fd74686..c742bff 100644
--- a/sys-block/open-isns/open-isns-0.97.ebuild
+++ b/sys-block/open-isns/open-isns-0.97.ebuild
@@ -20,6 +20,8 @@ DEPEND="
slp? ( net-libs/openslp )"
RDEPEND="${DEPEND}"
+PATCHES=( "${FILESDIR}/${PN}-${PV}-musl.patch" )
+
src_configure() {
use debug && append-cppflags -DDEBUG_TCP -DDEBUG_SCSI
append-lfs-flags