1 |
commit: 4b8605982b246ed5c6ff895fa32b4e603ca602ad |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 3 04:04:52 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 3 04:06:53 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b860598 |
7 |
|
8 |
sys-block/open-isns: fix builds on musl |
9 |
|
10 |
This patch is in place as the code path it changes fixes is |
11 |
only accessible on musl based systems and only fails to compile |
12 |
on musl based systems. |
13 |
|
14 |
Package-Manager: portage-2.3.0 |
15 |
|
16 |
sys-block/open-isns/files/open-isns-0.97-musl.patch | 11 +++++++++++ |
17 |
sys-block/open-isns/open-isns-0.97.ebuild | 2 ++ |
18 |
2 files changed, 13 insertions(+) |
19 |
|
20 |
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 |
21 |
new file mode 100644 |
22 |
index 00000000..098ade4 |
23 |
--- /dev/null |
24 |
+++ b/sys-block/open-isns/files/open-isns-0.97-musl.patch |
25 |
@@ -0,0 +1,11 @@ |
26 |
+--- ./include/libisns/util.h.orig |
27 |
++++ ./include/libisns/util.h |
28 |
+@@ -114,6 +114,6 @@ |
29 |
+ # define ntohll(x) __bswap_64(x) |
30 |
+ # endif |
31 |
+ # else |
32 |
+-# include <sys/endian.h> |
33 |
++# include <endian.h> |
34 |
+ # define htonll(x) htobe64(x) |
35 |
+ # define ntohll(x) be64toh(x) |
36 |
+ # endif |
37 |
|
38 |
diff --git a/sys-block/open-isns/open-isns-0.97.ebuild b/sys-block/open-isns/open-isns-0.97.ebuild |
39 |
index fd74686..c742bff 100644 |
40 |
--- a/sys-block/open-isns/open-isns-0.97.ebuild |
41 |
+++ b/sys-block/open-isns/open-isns-0.97.ebuild |
42 |
@@ -20,6 +20,8 @@ DEPEND=" |
43 |
slp? ( net-libs/openslp )" |
44 |
RDEPEND="${DEPEND}" |
45 |
|
46 |
+PATCHES=( "${FILESDIR}/${PN}-${PV}-musl.patch" ) |
47 |
+ |
48 |
src_configure() { |
49 |
use debug && append-cppflags -DDEBUG_TCP -DDEBUG_SCSI |
50 |
append-lfs-flags |