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