1 |
Signed-off-by: Leno Hou <lenohou@×××××.com> |
2 |
--- |
3 |
.../files/hfsplusutils-1.0.4-gcc5.patch | 98 ++++++++++++++++++++++ |
4 |
sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild | 1 + |
5 |
2 files changed, 99 insertions(+) |
6 |
create mode 100644 sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-gcc5.patch |
7 |
|
8 |
diff --git a/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-gcc5.patch b/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-gcc5.patch |
9 |
new file mode 100644 |
10 |
index 0000000..3dacd57 |
11 |
--- /dev/null |
12 |
+++ b/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-gcc5.patch |
13 |
@@ -0,0 +1,98 @@ |
14 |
+--- libhfsp/src/blockiter.h.orig 2016-04-15 16:32:04.548299500 +0000 |
15 |
++++ libhfsp/src/blockiter.h 2016-04-15 16:32:24.920515955 +0000 |
16 |
+@@ -52,9 +52,4 @@ |
17 |
+ extern int blockiter_skip(blockiter *b, UInt32 skip); |
18 |
+ |
19 |
+ /* return current block */ |
20 |
+-extern inline UInt32 blockiter_curr(blockiter *b) |
21 |
+-{ |
22 |
+- return b->e->start_block + b->block; |
23 |
+-} |
24 |
+- |
25 |
+- |
26 |
++extern inline UInt32 blockiter_curr(blockiter *b); |
27 |
+--- libhfsp/src/libhfsp.h.orig 2016-04-15 16:32:45.888738808 +0000 |
28 |
++++ libhfsp/src/libhfsp.h 2016-04-15 16:33:12.809024783 +0000 |
29 |
+@@ -90,15 +90,7 @@ |
30 |
+ |
31 |
+ |
32 |
+ /** helper function to create those Apple 4 byte Signatures */ |
33 |
+-extern inline UInt32 sig(char c0, char c1, char c2, char c3) |
34 |
+-{ |
35 |
+- UInt32 sig; |
36 |
+- ((char*)&sig)[0] = c0; |
37 |
+- ((char*)&sig)[1] = c1; |
38 |
+- ((char*)&sig)[2] = c2; |
39 |
+- ((char*)&sig)[3] = c3; |
40 |
+- return sig; |
41 |
+-} |
42 |
++extern inline UInt32 sig(char c0, char c1, char c2, char c3); |
43 |
+ |
44 |
+ |
45 |
+ |
46 |
+--- libhfsp/src/volume.h.orig 2016-04-15 16:34:29.641839177 +0000 |
47 |
++++ libhfsp/src/volume.h 2016-04-15 16:35:03.154194245 +0000 |
48 |
+@@ -75,12 +75,7 @@ |
49 |
+ extern void volume_create_extents_tree(volume* vol); |
50 |
+ |
51 |
+ /* accessor for entends btree, is created on demand */ |
52 |
+-extern inline btree* volume_get_extents_tree(volume* vol) |
53 |
+-{ |
54 |
+- if (!vol->extents) |
55 |
+- volume_create_extents_tree(vol); |
56 |
+- return vol->extents; |
57 |
+-} |
58 |
++extern inline btree* volume_get_extents_tree(volume* vol); |
59 |
+ |
60 |
+ /* return new Id for files/folder and check for overflow. |
61 |
+ * |
62 |
+--- src/dstring.h.orig 2016-04-15 16:38:14.404216390 +0000 |
63 |
++++ src/dstring.h 2016-04-15 16:38:45.344543346 +0000 |
64 |
+@@ -42,13 +42,6 @@ |
65 |
+ extern void dstring_shrink(dstring *, size_t); |
66 |
+ extern void dstring_free(dstring *); |
67 |
+ |
68 |
+-extern inline char *dstring_string(dstring *string) |
69 |
+-{ |
70 |
+- return string->str; |
71 |
+-} |
72 |
+- |
73 |
+-extern inline int dstring_length(dstring *string) |
74 |
+-{ |
75 |
+- return string->len; |
76 |
+-} |
77 |
++extern inline char *dstring_string(dstring *string); |
78 |
++extern inline int dstring_length(dstring *string); |
79 |
+ |
80 |
+--- src/dlist.h.orig 2016-04-15 16:39:16.336870099 +0000 |
81 |
++++ src/dlist.h 2016-04-15 16:39:55.697284793 +0000 |
82 |
+@@ -36,14 +36,5 @@ |
83 |
+ extern int dlist_append(dlist *, const char *); |
84 |
+ |
85 |
+ /* return the array of strings in a list; can dispose with free() */ |
86 |
+-extern inline char **dlist_array(dlist *list) |
87 |
+-{ |
88 |
+- return (char **) list->mem; |
89 |
+-} |
90 |
+- |
91 |
+-/* return the number of strings in a list */ |
92 |
+-extern inline int dlist_size(dlist *list) |
93 |
+-{ |
94 |
+- return list->eltend - (char **) list->mem; |
95 |
+-} |
96 |
+- |
97 |
++extern inline char **dlist_array(dlist *list); |
98 |
++extern inline int dlist_size(dlist *list); |
99 |
+--- src/darray.h.orig 2016-04-15 16:43:23.775481365 +0000 |
100 |
++++ src/darray.h 2016-04-15 16:43:41.807671388 +0000 |
101 |
+@@ -40,9 +40,4 @@ |
102 |
+ extern void darray_sort(darray *, int (*)(const void *, const void *)); |
103 |
+ |
104 |
+ /* return the array as an indexable block */ |
105 |
+-extern inline void *darray_array(darray *array) |
106 |
+-{ |
107 |
+- return (void *) array->mem; |
108 |
+-} |
109 |
+- |
110 |
+- |
111 |
++extern inline void *darray_array(darray *array); |
112 |
diff --git a/sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild b/sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild |
113 |
index aa6fe7c..e673c04 100644 |
114 |
--- a/sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild |
115 |
+++ b/sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild |
116 |
@@ -26,6 +26,7 @@ src_unpack() { |
117 |
epatch "${FILESDIR}/${P}-errno.patch" |
118 |
epatch "${FILESDIR}/${P}-gcc4.patch" |
119 |
epatch "${FILESDIR}/${P}-string.patch" |
120 |
+ epatch "${FILESDIR}/${P}-gcc5.patch" |
121 |
#let's avoid the Makefile.cvs since isn't working for us |
122 |
eautoreconf |
123 |
} |
124 |
-- |
125 |
2.1.4 |