1 |
commit: 5536cd18a01bb593e72daa0dfe54297022cb5e7a |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 2 18:18:56 2022 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 2 18:20:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5536cd18 |
7 |
|
8 |
sys-block/open-iscsi: version bump to 2.1.7, various fixes |
9 |
|
10 |
- drop (parts of the) old patches for 2.1.6 as they have been upstreamed |
11 |
|
12 |
- remove -Werror from compiler command line |
13 |
|
14 |
- remove hardcoded sed path |
15 |
|
16 |
- use __bitwise instead of __bitwise__ macro. The latter seems to be a |
17 |
typo |
18 |
|
19 |
Bug: https://bugs.gentoo.org/847418 |
20 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
21 |
|
22 |
sys-block/open-iscsi/Manifest | 1 + |
23 |
.../files/open-iscsi-2.1.7-fix_bitwise.patch | 52 +++++++++++++++++ |
24 |
.../files/open-iscsi-2.1.7-fix_sed.patch | 67 ++++++++++++++++++++++ |
25 |
.../files/open-iscsi-2.1.7-no_werror.patch | 26 +++++++++ |
26 |
sys-block/open-iscsi/open-iscsi-2.1.6-r1.ebuild | 2 +- |
27 |
...csi-2.1.6-r1.ebuild => open-iscsi-2.1.7.ebuild} | 5 +- |
28 |
6 files changed, 150 insertions(+), 3 deletions(-) |
29 |
|
30 |
diff --git a/sys-block/open-iscsi/Manifest b/sys-block/open-iscsi/Manifest |
31 |
index 29d5b970a89c..4c6d1313583c 100644 |
32 |
--- a/sys-block/open-iscsi/Manifest |
33 |
+++ b/sys-block/open-iscsi/Manifest |
34 |
@@ -1,2 +1,3 @@ |
35 |
DIST open-iscsi-2.1.4.tar.gz 621247 BLAKE2B 043a999b2f397a6c740d61654079d7ab966caee6cf6cfb244ddd70eae4f5201045b371ce5fbe244216a2a210a5379c92e8c3fbe62d33707cf05e7a4a20a13a91 SHA512 ae0663a964d86e6a4c19203598b859173c93ecce550f9bc9855ff735dd51a3c45822f2bc1cc99e6891c56ef1d16c42223803f07a961558fe6e38ead2164faef3 |
36 |
DIST open-iscsi-2.1.6.tar.gz 623721 BLAKE2B c7c09e38fd10bd5c2a5e8ad8030cf2338de3382fe4acae0e3c1bf3cacb6e244e411b7556403e0c43fd03035836f46cc4836683188e2f159cd7fc066aef78a868 SHA512 4a32a76c1c32d7d1a01fe3a0f88ce9616a54323ec043757be73051eb41ebae8de90ce057acce72fb6fe07aa47e814c9bc6ee88b13fa7d7769ca10c5175974f1d |
37 |
+DIST open-iscsi-2.1.7.tar.gz 627848 BLAKE2B c8b572dc71046b722b9455799b4360c17963f05ce2cac48f122d40fc61bef6f01b98287003fc222bdb0dd4706218add8c41d3eb40464023b9b240a8205069dd3 SHA512 619c57b988c6972da09428b3a84ca375ca46653fbfca9cb61389c70a95871b665f93b75b8e6ff2aa993bdb89e2a078a188c0a7b45c3bf9c15a16b496e9ebc892 |
38 |
|
39 |
diff --git a/sys-block/open-iscsi/files/open-iscsi-2.1.7-fix_bitwise.patch b/sys-block/open-iscsi/files/open-iscsi-2.1.7-fix_bitwise.patch |
40 |
new file mode 100644 |
41 |
index 000000000000..2ff094c83f0f |
42 |
--- /dev/null |
43 |
+++ b/sys-block/open-iscsi/files/open-iscsi-2.1.7-fix_bitwise.patch |
44 |
@@ -0,0 +1,52 @@ |
45 |
+From 0a6432de1a2186449d5e6557f75a9f30e487471d Mon Sep 17 00:00:00 2001 |
46 |
+From: Matthias Maier <tamiko@××××.org> |
47 |
+Date: Thu, 2 Jun 2022 13:12:43 -0500 |
48 |
+Subject: [PATCH] Use __bitwise instead of __bitwise__ |
49 |
+ |
50 |
+The iscsi_proto.h header goes into great length ensuring that the |
51 |
+__bitwise macro is defined: |
52 |
+ |
53 |
+ #if !defined(__bitwise) |
54 |
+ /* |
55 |
+ * If running svn modules we may need to define these. |
56 |
+ * This should not go upstream since this is already properly defined there |
57 |
+ */ |
58 |
+ #ifdef __CHECKER__ |
59 |
+ #define __bitwise__ __attribute__((bitwise)) |
60 |
+ #else |
61 |
+ #define __bitwise__ |
62 |
+ #endif |
63 |
+ #ifdef __CHECK_ENDIAN__ |
64 |
+ #define __bitwise __bitwise__ |
65 |
+ #else |
66 |
+ #define __bitwise |
67 |
+ #endif |
68 |
+ #endif |
69 |
+ |
70 |
+But then uses the __bitwise__ macro instead: |
71 |
+ |
72 |
+ typedef uint32_t __bitwise__ itt_t; |
73 |
+ |
74 |
+(This is the only occurence where the __bitwise__ (or __bitwise) macro |
75 |
+is actually used). This seems to be a typo, changing this to __bitwise |
76 |
+fixes compilation with gcc-11 onwards. |
77 |
+--- |
78 |
+ include/iscsi_proto.h | 2 +- |
79 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
80 |
+ |
81 |
+diff --git a/include/iscsi_proto.h b/include/iscsi_proto.h |
82 |
+index 1d14b89..3fe9018 100644 |
83 |
+--- a/include/iscsi_proto.h |
84 |
++++ b/include/iscsi_proto.h |
85 |
+@@ -63,7 +63,7 @@ |
86 |
+ #endif |
87 |
+ |
88 |
+ /* initiator tags; opaque for target */ |
89 |
+-typedef uint32_t __bitwise__ itt_t; |
90 |
++typedef uint32_t __bitwise itt_t; |
91 |
+ /* below makes sense only for initiator that created this tag */ |
92 |
+ #define build_itt(itt, age) ((__force itt_t)\ |
93 |
+ ((itt) | ((age) << ISCSI_AGE_SHIFT))) |
94 |
+-- |
95 |
+2.35.1 |
96 |
+ |
97 |
|
98 |
diff --git a/sys-block/open-iscsi/files/open-iscsi-2.1.7-fix_sed.patch b/sys-block/open-iscsi/files/open-iscsi-2.1.7-fix_sed.patch |
99 |
new file mode 100644 |
100 |
index 000000000000..ad56b823b557 |
101 |
--- /dev/null |
102 |
+++ b/sys-block/open-iscsi/files/open-iscsi-2.1.7-fix_sed.patch |
103 |
@@ -0,0 +1,67 @@ |
104 |
+From 66d76978f2ffbe276e84b03a7fac1041a7c3b4c3 Mon Sep 17 00:00:00 2001 |
105 |
+From: Matthias Maier <tamiko@××××.org> |
106 |
+Date: Thu, 2 Jun 2022 13:17:10 -0500 |
107 |
+Subject: [PATCH] Do not hardcode the path of sed |
108 |
+ |
109 |
+--- |
110 |
+ doc/Makefile | 2 +- |
111 |
+ etc/Makefile | 2 +- |
112 |
+ libopeniscsiusr/Makefile | 2 +- |
113 |
+ utils/Makefile | 2 +- |
114 |
+ 4 files changed, 4 insertions(+), 4 deletions(-) |
115 |
+ |
116 |
+diff --git a/doc/Makefile b/doc/Makefile |
117 |
+index 9ed025d..e121270 100644 |
118 |
+--- a/doc/Makefile |
119 |
++++ b/doc/Makefile |
120 |
+@@ -7,7 +7,7 @@ ifeq ($(TOPDIR),) |
121 |
+ TOPDIR = .. |
122 |
+ endif |
123 |
+ |
124 |
+-SED = /usr/bin/sed |
125 |
++SED = sed |
126 |
+ INSTALL = install |
127 |
+ |
128 |
+ DESTDIR ?= |
129 |
+diff --git a/etc/Makefile b/etc/Makefile |
130 |
+index d065319..2d98027 100644 |
131 |
+--- a/etc/Makefile |
132 |
++++ b/etc/Makefile |
133 |
+@@ -19,7 +19,7 @@ initddir ?= $(etcdir)/init.d |
134 |
+ |
135 |
+ HOMEDIR ?= $(etcdir)/iscsi |
136 |
+ |
137 |
+-SED = /usr/bin/sed |
138 |
++SED = sed |
139 |
+ INSTALL = install |
140 |
+ |
141 |
+ SYSTEMD_SOURCE_FILES = iscsid.socket iscsiuio.socket |
142 |
+diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile |
143 |
+index 523518b..90903dd 100644 |
144 |
+--- a/libopeniscsiusr/Makefile |
145 |
++++ b/libopeniscsiusr/Makefile |
146 |
+@@ -29,7 +29,7 @@ PKGCONF_DIR ?= $(LIB_DIR)/pkgconfig |
147 |
+ MAN_DIR = $(prefix)/share/man |
148 |
+ |
149 |
+ PKG_CONFIG ?= /usr/bin/pkg-config |
150 |
+-SED ?= /usr/bin/sed |
151 |
++SED ?= sed |
152 |
+ |
153 |
+ LIBISCSI_USR_DIR=$(TOPDIR)/libopeniscsiusr |
154 |
+ |
155 |
+diff --git a/utils/Makefile b/utils/Makefile |
156 |
+index a7eb352..15539eb 100644 |
157 |
+--- a/utils/Makefile |
158 |
++++ b/utils/Makefile |
159 |
+@@ -7,7 +7,7 @@ |
160 |
+ # from the top-level make file. |
161 |
+ # |
162 |
+ |
163 |
+-SED = /usr/bin/sed |
164 |
++SED = sed |
165 |
+ INSTALL = install |
166 |
+ CHMOD = chmod |
167 |
+ |
168 |
+-- |
169 |
+2.35.1 |
170 |
+ |
171 |
|
172 |
diff --git a/sys-block/open-iscsi/files/open-iscsi-2.1.7-no_werror.patch b/sys-block/open-iscsi/files/open-iscsi-2.1.7-no_werror.patch |
173 |
new file mode 100644 |
174 |
index 000000000000..a94caebafb13 |
175 |
--- /dev/null |
176 |
+++ b/sys-block/open-iscsi/files/open-iscsi-2.1.7-no_werror.patch |
177 |
@@ -0,0 +1,26 @@ |
178 |
+diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile |
179 |
+index 52e453a..523518b 100644 |
180 |
+--- a/libopeniscsiusr/Makefile |
181 |
++++ b/libopeniscsiusr/Makefile |
182 |
+@@ -51,7 +51,7 @@ EXTRA_MAN_FILES = libopeniscsiusr.h.3 |
183 |
+ OBJS = context.o misc.o session.o sysfs.o iface.o idbm.o node.o default.o |
184 |
+ |
185 |
+ CFLAGS ?= -O2 -g |
186 |
+-CFLAGS += -Wall -Werror -Wextra -fvisibility=hidden -fPIC |
187 |
++CFLAGS += -Wall -Wextra -fvisibility=hidden -fPIC |
188 |
+ CFLAGS += $(shell $(PKG_CONFIG) --cflags libkmod) |
189 |
+ CFLAGS += -DSBINDIR=\"$(SBINDIR)\" |
190 |
+ CFLAGS += -DISCSI_DB_ROOT=\"$(DBROOT)\" |
191 |
+diff --git a/usr/Makefile b/usr/Makefile |
192 |
+index 3fc2248..c3580a3 100644 |
193 |
+--- a/usr/Makefile |
194 |
++++ b/usr/Makefile |
195 |
+@@ -44,7 +44,7 @@ HOMEDIR ?= $(etcdir)/iscsi |
196 |
+ PKG_CONFIG ?= /usr/bin/pkg-config |
197 |
+ |
198 |
+ CFLAGS ?= -O2 -g |
199 |
+-WARNFLAGS ?= -Wall -Wextra -Werror -Wstrict-prototypes -fno-common |
200 |
++WARNFLAGS ?= -Wall -Wextra -Wstrict-prototypes -fno-common |
201 |
+ CFLAGS += $(WARNFLAGS) -I../include -I. -D_GNU_SOURCE \ |
202 |
+ -I$(TOPDIR)/libopeniscsiusr |
203 |
+ CFLAGS += $(shell $(PKG_CONFIG) --cflags libkmod) |
204 |
|
205 |
diff --git a/sys-block/open-iscsi/open-iscsi-2.1.6-r1.ebuild b/sys-block/open-iscsi/open-iscsi-2.1.6-r1.ebuild |
206 |
index 576fdc85f330..2f006231aaa2 100644 |
207 |
--- a/sys-block/open-iscsi/open-iscsi-2.1.6-r1.ebuild |
208 |
+++ b/sys-block/open-iscsi/open-iscsi-2.1.6-r1.ebuild |
209 |
@@ -29,7 +29,7 @@ RDEPEND="${DEPEND} |
210 |
BDEPEND="virtual/pkgconfig" |
211 |
|
212 |
PATCHES=( |
213 |
- "${FILESDIR}"/${PN}-2.1.1-Makefiles.patch |
214 |
+ "${FILESDIR}"/${PN}-2.1.7-NoWError.patch |
215 |
"${FILESDIR}"/open-iscsi-2.1.6-Makefiles.patch |
216 |
) |
217 |
|
218 |
|
219 |
diff --git a/sys-block/open-iscsi/open-iscsi-2.1.6-r1.ebuild b/sys-block/open-iscsi/open-iscsi-2.1.7.ebuild |
220 |
similarity index 96% |
221 |
copy from sys-block/open-iscsi/open-iscsi-2.1.6-r1.ebuild |
222 |
copy to sys-block/open-iscsi/open-iscsi-2.1.7.ebuild |
223 |
index 576fdc85f330..3bf611eea398 100644 |
224 |
--- a/sys-block/open-iscsi/open-iscsi-2.1.6-r1.ebuild |
225 |
+++ b/sys-block/open-iscsi/open-iscsi-2.1.7.ebuild |
226 |
@@ -29,8 +29,9 @@ RDEPEND="${DEPEND} |
227 |
BDEPEND="virtual/pkgconfig" |
228 |
|
229 |
PATCHES=( |
230 |
- "${FILESDIR}"/${PN}-2.1.1-Makefiles.patch |
231 |
- "${FILESDIR}"/open-iscsi-2.1.6-Makefiles.patch |
232 |
+ "${FILESDIR}"/${PN}-2.1.7-fix_bitwise.patch |
233 |
+ "${FILESDIR}"/${PN}-2.1.7-fix_sed.patch |
234 |
+ "${FILESDIR}"/${PN}-2.1.7-no_werror.patch |
235 |
) |
236 |
|
237 |
pkg_setup() { |