Gentoo Archives: gentoo-commits

From: "Richard Yao (ryao)" <ryao@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/zfs-kmod: zfs-kmod-9999.ebuild zfs-kmod-0.6.1.ebuild ChangeLog
Date: Thu, 28 Mar 2013 22:19:38
Message-Id: 20130328221935.A42C52171D@flycatcher.gentoo.org
1 ryao 13/03/28 22:19:35
2
3 Modified: zfs-kmod-9999.ebuild ChangeLog
4 Added: zfs-kmod-0.6.1.ebuild
5 Log:
6 Version bump to 0.6.1
7
8 (Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64)
9
10 Revision Changes Path
11 1.14 sys-fs/zfs-kmod/zfs-kmod-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild?rev=1.14&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild?rev=1.14&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild?r1=1.13&r2=1.14
16
17 Index: zfs-kmod-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild,v
20 retrieving revision 1.13
21 retrieving revision 1.14
22 diff -u -r1.13 -r1.14
23 --- zfs-kmod-9999.ebuild 24 Mar 2013 00:02:31 -0000 1.13
24 +++ zfs-kmod-9999.ebuild 28 Mar 2013 22:19:35 -0000 1.14
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2013 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild,v 1.13 2013/03/24 00:02:31 ryao Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild,v 1.14 2013/03/28 22:19:35 ryao Exp $
30
31 EAPI="4"
32
33 @@ -64,27 +64,6 @@
34 }
35
36 src_prepare() {
37 - if [ ${PV} != "9999" ]
38 - then
39 - # Cast constant for 32-bit compatibility
40 - epatch "${FILESDIR}/${P}-cast-const-for-32bit-compatibility.patch"
41 -
42 - # Handle missing name length check in Linux VFS
43 - epatch "${FILESDIR}/${P}-vfs-name-length-compatibility.patch"
44 -
45 - # Fix NULL pointer exception on hardened kernels, bug #457176
46 - epatch "${FILESDIR}/${P}-improved-hardened-support.patch"
47 -
48 - # Fix barrier regression on Linux 2.6.37 and later
49 - epatch "${FILESDIR}/${P}-flush-properly.patch"
50 -
51 - # Improve accuracy of autotools checks
52 - epatch "${FILESDIR}/${P}-improved-autotools-checks.patch"
53 -
54 - # Linux 3.9 Support
55 - epatch "${FILESDIR}/${P}-linux-3.9-compat.patch"
56 - fi
57 -
58 # Remove GPLv2-licensed ZPIOS unless we are debugging
59 use debug || sed -e 's/^subdir-m += zpios$//' -i "${S}/module/Makefile.in"
60
61 @@ -118,13 +97,23 @@
62 pkg_postinst() {
63 linux-mod_pkg_postinst
64
65 + # Remove old modules
66 + if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/zfs" ]
67 + then
68 + ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/zfs"
69 + ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/zfs"
70 + ewarn "Automatically removing old modules to avoid problems."
71 + rm -r "${EROOT}lib/modules/${KV_FULL}/addon/zfs" || die "Cannot remove modules"
72 + rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon"
73 + fi
74 +
75 if use x86 || use arm
76 then
77 ewarn "32-bit kernels will likely require increasing vmalloc to"
78 ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
79 fi
80
81 - ewarn "This version of ZFSOnLinux introduces support for features flags."
82 + ewarn "This version of ZFSOnLinux includes support for features flags."
83 ewarn "If you upgrade your pools to make use of feature flags, you will lose"
84 ewarn "the ability to import them using older versions of ZFSOnLinux."
85 ewarn "Any new pools will be created with feature flag support and will"
86
87
88
89 1.26 sys-fs/zfs-kmod/ChangeLog
90
91 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/ChangeLog?rev=1.26&view=markup
92 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/ChangeLog?rev=1.26&content-type=text/plain
93 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/ChangeLog?r1=1.25&r2=1.26
94
95 Index: ChangeLog
96 ===================================================================
97 RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/ChangeLog,v
98 retrieving revision 1.25
99 retrieving revision 1.26
100 diff -u -r1.25 -r1.26
101 --- ChangeLog 24 Mar 2013 00:02:31 -0000 1.25
102 +++ ChangeLog 28 Mar 2013 22:19:35 -0000 1.26
103 @@ -1,6 +1,12 @@
104 # ChangeLog for sys-fs/zfs-kmod
105 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
106 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/ChangeLog,v 1.25 2013/03/24 00:02:31 ryao Exp $
107 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/ChangeLog,v 1.26 2013/03/28 22:19:35 ryao Exp $
108 +
109 +*zfs-kmod-0.6.1 (28 Mar 2013)
110 +
111 + 28 Mar 2013; Richard Yao <ryao@g.o> +zfs-kmod-0.6.1.ebuild,
112 + zfs-kmod-9999.ebuild:
113 + Version bump to 0.6.1
114
115 24 Mar 2013; Richard Yao <ryao@g.o> zfs-kmod-0.6.0_rc14-r5.ebuild,
116 zfs-kmod-9999.ebuild:
117
118
119
120 1.1 sys-fs/zfs-kmod/zfs-kmod-0.6.1.ebuild
121
122 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-0.6.1.ebuild?rev=1.1&view=markup
123 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-0.6.1.ebuild?rev=1.1&content-type=text/plain
124
125 Index: zfs-kmod-0.6.1.ebuild
126 ===================================================================
127 # Copyright 1999-2013 Gentoo Foundation
128 # Distributed under the terms of the GNU General Public License v2
129 # $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-0.6.1.ebuild,v 1.1 2013/03/28 22:19:35 ryao Exp $
130
131 EAPI="4"
132
133 AT_M4DIR="config"
134 AUTOTOOLS_AUTORECONF="1"
135 AUTOTOOLS_IN_SOURCE_BUILD="1"
136
137 inherit bash-completion-r1 flag-o-matic linux-info linux-mod toolchain-funcs autotools-utils
138
139 if [ ${PV} == "9999" ] ; then
140 inherit git-2
141 MY_PV=9999
142 EGIT_REPO_URI="git://github.com/zfsonlinux/zfs.git"
143 else
144 inherit eutils versionator
145 MY_PV=$(replace_version_separator 3 '-')
146 SRC_URI="https://github.com/zfsonlinux/zfs/archive/zfs-${MY_PV}.tar.gz"
147 S="${WORKDIR}/zfs-zfs-${MY_PV}"
148 KEYWORDS="~amd64"
149 fi
150
151 DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
152 HOMEPAGE="http://zfsonlinux.org/"
153
154 LICENSE="CDDL debug? ( GPL-2+ )"
155 SLOT="0"
156 IUSE="custom-cflags debug +rootfs"
157 RESTRICT="test"
158
159 DEPEND="
160 =sys-kernel/spl-${PV}*
161 virtual/awk
162 "
163
164 RDEPEND="${DEPEND}
165 !sys-fs/zfs-fuse
166 "
167
168 pkg_setup() {
169 linux-info_pkg_setup
170 CONFIG_CHECK="!DEBUG_LOCK_ALLOC
171 BLK_DEV_LOOP
172 EFI_PARTITION
173 IOSCHED_NOOP
174 MODULES
175 !PAX_KERNEXEC_PLUGIN_METHOD_OR
176 ZLIB_DEFLATE
177 ZLIB_INFLATE
178 "
179
180 use rootfs && \
181 CONFIG_CHECK="${CONFIG_CHECK} BLK_DEV_INITRD
182 DEVTMPFS"
183
184 kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required"
185
186 [ ${PV} != "9999" ] && \
187 { kernel_is le 3 9 || die "Linux 3.9 is the latest supported version."; }
188
189 check_extra_config
190 }
191
192 src_prepare() {
193 # Remove GPLv2-licensed ZPIOS unless we are debugging
194 use debug || sed -e 's/^subdir-m += zpios$//' -i "${S}/module/Makefile.in"
195
196 autotools-utils_src_prepare
197 }
198
199 src_configure() {
200 use custom-cflags || strip-flags
201 filter-ldflags -Wl,*
202
203 set_arch_to_kernel
204 local myeconfargs=(
205 --bindir="${EPREFIX}/bin"
206 --sbindir="${EPREFIX}/sbin"
207 --with-config=kernel
208 --with-linux="${KV_DIR}"
209 --with-linux-obj="${KV_OUT_DIR}"
210 $(use_enable debug)
211 )
212 autotools-utils_src_configure
213 }
214
215 src_install() {
216 autotools-utils_src_install
217 dodoc AUTHORS COPYRIGHT DISCLAIMER README.markdown
218
219 # Provide /usr/src/zfs symlink for lustre
220 dosym "$(basename $(echo "${ED}/usr/src/zfs-"*))/${KV_FULL}" /usr/src/zfs
221 }
222
223 pkg_postinst() {
224 linux-mod_pkg_postinst
225
226 # Remove old modules
227 if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/zfs" ]
228 then
229 ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/zfs"
230 ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/zfs"
231 ewarn "Automatically removing old modules to avoid problems."
232 rm -r "${EROOT}lib/modules/${KV_FULL}/addon/zfs" || die "Cannot remove modules"
233 rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon"
234 fi
235
236 if use x86 || use arm
237 then
238 ewarn "32-bit kernels will likely require increasing vmalloc to"
239 ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
240 fi
241
242 ewarn "This version of ZFSOnLinux includes support for features flags."
243 ewarn "If you upgrade your pools to make use of feature flags, you will lose"
244 ewarn "the ability to import them using older versions of ZFSOnLinux."
245 ewarn "Any new pools will be created with feature flag support and will"
246 ewarn "not be compatible with older versions of ZFSOnLinux. To create a new"
247 ewarn "pool that is backward compatible, use zpool create -o version=28 ..."
248 }