1 |
ryao 12/06/25 21:03:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: zfs-0.6.0_rc9-r3.ebuild |
5 |
Removed: zfs-0.6.0_rc9-r2.ebuild |
6 |
Log: |
7 |
Fix additional deadlock fix regression |
8 |
|
9 |
(Portage version: 2.1.10.49/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.31 sys-fs/zfs/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.31&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.31&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?r1=1.30&r2=1.31 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v |
21 |
retrieving revision 1.30 |
22 |
retrieving revision 1.31 |
23 |
diff -u -r1.30 -r1.31 |
24 |
--- ChangeLog 25 Jun 2012 20:21:55 -0000 1.30 |
25 |
+++ ChangeLog 25 Jun 2012 21:03:27 -0000 1.31 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sys-fs/zfs |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.30 2012/06/25 20:21:55 ryao Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.31 2012/06/25 21:03:27 ryao Exp $ |
31 |
+ |
32 |
+*zfs-0.6.0_rc9-r3 (25 Jun 2012) |
33 |
+ |
34 |
+ 25 Jun 2012; Richard Yao <ryao@g.o> +zfs-0.6.0_rc9-r3.ebuild, |
35 |
+ -zfs-0.6.0_rc9-r2.ebuild, |
36 |
+ files/zfs-0.6.0_rc9-range-lock-caller-allocate.patch: |
37 |
+ Fix additional deadlock fix regression |
38 |
|
39 |
*zfs-0.6.0_rc9-r2 (25 Jun 2012) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-fs/zfs/zfs-0.6.0_rc9-r3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.0_rc9-r3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.0_rc9-r3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: zfs-0.6.0_rc9-r3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2012 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-0.6.0_rc9-r3.ebuild,v 1.1 2012/06/25 21:03:27 ryao Exp $ |
54 |
|
55 |
EAPI="4" |
56 |
|
57 |
AT_M4DIR="config" |
58 |
AUTOTOOLS_AUTORECONF="1" |
59 |
AUTOTOOLS_IN_SOURCE_BUILD="1" |
60 |
|
61 |
inherit flag-o-matic linux-mod toolchain-funcs autotools-utils |
62 |
|
63 |
if [ ${PV} == "9999" ] ; then |
64 |
inherit git-2 |
65 |
EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git" |
66 |
else |
67 |
inherit eutils versionator |
68 |
MY_PV=$(replace_version_separator 3 '-') |
69 |
SRC_URI="https://github.com/downloads/zfsonlinux/${PN}/${PN}-${MY_PV}.tar.gz" |
70 |
S="${WORKDIR}/${PN}-${MY_PV}" |
71 |
KEYWORDS="~amd64" |
72 |
fi |
73 |
|
74 |
DESCRIPTION="Native ZFS for Linux" |
75 |
HOMEPAGE="http://zfsonlinux.org/" |
76 |
|
77 |
LICENSE="CDDL GPL-2" |
78 |
SLOT="0" |
79 |
IUSE="custom-cflags debug dracut +rootfs test test-suite static-libs" |
80 |
|
81 |
DEPEND=" |
82 |
=sys-kernel/spl-${PV}* |
83 |
sys-apps/util-linux[static-libs?] |
84 |
sys-libs/zlib[static-libs(+)?] |
85 |
" |
86 |
RDEPEND="${DEPEND} |
87 |
!sys-fs/zfs-fuse |
88 |
!prefix? ( sys-fs/udev ) |
89 |
test-suite? ( |
90 |
sys-apps/gawk |
91 |
sys-apps/util-linux |
92 |
sys-devel/bc |
93 |
sys-block/parted |
94 |
sys-fs/lsscsi |
95 |
sys-fs/mdadm |
96 |
sys-process/procps |
97 |
virtual/modutils |
98 |
) |
99 |
rootfs? ( |
100 |
app-arch/cpio |
101 |
app-misc/pax-utils |
102 |
) |
103 |
" |
104 |
DEPEND+=" |
105 |
test? ( sys-fs/mdadm ) |
106 |
" |
107 |
|
108 |
pkg_setup() { |
109 |
CONFIG_CHECK="!DEBUG_LOCK_ALLOC |
110 |
!PREEMPT |
111 |
!PREEMPT_VOLUNTARY |
112 |
BLK_DEV_LOOP |
113 |
EFI_PARTITION |
114 |
MODULES |
115 |
ZLIB_DEFLATE |
116 |
ZLIB_INFLATE" |
117 |
use rootfs && CONFIG_CHECK="${CONFIG_CHECK} DEVTMPFS" |
118 |
kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required" |
119 |
check_extra_config |
120 |
} |
121 |
|
122 |
src_prepare() { |
123 |
# Workaround for hard coded path |
124 |
sed -i "s|/sbin/lsmod|/bin/lsmod|" scripts/common.sh.in || die |
125 |
# Workaround rename |
126 |
sed -i "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" scripts/common.sh.in || die |
127 |
|
128 |
if [ ${PV} != "9999" ] |
129 |
then |
130 |
epatch "${FILESDIR}/${P}-hardened-support.patch" |
131 |
|
132 |
# Fix various deadlocks |
133 |
epatch "${FILESDIR}/${P}-use-pushpage.patch" |
134 |
epatch "${FILESDIR}/${P}-remove-pfmalloc-1-of-3.patch" |
135 |
epatch "${FILESDIR}/${P}-remove-pfmalloc-2-of-3.patch" |
136 |
epatch "${FILESDIR}/${P}-remove-pfmalloc-3-of-3.patch" |
137 |
epatch "${FILESDIR}/${P}-range-lock-caller-allocate.patch" |
138 |
fi |
139 |
|
140 |
autotools-utils_src_prepare |
141 |
} |
142 |
|
143 |
src_configure() { |
144 |
use custom-cflags || strip-flags |
145 |
set_arch_to_kernel |
146 |
local myeconfargs=( |
147 |
--bindir="${EPREFIX}/bin" |
148 |
--sbindir="${EPREFIX}/sbin" |
149 |
--with-config=all |
150 |
--with-linux="${KV_DIR}" |
151 |
--with-linux-obj="${KV_OUT_DIR}" |
152 |
--with-udevdir="${EPREFIX}/lib/udev" |
153 |
$(use_enable debug) |
154 |
) |
155 |
autotools-utils_src_configure |
156 |
} |
157 |
|
158 |
src_test() { |
159 |
if [ $UID -ne 0 ] |
160 |
then |
161 |
ewarn "Cannot run make check tests with FEATURES=userpriv." |
162 |
ewarn "Skipping make check tests." |
163 |
else |
164 |
autotools-utils_src_test |
165 |
fi |
166 |
} |
167 |
|
168 |
src_install() { |
169 |
autotools-utils_src_install |
170 |
gen_usr_ldscript -a uutil nvpair zpool zfs |
171 |
use dracut || rm -rf "${ED}usr/share/dracut" |
172 |
use test-suite || rm -rf "${ED}usr/libexec" |
173 |
|
174 |
if use rootfs |
175 |
then |
176 |
doinitd "${FILESDIR}/zfs-shutdown" |
177 |
exeinto /usr/share/zfs |
178 |
doexe "${FILESDIR}/linuxrc" |
179 |
fi |
180 |
|
181 |
} |
182 |
|
183 |
pkg_postinst() { |
184 |
linux-mod_pkg_postinst |
185 |
|
186 |
use x86 && ewarn "32-bit kernels are unsupported by ZFSOnLinux upstream. Do not file bug reports." |
187 |
|
188 |
[ -e "${EROOT}/etc/runlevels/boot/zfs" ] \ |
189 |
|| ewarn 'You should add zfs to the boot runlevel.' |
190 |
|
191 |
use rootfs && ([ -e "${EROOT}/etc/runlevels/shutdown/zfs-shutdown" ] \ |
192 |
|| ewarn 'You should add zfs-shutdown to the shutdown runlevel.') |
193 |
|
194 |
} |