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