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-0.6.1-r1.ebuild ChangeLog
Date: Tue, 28 May 2013 13:09:00
Message-Id: 20130528130852.D76D62171E@flycatcher.gentoo.org
1 ryao 13/05/28 13:08:52
2
3 Modified: ChangeLog
4 Added: zfs-kmod-0.6.1-r1.ebuild
5 Log:
6 Backport important fixes from upstream HEAD; also includes important zvol initialization fixes (by me) that were sent upstream
7
8 (Portage version: 2.2.0_alpha176/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64)
9
10 Revision Changes Path
11 1.30 sys-fs/zfs-kmod/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/ChangeLog?rev=1.30&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/ChangeLog?rev=1.30&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/ChangeLog?r1=1.29&r2=1.30
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/ChangeLog,v
20 retrieving revision 1.29
21 retrieving revision 1.30
22 diff -u -r1.29 -r1.30
23 --- ChangeLog 17 Apr 2013 14:30:18 -0000 1.29
24 +++ ChangeLog 28 May 2013 13:08:52 -0000 1.30
25 @@ -1,6 +1,18 @@
26 # ChangeLog for sys-fs/zfs-kmod
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/ChangeLog,v 1.29 2013/04/17 14:30:18 ryao Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/ChangeLog,v 1.30 2013/05/28 13:08:52 ryao Exp $
30 +
31 +*zfs-kmod-0.6.1-r1 (28 May 2013)
32 +
33 + 28 May 2013; Richard Yao <ryao@g.o>
34 + +files/zfs-kmod-0.6.1-fix-getdents.patch,
35 + +files/zfs-kmod-0.6.1-fix-txg_quiesce-deadlock.patch,
36 + +files/zfs-kmod-0.6.1-fix-xattr-behavior-1.patch,
37 + +files/zfs-kmod-0.6.1-fix-xattr-behavior-2.patch,
38 + +files/zfs-kmod-0.6.1-fix-zvol-initialization.patch,
39 + +zfs-kmod-0.6.1-r1.ebuild:
40 + Backport important fixes from upstream HEAD; also includes important zvol
41 + initialization fixes (by me) that were sent upstream
42
43 17 Apr 2013; Richard Yao <ryao@g.o> zfs-kmod-9999.ebuild:
44 Remove /usr/src/zfs symlink from 9999 ebuild; sys-cluster/lustre (science
45
46
47
48 1.1 sys-fs/zfs-kmod/zfs-kmod-0.6.1-r1.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-0.6.1-r1.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-0.6.1-r1.ebuild?rev=1.1&content-type=text/plain
52
53 Index: zfs-kmod-0.6.1-r1.ebuild
54 ===================================================================
55 # Copyright 1999-2013 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-0.6.1-r1.ebuild,v 1.1 2013/05/28 13:08:52 ryao Exp $
58
59 EAPI="4"
60
61 AT_M4DIR="config"
62 AUTOTOOLS_AUTORECONF="1"
63 AUTOTOOLS_IN_SOURCE_BUILD="1"
64
65 inherit bash-completion-r1 flag-o-matic linux-info linux-mod toolchain-funcs autotools-utils
66
67 if [ ${PV} == "9999" ] ; then
68 inherit git-2
69 MY_PV=9999
70 EGIT_REPO_URI="git://github.com/zfsonlinux/zfs.git"
71 else
72 inherit eutils versionator
73 MY_PV=$(replace_version_separator 3 '-')
74 SRC_URI="https://github.com/zfsonlinux/zfs/archive/zfs-${MY_PV}.tar.gz"
75 S="${WORKDIR}/zfs-zfs-${MY_PV}"
76 KEYWORDS="~amd64"
77 fi
78
79 DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
80 HOMEPAGE="http://zfsonlinux.org/"
81
82 LICENSE="CDDL debug? ( GPL-2+ )"
83 SLOT="0"
84 IUSE="custom-cflags debug +rootfs"
85 RESTRICT="test"
86
87 DEPEND="
88 =sys-kernel/spl-${PV}*
89 dev-lang/perl
90 virtual/awk
91 "
92
93 RDEPEND="${DEPEND}
94 !sys-fs/zfs-fuse
95 "
96
97 pkg_setup() {
98 linux-info_pkg_setup
99 CONFIG_CHECK="!DEBUG_LOCK_ALLOC
100 BLK_DEV_LOOP
101 EFI_PARTITION
102 IOSCHED_NOOP
103 MODULES
104 !PAX_KERNEXEC_PLUGIN_METHOD_OR
105 ZLIB_DEFLATE
106 ZLIB_INFLATE
107 "
108
109 use rootfs && \
110 CONFIG_CHECK="${CONFIG_CHECK} BLK_DEV_INITRD
111 DEVTMPFS"
112
113 kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required"
114
115 [ ${PV} != "9999" ] && \
116 { kernel_is le 3 9 || die "Linux 3.9 is the latest supported version."; }
117
118 check_extra_config
119 }
120
121 src_prepare() {
122 if [ ${PV} != "9999" ]
123 then
124 # Correctness fix for getdents
125 epatch "${FILESDIR}/${P}-fix-getdents.patch"
126
127 # Prevent possible deadlock regression
128 epatch "${FILESDIR}/${P}-fix-txg_quiesce-deadlock.patch"
129
130 # Correctness fixes for xattr
131 epatch "${FILESDIR}/${P}-fix-xattr-behavior-1.patch"
132 epatch "${FILESDIR}/${P}-fix-xattr-behavior-2.patch"
133
134 # Make certain that zvols always appear
135 epatch "${FILESDIR}/${P}-fix-zvol-initialization.patch"
136 fi
137
138 # Remove GPLv2-licensed ZPIOS unless we are debugging
139 use debug || sed -e 's/^subdir-m += zpios$//' -i "${S}/module/Makefile.in"
140
141 autotools-utils_src_prepare
142 }
143
144 src_configure() {
145 use custom-cflags || strip-flags
146 filter-ldflags -Wl,*
147
148 set_arch_to_kernel
149 local myeconfargs=(
150 --bindir="${EPREFIX}/bin"
151 --sbindir="${EPREFIX}/sbin"
152 --with-config=kernel
153 --with-linux="${KV_DIR}"
154 --with-linux-obj="${KV_OUT_DIR}"
155 $(use_enable debug)
156 )
157 autotools-utils_src_configure
158 }
159
160 src_install() {
161 autotools-utils_src_install
162 dodoc AUTHORS COPYRIGHT DISCLAIMER README.markdown
163
164 # Provide /usr/src/zfs symlink for lustre
165 dosym "$(basename $(echo "${ED}/usr/src/zfs-"*))/${KV_FULL}" /usr/src/zfs
166 }
167
168 pkg_postinst() {
169 linux-mod_pkg_postinst
170
171 # Remove old modules
172 if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/zfs" ]
173 then
174 ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/zfs"
175 ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/zfs"
176 ewarn "Automatically removing old modules to avoid problems."
177 rm -r "${EROOT}lib/modules/${KV_FULL}/addon/zfs" || die "Cannot remove modules"
178 rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon"
179 fi
180
181 if use x86 || use arm
182 then
183 ewarn "32-bit kernels will likely require increasing vmalloc to"
184 ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
185 fi
186
187 ewarn "This version of ZFSOnLinux includes support for features flags."
188 ewarn "If you upgrade your pools to make use of feature flags, you will lose"
189 ewarn "the ability to import them using older versions of ZFSOnLinux."
190 ewarn "Any new pools will be created with feature flag support and will"
191 ewarn "not be compatible with older versions of ZFSOnLinux. To create a new"
192 ewarn "pool that is backward compatible, use zpool create -o version=28 ..."
193 }