1 |
commit: 0dbc2a5b649d09b30324b7c8718ef7613e344947 |
2 |
Author: Denis Reva <denis7774 <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Apr 25 17:04:43 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sun Apr 25 17:04:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0dbc2a5b |
7 |
|
8 |
sys-fs/erofs-utils: remove obsoleted versions |
9 |
|
10 |
Attempt to fix |
11 |
https://bugs.gentoo.org/781623 |
12 |
|
13 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
14 |
Signed-off-by: Denis Reva <denis7774 <AT> gmail.com> |
15 |
|
16 |
sys-fs/erofs-utils/Manifest | 2 - |
17 |
sys-fs/erofs-utils/erofs-utils-1.1.ebuild | 33 ------------ |
18 |
sys-fs/erofs-utils/erofs-utils-1.2.1.ebuild | 7 ++- |
19 |
sys-fs/erofs-utils/erofs-utils-1.2.ebuild | 45 ---------------- |
20 |
.../files/erofs-utils-1.2-no-common.patch | 61 ---------------------- |
21 |
.../files/erofs-utils-1.2.1-no-Werror.patch | 13 +++++ |
22 |
6 files changed, 19 insertions(+), 142 deletions(-) |
23 |
|
24 |
diff --git a/sys-fs/erofs-utils/Manifest b/sys-fs/erofs-utils/Manifest |
25 |
index 99547f2a2..1ce3db33d 100644 |
26 |
--- a/sys-fs/erofs-utils/Manifest |
27 |
+++ b/sys-fs/erofs-utils/Manifest |
28 |
@@ -1,3 +1 @@ |
29 |
-DIST erofs-utils-1.1.tar.gz 46133 BLAKE2B 24a2f16059e39bd65203f4a28721b8aad70599d6201ead02c291234de631bd3def1c403fa8b50b6dce4af3eea2768b912c4f56ad20c3c26db3853ba3174775ac SHA512 f300b536f0ba91a05a7eb3dc9a9ec402c98966ad7c0e1f2f664a650caaffce6c4433722374418c6d03e69ce2e74785e55f9bcc45e6717a8bc67e5352e450806b |
30 |
DIST erofs-utils-1.2.1.tar.gz 61218 BLAKE2B 787d3c549020bf44d750ef1af8878c452683579ff545ed0a6b03a24fb5e5f559dad8dd1d00664598b7d42ec6f9d69800b087d0dcb0de147b51696b416903d712 SHA512 1b0fae6f1d7a5ee01f65e71e389c474d596be8800087beb063bfbda471c54d76f9d3f08da645cecb613b637044ff3f6b19d3c8647425261cec1646c87ad57802 |
31 |
-DIST erofs-utils-1.2.tar.gz 60991 BLAKE2B 08b9bea397f52d158a40f095811853315a3b553618f380d1ece012c813d708c2331b2a445bb59c4b86d81edab33c834e37aeb0aeeb9acb157b7aebed309cb591 SHA512 167311beb2d4722436051956076d670f6a54da72e1690d19d43e0c46dd972f9f61427b4792b469813a6a4ff2e3c445646cf063d37b4ee2b52f88eb14e7bf2713 |
32 |
|
33 |
diff --git a/sys-fs/erofs-utils/erofs-utils-1.1.ebuild b/sys-fs/erofs-utils/erofs-utils-1.1.ebuild |
34 |
deleted file mode 100644 |
35 |
index 5f029f22a..000000000 |
36 |
--- a/sys-fs/erofs-utils/erofs-utils-1.1.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,33 +0,0 @@ |
39 |
-# Copyright 1999-2021 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=7 |
43 |
- |
44 |
-inherit autotools |
45 |
- |
46 |
-DESCRIPTION="Userspace tools for EROFS images" |
47 |
-HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git" |
48 |
-SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/${P}.tar.gz" |
49 |
- |
50 |
-LICENSE="GPL-2+" |
51 |
-SLOT="0" |
52 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
53 |
-IUSE="lz4 +uuid" |
54 |
- |
55 |
-RDEPEND=" |
56 |
- lz4? ( >=app-arch/lz4-1.9 ) |
57 |
- uuid? ( sys-apps/util-linux ) |
58 |
-" |
59 |
-DEPEND="${RDEPEND}" |
60 |
-BDEPEND="virtual/pkgconfig" |
61 |
- |
62 |
-src_prepare() { |
63 |
- default |
64 |
- eautoreconf |
65 |
-} |
66 |
- |
67 |
-src_configure() { |
68 |
- econf \ |
69 |
- $(use_enable lz4) \ |
70 |
- $(use_with uuid) |
71 |
-} |
72 |
|
73 |
diff --git a/sys-fs/erofs-utils/erofs-utils-1.2.1.ebuild b/sys-fs/erofs-utils/erofs-utils-1.2.1.ebuild |
74 |
index 8441f7d88..678098001 100644 |
75 |
--- a/sys-fs/erofs-utils/erofs-utils-1.2.1.ebuild |
76 |
+++ b/sys-fs/erofs-utils/erofs-utils-1.2.1.ebuild |
77 |
@@ -3,7 +3,7 @@ |
78 |
|
79 |
EAPI=7 |
80 |
|
81 |
-inherit autotools |
82 |
+inherit autotools flag-o-matic |
83 |
|
84 |
DESCRIPTION="Userspace tools for EROFS images" |
85 |
HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git" |
86 |
@@ -23,12 +23,17 @@ RDEPEND=" |
87 |
DEPEND="${RDEPEND}" |
88 |
BDEPEND="virtual/pkgconfig" |
89 |
|
90 |
+PATCHES=( |
91 |
+ ${FILESDIR}/erofs-utils-1.2.1-no-Werror.patch |
92 |
+) |
93 |
+ |
94 |
src_prepare() { |
95 |
default |
96 |
eautoreconf |
97 |
} |
98 |
|
99 |
src_configure() { |
100 |
+ append-flags "-Wno-error" |
101 |
econf \ |
102 |
$(use_enable fuse) \ |
103 |
$(use_enable lz4) \ |
104 |
|
105 |
diff --git a/sys-fs/erofs-utils/erofs-utils-1.2.ebuild b/sys-fs/erofs-utils/erofs-utils-1.2.ebuild |
106 |
deleted file mode 100644 |
107 |
index 96d5cb85b..000000000 |
108 |
--- a/sys-fs/erofs-utils/erofs-utils-1.2.ebuild |
109 |
+++ /dev/null |
110 |
@@ -1,45 +0,0 @@ |
111 |
-# Copyright 1999-2021 Gentoo Authors |
112 |
-# Distributed under the terms of the GNU General Public License v2 |
113 |
- |
114 |
-EAPI=7 |
115 |
- |
116 |
-inherit autotools |
117 |
- |
118 |
-DESCRIPTION="Userspace tools for EROFS images" |
119 |
-HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git" |
120 |
-SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/${P}.tar.gz" |
121 |
- |
122 |
-LICENSE="GPL-2+" |
123 |
-SLOT="0" |
124 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
125 |
-IUSE="fuse lz4 selinux +uuid" |
126 |
- |
127 |
-RDEPEND=" |
128 |
- fuse? ( sys-fs/fuse:0 ) |
129 |
- lz4? ( >=app-arch/lz4-1.9 ) |
130 |
- selinux? ( sys-libs/libselinux ) |
131 |
- uuid? ( sys-apps/util-linux ) |
132 |
-" |
133 |
-DEPEND="${RDEPEND}" |
134 |
-BDEPEND="virtual/pkgconfig" |
135 |
- |
136 |
-PATCHES=( |
137 |
- "${FILESDIR}/${P}-no-common.patch" |
138 |
-) |
139 |
- |
140 |
-src_prepare() { |
141 |
- default |
142 |
- use fuse && use selinux && sed -i \ |
143 |
- -e 's/.*CFLAGS}.*/& ${libselinux_CFLAGS}/' \ |
144 |
- -e 's/.*LIBS}.*/& ${libselinux_LIBS}/' \ |
145 |
- fuse/Makefile.am |
146 |
- eautoreconf |
147 |
-} |
148 |
- |
149 |
-src_configure() { |
150 |
- econf \ |
151 |
- $(use_enable fuse) \ |
152 |
- $(use_enable lz4) \ |
153 |
- $(use_with selinux) \ |
154 |
- $(use_with uuid) |
155 |
-} |
156 |
|
157 |
diff --git a/sys-fs/erofs-utils/files/erofs-utils-1.2-no-common.patch b/sys-fs/erofs-utils/files/erofs-utils-1.2-no-common.patch |
158 |
deleted file mode 100644 |
159 |
index 689e485d7..000000000 |
160 |
--- a/sys-fs/erofs-utils/files/erofs-utils-1.2-no-common.patch |
161 |
+++ /dev/null |
162 |
@@ -1,61 +0,0 @@ |
163 |
-From ac0d13efa1fe673e677343cda4795d820500da6b Mon Sep 17 00:00:00 2001 |
164 |
-From: Gao Xiang <hsiangkao@×××.com> |
165 |
-Date: Tue, 8 Dec 2020 18:57:41 +0800 |
166 |
-Subject: erofs-utils: fix multiple definition of `sbi' |
167 |
- |
168 |
-As nl6720 reported [1], lib/inode.o (mkfs) and lib/super.o (erofsfuse) |
169 |
-could be compiled together by some options. Fix it now. |
170 |
- |
171 |
-[1] https://lore.kernel.org/r/10789285.Na0ui7I3VY@walnut |
172 |
- |
173 |
-Link: https://lore.kernel.org/r/20201208105741.9614-1-hsiangkao@×××.com |
174 |
-Fixes: 5e35b75ad499 ("erofs-utils: introduce fuse implementation") |
175 |
-Reported-by: nl6720 <nl6720@×××××.com> |
176 |
-Signed-off-by: Gao Xiang <hsiangkao@×××.com> |
177 |
---- |
178 |
- lib/config.c | 1 + |
179 |
- lib/inode.c | 2 -- |
180 |
- lib/super.c | 2 -- |
181 |
- 3 files changed, 1 insertion(+), 4 deletions(-) |
182 |
- |
183 |
-diff --git a/lib/config.c b/lib/config.c |
184 |
-index 3155112..3ecd481 100644 |
185 |
---- a/lib/config.c |
186 |
-+++ b/lib/config.c |
187 |
-@@ -11,6 +11,7 @@ |
188 |
- #include "erofs/internal.h" |
189 |
- |
190 |
- struct erofs_configure cfg; |
191 |
-+struct erofs_sb_info sbi; |
192 |
- |
193 |
- void erofs_init_configure(void) |
194 |
- { |
195 |
-diff --git a/lib/inode.c b/lib/inode.c |
196 |
-index 3d634fc..0c4839d 100644 |
197 |
---- a/lib/inode.c |
198 |
-+++ b/lib/inode.c |
199 |
-@@ -22,8 +22,6 @@ |
200 |
- #include "erofs/xattr.h" |
201 |
- #include "erofs/exclude.h" |
202 |
- |
203 |
--struct erofs_sb_info sbi; |
204 |
-- |
205 |
- #define S_SHIFT 12 |
206 |
- static unsigned char erofs_ftype_by_mode[S_IFMT >> S_SHIFT] = { |
207 |
- [S_IFREG >> S_SHIFT] = EROFS_FT_REG_FILE, |
208 |
-diff --git a/lib/super.c b/lib/super.c |
209 |
-index 2d36692..025cefe 100644 |
210 |
---- a/lib/super.c |
211 |
-+++ b/lib/super.c |
212 |
-@@ -11,8 +11,6 @@ |
213 |
- #include "erofs/io.h" |
214 |
- #include "erofs/print.h" |
215 |
- |
216 |
--struct erofs_sb_info sbi; |
217 |
-- |
218 |
- static bool check_layout_compatibility(struct erofs_sb_info *sbi, |
219 |
- struct erofs_super_block *dsb) |
220 |
- { |
221 |
--- |
222 |
-cgit 1.2.3-1.el7 |
223 |
- |
224 |
|
225 |
diff --git a/sys-fs/erofs-utils/files/erofs-utils-1.2.1-no-Werror.patch b/sys-fs/erofs-utils/files/erofs-utils-1.2.1-no-Werror.patch |
226 |
new file mode 100644 |
227 |
index 000000000..90b004501 |
228 |
--- /dev/null |
229 |
+++ b/sys-fs/erofs-utils/files/erofs-utils-1.2.1-no-Werror.patch |
230 |
@@ -0,0 +1,13 @@ |
231 |
+diff --git a/configure.ac b/configure.ac |
232 |
+index 28926c3..6be002b 100644 |
233 |
+--- a/configure.ac |
234 |
++++ b/configure.ac |
235 |
+@@ -11,7 +11,7 @@ AC_CONFIG_SRCDIR([config.h.in]) |
236 |
+ AC_CONFIG_HEADERS([config.h]) |
237 |
+ AC_CONFIG_MACRO_DIR([m4]) |
238 |
+ AC_CONFIG_AUX_DIR(config) |
239 |
+-AM_INIT_AUTOMAKE([foreign -Wall -Werror]) |
240 |
++AM_INIT_AUTOMAKE([foreign -Wall]) |
241 |
+ |
242 |
+ # Checks for programs. |
243 |
+ AM_PROG_AR |