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