1 |
ryao 12/08/22 07:31:11 |
2 |
|
3 |
Modified: metadata.xml zfs-9999.ebuild ChangeLog |
4 |
Added: zfs-0.6.0_rc10-r1.ebuild |
5 |
Removed: zfs-0.6.0_rc9-r6.ebuild zfs-0.6.0_rc10.ebuild |
6 |
Log: |
7 |
Split kernel module into sys-fs/zfs-kmod |
8 |
|
9 |
(Portage version: 2.1.11.9/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.6 sys-fs/zfs/metadata.xml |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/metadata.xml?rev=1.6&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/metadata.xml?rev=1.6&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/metadata.xml?r1=1.5&r2=1.6 |
17 |
|
18 |
Index: metadata.xml |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs/metadata.xml,v |
21 |
retrieving revision 1.5 |
22 |
retrieving revision 1.6 |
23 |
diff -u -r1.5 -r1.6 |
24 |
--- metadata.xml 17 May 2012 18:42:32 -0000 1.5 |
25 |
+++ metadata.xml 22 Aug 2012 07:31:11 -0000 1.6 |
26 |
@@ -6,7 +6,7 @@ |
27 |
<name>Richard Yao</name> |
28 |
</maintainer> |
29 |
<use> |
30 |
- <flag name="dracut">Install dracut module</flag> |
31 |
+ <flag name="kernel-builtin">Disable dependency on sys-fs/zfs-kmod under the assumption that ZFS is part of the kernel source tree</flag> |
32 |
<flag name="rootfs">Install zfs-shutdown script to support exporting a pool containing rootfs</flag> |
33 |
<flag name="test-suite">Install regression test suite</flag> |
34 |
</use> |
35 |
|
36 |
|
37 |
|
38 |
1.35 sys-fs/zfs/zfs-9999.ebuild |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild?rev=1.35&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild?rev=1.35&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild?r1=1.34&r2=1.35 |
43 |
|
44 |
Index: zfs-9999.ebuild |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild,v |
47 |
retrieving revision 1.34 |
48 |
retrieving revision 1.35 |
49 |
diff -u -r1.34 -r1.35 |
50 |
--- zfs-9999.ebuild 15 Aug 2012 23:04:21 -0000 1.34 |
51 |
+++ zfs-9999.ebuild 22 Aug 2012 07:31:11 -0000 1.35 |
52 |
@@ -1,6 +1,6 @@ |
53 |
# Copyright 1999-2012 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild,v 1.34 2012/08/15 23:04:21 ryao Exp $ |
56 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild,v 1.35 2012/08/22 07:31:11 ryao Exp $ |
57 |
|
58 |
EAPI="4" |
59 |
|
60 |
@@ -8,7 +8,7 @@ |
61 |
AUTOTOOLS_AUTORECONF="1" |
62 |
AUTOTOOLS_IN_SOURCE_BUILD="1" |
63 |
|
64 |
-inherit bash-completion-r1 flag-o-matic linux-mod toolchain-funcs autotools-utils |
65 |
+inherit bash-completion-r1 flag-o-matic toolchain-funcs autotools-utils |
66 |
|
67 |
if [ ${PV} == "9999" ] ; then |
68 |
inherit git-2 |
69 |
@@ -21,15 +21,15 @@ |
70 |
KEYWORDS="~amd64" |
71 |
fi |
72 |
|
73 |
-DESCRIPTION="Native ZFS for Linux" |
74 |
+DESCRIPTION="Userland utilities for ZFS Linux kernel module" |
75 |
HOMEPAGE="http://zfsonlinux.org/" |
76 |
|
77 |
LICENSE="BSD-2 CDDL MIT" |
78 |
SLOT="0" |
79 |
-IUSE="custom-cflags debug dracut +rootfs test test-suite static-libs" |
80 |
+IUSE="custom-cflags +rootfs test-suite static-libs" |
81 |
+RESTRICT="test" |
82 |
|
83 |
COMMON_DEPEND=" |
84 |
- =sys-kernel/spl-${PV}* |
85 |
sys-apps/util-linux[static-libs?] |
86 |
sys-libs/zlib[static-libs(+)?] |
87 |
" |
88 |
@@ -38,6 +38,7 @@ |
89 |
" |
90 |
|
91 |
RDEPEND="${COMMON_DEPEND} |
92 |
+ =sys-fs/zfs-kmod-${PV}* |
93 |
!sys-fs/zfs-fuse |
94 |
!prefix? ( sys-fs/udev ) |
95 |
test-suite? ( |
96 |
@@ -55,25 +56,6 @@ |
97 |
app-misc/pax-utils |
98 |
) |
99 |
" |
100 |
-DEPEND+=" |
101 |
- test? ( sys-fs/mdadm ) |
102 |
-" |
103 |
- |
104 |
-pkg_setup() { |
105 |
- CONFIG_CHECK="!DEBUG_LOCK_ALLOC |
106 |
- !PREEMPT |
107 |
- BLK_DEV_LOOP |
108 |
- EFI_PARTITION |
109 |
- MODULES |
110 |
- !PAX_KERNEXEC_PLUGIN_METHOD_OR |
111 |
- ZLIB_DEFLATE |
112 |
- ZLIB_INFLATE" |
113 |
- use rootfs && \ |
114 |
- CONFIG_CHECK="${CONFIG_CHECK} BLK_DEV_INITRD |
115 |
- DEVTMPFS" |
116 |
- kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required" |
117 |
- check_extra_config |
118 |
-} |
119 |
|
120 |
src_prepare() { |
121 |
# Workaround for hard coded path |
122 |
@@ -81,28 +63,18 @@ |
123 |
# Workaround rename |
124 |
sed -i "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" scripts/common.sh.in || die |
125 |
|
126 |
- if [ ${PV} != "9999" ] |
127 |
- then |
128 |
- # Fix various deadlocks |
129 |
- epatch "${FILESDIR}/${PN}-0.6.0_rc9-remove-pfmalloc-1-of-3.patch" |
130 |
- epatch "${FILESDIR}/${PN}-0.6.0_rc9-remove-pfmalloc-2-of-3.patch" |
131 |
- epatch "${FILESDIR}/${PN}-0.6.0_rc9-remove-pfmalloc-3-of-3.patch" |
132 |
- fi |
133 |
- |
134 |
autotools-utils_src_prepare |
135 |
} |
136 |
|
137 |
src_configure() { |
138 |
use custom-cflags || strip-flags |
139 |
- set_arch_to_kernel |
140 |
local myeconfargs=( |
141 |
--bindir="${EPREFIX}/bin" |
142 |
--sbindir="${EPREFIX}/sbin" |
143 |
- --with-config=all |
144 |
+ --with-config=user |
145 |
--with-linux="${KV_DIR}" |
146 |
--with-linux-obj="${KV_OUT_DIR}" |
147 |
--with-udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" |
148 |
- $(use_enable debug) |
149 |
) |
150 |
autotools-utils_src_configure |
151 |
} |
152 |
@@ -120,7 +92,7 @@ |
153 |
src_install() { |
154 |
autotools-utils_src_install |
155 |
gen_usr_ldscript -a uutil nvpair zpool zfs |
156 |
- use dracut || rm -rf "${ED}usr/share/dracut" |
157 |
+ rm -rf "${ED}usr/share/dracut" |
158 |
use test-suite || rm -rf "${ED}usr/libexec" |
159 |
|
160 |
if use rootfs |
161 |
@@ -135,9 +107,6 @@ |
162 |
} |
163 |
|
164 |
pkg_postinst() { |
165 |
- linux-mod_pkg_postinst |
166 |
- |
167 |
- use x86 && ewarn "32-bit kernels are unsupported by ZFSOnLinux upstream. Do not file bug reports." |
168 |
|
169 |
[ -e "${EROOT}/etc/runlevels/boot/zfs" ] \ |
170 |
|| ewarn 'You should add zfs to the boot runlevel.' |
171 |
|
172 |
|
173 |
|
174 |
1.45 sys-fs/zfs/ChangeLog |
175 |
|
176 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.45&view=markup |
177 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.45&content-type=text/plain |
178 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?r1=1.44&r2=1.45 |
179 |
|
180 |
Index: ChangeLog |
181 |
=================================================================== |
182 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v |
183 |
retrieving revision 1.44 |
184 |
retrieving revision 1.45 |
185 |
diff -u -r1.44 -r1.45 |
186 |
--- ChangeLog 15 Aug 2012 23:04:21 -0000 1.44 |
187 |
+++ ChangeLog 22 Aug 2012 07:31:11 -0000 1.45 |
188 |
@@ -1,6 +1,20 @@ |
189 |
# ChangeLog for sys-fs/zfs |
190 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
191 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.44 2012/08/15 23:04:21 ryao Exp $ |
192 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.45 2012/08/22 07:31:11 ryao Exp $ |
193 |
+ |
194 |
+*zfs-0.6.0_rc10-r1 (22 Aug 2012) |
195 |
+ |
196 |
+ 22 Aug 2012; Richard Yao <ryao@g.o> +zfs-0.6.0_rc10-r1.ebuild, |
197 |
+ -files/zfs-0.6.0_rc9-bsd-init.patch, |
198 |
+ -files/zfs-0.6.0_rc9-fix-32-bit-warnings.patch, |
199 |
+ -files/zfs-0.6.0_rc9-hardened-3.3-and-later-support.patch, |
200 |
+ -files/zfs-0.6.0_rc9-hardened-support.patch, |
201 |
+ -files/zfs-0.6.0_rc9-linux-3.5-support.patch, |
202 |
+ -files/zfs-0.6.0_rc9-remove-pfmalloc-1-of-3.patch, |
203 |
+ -files/zfs-0.6.0_rc9-remove-pfmalloc-2-of-3.patch, |
204 |
+ -files/zfs-0.6.0_rc9-remove-pfmalloc-3-of-3.patch, -zfs-0.6.0_rc10.ebuild, |
205 |
+ -zfs-0.6.0_rc9-r6.ebuild, metadata.xml, zfs-9999.ebuild: |
206 |
+ Split kernel module into sys-fs/zfs-kmod |
207 |
|
208 |
*zfs-0.6.0_rc10 (15 Aug 2012) |
209 |
|
210 |
|
211 |
|
212 |
|
213 |
1.1 sys-fs/zfs/zfs-0.6.0_rc10-r1.ebuild |
214 |
|
215 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.0_rc10-r1.ebuild?rev=1.1&view=markup |
216 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.0_rc10-r1.ebuild?rev=1.1&content-type=text/plain |
217 |
|
218 |
Index: zfs-0.6.0_rc10-r1.ebuild |
219 |
=================================================================== |
220 |
# Copyright 1999-2012 Gentoo Foundation |
221 |
# Distributed under the terms of the GNU General Public License v2 |
222 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-0.6.0_rc10-r1.ebuild,v 1.1 2012/08/22 07:31:11 ryao Exp $ |
223 |
|
224 |
EAPI="4" |
225 |
|
226 |
AT_M4DIR="config" |
227 |
AUTOTOOLS_AUTORECONF="1" |
228 |
AUTOTOOLS_IN_SOURCE_BUILD="1" |
229 |
|
230 |
inherit bash-completion-r1 flag-o-matic toolchain-funcs autotools-utils |
231 |
|
232 |
if [ ${PV} == "9999" ] ; then |
233 |
inherit git-2 |
234 |
EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git" |
235 |
else |
236 |
inherit eutils versionator |
237 |
MY_PV=$(replace_version_separator 3 '-') |
238 |
SRC_URI="https://github.com/downloads/zfsonlinux/${PN}/${PN}-${MY_PV}.tar.gz" |
239 |
S="${WORKDIR}/${PN}-${MY_PV}" |
240 |
KEYWORDS="~amd64" |
241 |
fi |
242 |
|
243 |
DESCRIPTION="Userland utilities for ZFS Linux kernel module" |
244 |
HOMEPAGE="http://zfsonlinux.org/" |
245 |
|
246 |
LICENSE="BSD-2 CDDL MIT" |
247 |
SLOT="0" |
248 |
IUSE="custom-cflags +rootfs test-suite static-libs" |
249 |
RESTRICT="test" |
250 |
|
251 |
COMMON_DEPEND=" |
252 |
sys-apps/util-linux[static-libs?] |
253 |
sys-libs/zlib[static-libs(+)?] |
254 |
" |
255 |
DEPEND="${COMMON_DEPEND} |
256 |
virtual/pkgconfig |
257 |
" |
258 |
|
259 |
RDEPEND="${COMMON_DEPEND} |
260 |
=sys-fs/zfs-kmod-${PV}* |
261 |
!sys-fs/zfs-fuse |
262 |
!prefix? ( sys-fs/udev ) |
263 |
test-suite? ( |
264 |
sys-apps/gawk |
265 |
sys-apps/util-linux |
266 |
sys-devel/bc |
267 |
sys-block/parted |
268 |
sys-fs/lsscsi |
269 |
sys-fs/mdadm |
270 |
sys-process/procps |
271 |
virtual/modutils |
272 |
) |
273 |
rootfs? ( |
274 |
app-arch/cpio |
275 |
app-misc/pax-utils |
276 |
) |
277 |
" |
278 |
|
279 |
src_prepare() { |
280 |
# Workaround for hard coded path |
281 |
sed -i "s|/sbin/lsmod|/bin/lsmod|" scripts/common.sh.in || die |
282 |
# Workaround rename |
283 |
sed -i "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" scripts/common.sh.in || die |
284 |
|
285 |
autotools-utils_src_prepare |
286 |
} |
287 |
|
288 |
src_configure() { |
289 |
use custom-cflags || strip-flags |
290 |
local myeconfargs=( |
291 |
--bindir="${EPREFIX}/bin" |
292 |
--sbindir="${EPREFIX}/sbin" |
293 |
--with-config=user |
294 |
--with-linux="${KV_DIR}" |
295 |
--with-linux-obj="${KV_OUT_DIR}" |
296 |
--with-udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" |
297 |
) |
298 |
autotools-utils_src_configure |
299 |
} |
300 |
|
301 |
src_test() { |
302 |
if [ $UID -ne 0 ] |
303 |
then |
304 |
ewarn "Cannot run make check tests with FEATURES=userpriv." |
305 |
ewarn "Skipping make check tests." |
306 |
else |
307 |
autotools-utils_src_test |
308 |
fi |
309 |
} |
310 |
|
311 |
src_install() { |
312 |
autotools-utils_src_install |
313 |
gen_usr_ldscript -a uutil nvpair zpool zfs |
314 |
rm -rf "${ED}usr/share/dracut" |
315 |
use test-suite || rm -rf "${ED}usr/libexec" |
316 |
|
317 |
if use rootfs |
318 |
then |
319 |
doinitd "${FILESDIR}/zfs-shutdown" |
320 |
exeinto /usr/share/zfs |
321 |
doexe "${FILESDIR}/linuxrc" |
322 |
fi |
323 |
|
324 |
newbashcomp "${FILESDIR}/bash-completion" zfs |
325 |
|
326 |
} |
327 |
|
328 |
pkg_postinst() { |
329 |
|
330 |
[ -e "${EROOT}/etc/runlevels/boot/zfs" ] \ |
331 |
|| ewarn 'You should add zfs to the boot runlevel.' |
332 |
|
333 |
use rootfs && ([ -e "${EROOT}/etc/runlevels/shutdown/zfs-shutdown" ] \ |
334 |
|| ewarn 'You should add zfs-shutdown to the shutdown runlevel.') |
335 |
|
336 |
} |