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