Gentoo Archives: gentoo-commits

From: Jonathan Vasquez <fearedbliss@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/zfs-kmod/
Date: Tue, 07 Feb 2017 00:56:31
Message-Id: 1486428980.f4e95cb19530d54e7f1e7bb183d25de90aeb34d7.fearedbliss@gentoo
1 commit: f4e95cb19530d54e7f1e7bb183d25de90aeb34d7
2 Author: Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 7 00:55:55 2017 +0000
4 Commit: Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 7 00:56:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4e95cb1
7
8 sys-fs/zfs-kmod: version bump to 0.6.5.9
9
10 - Bumped to ZFS on Linux 0.6.5.9
11 - Added additional maintainer: fearedbliss
12
13 Package-Manager: Portage-2.3.3, Repoman-2.3.1
14
15 sys-fs/zfs-kmod/Manifest | 1 +
16 sys-fs/zfs-kmod/metadata.xml | 4 +
17 sys-fs/zfs-kmod/zfs-kmod-0.6.5.9.ebuild | 145 ++++++++++++++++++++++++++++++++
18 3 files changed, 150 insertions(+)
19
20 diff --git a/sys-fs/zfs-kmod/Manifest b/sys-fs/zfs-kmod/Manifest
21 index c15b7a1..b4ff611 100644
22 --- a/sys-fs/zfs-kmod/Manifest
23 +++ b/sys-fs/zfs-kmod/Manifest
24 @@ -13,5 +13,6 @@ DIST zfs-0.6.5.4.tar.gz 2506470 SHA256 780862ec2301ccace412a324787e9df762cff6046
25 DIST zfs-0.6.5.6.tar.gz 2561093 SHA256 c349d46d86b4f61cd53a0891acad916cfc3f0d6754127db7f60a0bd98185aeff SHA512 94c55a50f0f9a90ce07a45dc72bb2730b2a41373ab5a12845df00ef38bb22e4a80ab2fb6e31a9c3a45e51516cdea441bb9da1d0acf71f2f88b38c7c3e9e995b0 WHIRLPOOL 6fcbe473bfce90f800989bac506fa6d4cf5662ad9ca617a477f1251c1625de906495a45759d6190e5a24dcf05f2ed3dd7ea1c0b2f243165a60e5efd098082935
26 DIST zfs-0.6.5.7.tar.gz 2537816 SHA256 4a9e271bb9a6af8d564e4d5800e4fff36224f1697b923a7253659bdda80dc590 SHA512 559b826ae1a176217b92d8407729e2c5feeffb117dc9affaa8c9c2134d996b6c3cbe095f7a0c4666c9b131742491f1304eeb292e13e0df0b6d001fa620568af2 WHIRLPOOL bf2e0865de35496cc995738ddde34df797b0c5047c0dd17e5b755803ef16e7c16f8ba89927106a1f6131c2f75a6749c31a72dff95fc0fee186b308c50ce0b4f4
27 DIST zfs-0.6.5.8.tar.gz 2521921 SHA256 d77f43f7dc38381773e2c34531954c52f3de80361b7bb10c933a7482f89cfe84 SHA512 e5b53a9531b865e7c650892c0deb1ee81db086a33538cd667a087a8a8d33a0ad93a30ae5e800096abfc4dc8ed00843da924230082e204fb7543dd401ef41fcde WHIRLPOOL 623bf8ee51d59dcd1842bf41ccf19c2eb6813fb1e88dea1ea1c6f1388c11484b798546bdcb94500735a0e9e5f9099a4df43308760b353b5b62ff56af035f88bd
28 +DIST zfs-0.6.5.9.tar.gz 2610650 SHA256 b724b57dbddae59246fdc15f88f1224061c712945bb36412a2087e0c7760d77f SHA512 6e175f32421cf0f9e13429f12f0fac0564dc7059ab076831d0ebc4f6a17412160ca3526ebdf894bc7666e82580355b08701dd01c411d3177f82e7330b4529a37 WHIRLPOOL 149d730a26363b50691363b314669756d218c4a16e6d06e319c2b0866c5f8ed6e2da2396a516297c127d3343d51d78072d8b7371e3f4d327d30fa43c90be5cd3
29 DIST zfs-0.6.5.tar.gz 1816180 SHA256 542121940122c922c9d21a2bb39bca4e4a9db2f6bbfd2e576630840e256d4c82 SHA512 58480ee9b0780f1f21d12504abc226be3e6df1939214f6a8f245315d1fa0b9da56b3a744df26426ee78f13684a4ca288df6dddc50f8f91d9d0b4c542980a9c53 WHIRLPOOL fdb5580ec8d4abe57069ce453c1d91225019758ecf5d31856a7897ac7e4b51c6a8ae3258e822f684fbd70a0a7d7410c65c37a569f37d132767522118c587cc24
30 DIST zfs-kmod-0.6.2-p2.tar.xz 28636 SHA256 12882463a38a5a57cf2bb3c14c5783f9511f6dc7b163a47575f2f3dcc24f26f6 SHA512 5792660ae8f5013d12e70d608e9cffa92a8c4089a88a5e78728ee88204b3f970d452d5b0b3874e02be49ebbc139e07139be7b5a86ca40bc8b23cb11a7198a9a8 WHIRLPOOL 0e4c57b363cdd3d736efbd1355567b18e22439bd3b20ef40b27f6b97ad4570c7cc99a11b196ac25359d1966c1a70e178f4fd1687b60450f148ccda47b07282a9
31
32 diff --git a/sys-fs/zfs-kmod/metadata.xml b/sys-fs/zfs-kmod/metadata.xml
33 index 905489f..51cfee8 100644
34 --- a/sys-fs/zfs-kmod/metadata.xml
35 +++ b/sys-fs/zfs-kmod/metadata.xml
36 @@ -5,6 +5,10 @@
37 <email>ryao@g.o</email>
38 <name>Richard Yao</name>
39 </maintainer>
40 + <maintainer type="person">
41 + <email>fearedbliss@g.o</email>
42 + <name>Jonathan Vasquez</name>
43 + </maintainer>
44 <use>
45 <flag name="rootfs">Install zfs-shutdown script to support exporting a pool containing rootfs</flag>
46 </use>
47
48 diff --git a/sys-fs/zfs-kmod/zfs-kmod-0.6.5.9.ebuild b/sys-fs/zfs-kmod/zfs-kmod-0.6.5.9.ebuild
49 new file mode 100644
50 index 00000000..1273c59
51 --- /dev/null
52 +++ b/sys-fs/zfs-kmod/zfs-kmod-0.6.5.9.ebuild
53 @@ -0,0 +1,145 @@
54 +# Copyright 1999-2017 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +# $Id$
57 +
58 +EAPI="5"
59 +
60 +if [ ${PV} == "9999" ]; then
61 + AUTOTOOLS_AUTORECONF="1"
62 + EGIT_REPO_URI="https://github.com/zfsonlinux/zfs.git"
63 + inherit git-r3
64 +else
65 + SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/zfs-${PV}.tar.gz"
66 + S="${WORKDIR}/zfs-${PV}"
67 + KEYWORDS=" ~amd64"
68 +fi
69 +
70 +inherit flag-o-matic linux-info linux-mod toolchain-funcs autotools-utils
71 +
72 +DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
73 +HOMEPAGE="http://zfsonlinux.org/"
74 +
75 +LICENSE="CDDL debug? ( GPL-2+ )"
76 +SLOT="0"
77 +IUSE="custom-cflags debug +rootfs"
78 +RESTRICT="debug? ( strip ) test"
79 +
80 +DEPEND="
81 + =sys-kernel/spl-${PV}*
82 + dev-lang/perl
83 + virtual/awk
84 +"
85 +
86 +RDEPEND="${DEPEND}
87 + !sys-fs/zfs-fuse
88 +"
89 +
90 +AT_M4DIR="config"
91 +AUTOTOOLS_IN_SOURCE_BUILD="1"
92 +
93 +DOCS=( AUTHORS COPYRIGHT DISCLAIMER README.markdown )
94 +
95 +pkg_setup() {
96 + linux-info_pkg_setup
97 + CONFIG_CHECK="!DEBUG_LOCK_ALLOC
98 + EFI_PARTITION
99 + IOSCHED_NOOP
100 + MODULES
101 + !PAX_KERNEXEC_PLUGIN_METHOD_OR
102 + ZLIB_DEFLATE
103 + ZLIB_INFLATE
104 + "
105 +
106 + use debug && CONFIG_CHECK="${CONFIG_CHECK}
107 + FRAME_POINTER
108 + DEBUG_INFO
109 + !DEBUG_INFO_REDUCED
110 + "
111 +
112 + use rootfs && \
113 + CONFIG_CHECK="${CONFIG_CHECK}
114 + BLK_DEV_INITRD
115 + DEVTMPFS
116 + "
117 +
118 + kernel_is ge 2 6 32 || die "Linux 2.6.32 or newer required"
119 +
120 + [ ${PV} != "9999" ] && \
121 + { kernel_is le 4 9 || die "Linux 4.9 is the latest supported version."; }
122 +
123 + check_extra_config
124 +}
125 +
126 +src_prepare() {
127 + # Remove GPLv2-licensed ZPIOS unless we are debugging
128 + use debug || sed -e 's/^subdir-m += zpios$//' -i "${S}/module/Makefile.in"
129 +
130 + # Set module revision number
131 + [ ${PV} != "9999" ] && \
132 + { sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" "${S}/META" || die "Could not set Gentoo release"; }
133 +
134 + autotools-utils_src_prepare
135 +}
136 +
137 +src_configure() {
138 + local SPL_PATH="$(basename $(echo "${EROOT}usr/src/spl-"*))"
139 + use custom-cflags || strip-flags
140 + filter-ldflags -Wl,*
141 +
142 + set_arch_to_kernel
143 + local myeconfargs=(${myeconfargs}
144 + --bindir="${EPREFIX}/bin"
145 + --sbindir="${EPREFIX}/sbin"
146 + --with-config=kernel
147 + --with-linux="${KV_DIR}"
148 + --with-linux-obj="${KV_OUT_DIR}"
149 + --with-spl="${EROOT}usr/src/${SPL_PATH}"
150 + --with-spl-obj="${EROOT}usr/src/${SPL_PATH}/${KV_FULL}"
151 + $(use_enable debug)
152 + )
153 +
154 + autotools-utils_src_configure
155 +}
156 +
157 +src_install() {
158 + autotools-utils_src_install INSTALL_MOD_PATH="${INSTALL_MOD_PATH:-$EROOT}"
159 +}
160 +
161 +pkg_postinst() {
162 + linux-mod_pkg_postinst
163 +
164 + # Remove old modules
165 + if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/zfs" ]
166 + then
167 + ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/zfs"
168 + ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/zfs"
169 + ewarn "Automatically removing old modules to avoid problems."
170 + rm -r "${EROOT}lib/modules/${KV_FULL}/addon/zfs" || die "Cannot remove modules"
171 + rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon"
172 + fi
173 +
174 + if use x86 || use arm
175 + then
176 + ewarn "32-bit kernels will likely require increasing vmalloc to"
177 + ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
178 + fi
179 +
180 + ewarn "This version of ZFSOnLinux includes support for new feature flags"
181 + ewarn "that are incompatible with previous versions. GRUB2 support for"
182 + ewarn "/boot with the new feature flags is not yet available."
183 + ewarn "Do *NOT* upgrade root pools to use the new feature flags."
184 + ewarn "Any new pools will be created with the new feature flags by default"
185 + ewarn "and will not be compatible with older versions of ZFSOnLinux. To"
186 + ewarn "create a newpool that is backward compatible wih GRUB2, use "
187 + ewarn
188 + ewarn "zpool create -d -o feature@async_destroy=enabled "
189 + ewarn " -o feature@empty_bpobj=enabled -o feature@lz4_compress=enabled"
190 + ewarn " -o feature@spacemap_histogram=enabled"
191 + ewarn " -o feature@enabled_txg=enabled "
192 + ewarn " -o feature@extensible_dataset=enabled -o feature@bookmarks=enabled"
193 + ewarn " ..."
194 + ewarn
195 + ewarn "GRUB2 support will be updated as soon as either the GRUB2"
196 + ewarn "developers do a tag or the Gentoo developers find time to backport"
197 + ewarn "support from GRUB2 HEAD."
198 +}