Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/zfs-kmod/
Date: Thu, 11 Feb 2021 23:49:30
Message-Id: 1613086860.9a21a0ad81eef4ca499519d2126d904ee899514f.gyakovlev@gentoo
1 commit: 9a21a0ad81eef4ca499519d2126d904ee899514f
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 11 22:28:03 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 11 23:41:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a21a0ad
7
8 sys-fs/zfs-kmod: drop 2.0.1
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 sys-fs/zfs-kmod/Manifest | 1 -
14 sys-fs/zfs-kmod/zfs-kmod-2.0.1.ebuild | 179 ----------------------------------
15 2 files changed, 180 deletions(-)
16
17 diff --git a/sys-fs/zfs-kmod/Manifest b/sys-fs/zfs-kmod/Manifest
18 index e54decbd1b5..3a37bdf591a 100644
19 --- a/sys-fs/zfs-kmod/Manifest
20 +++ b/sys-fs/zfs-kmod/Manifest
21 @@ -1,5 +1,4 @@
22 DIST zfs-0.8.5.tar.gz 9196381 BLAKE2B 8376f360369c4657ff1fc040fb2bba780bbd5d6a98d149d2fa4ba39478588e213dbf6db218c7bd970839f015a69ae00ac951b90afc1c26b34aadf666b2976cab SHA512 3e6e70b76f7cc5b018adb78ce7c3009f88faf5b3da0a03170b03577cd84a2937b6056621c41fc819fd08bf59b28053caf8fec375cf375816a6786bb5646ed773
23 DIST zfs-0.8.6.tar.gz 9295260 BLAKE2B 45424d710aaf75a05f766ae523ae157a24b5cbdcefe72a59e4cede81e42f7a92ae7f01150388437b78cd49f3d28b9664599f2a624516e6b3f1073497194a99f2 SHA512 626b172554f39a5c70f6ea5c599a92fae52534590d1b0273de2bbfc3676d29dff0eade8ca17e5f179a59870c12bc758fb53b7900f8a1fdbdef3a9161b93f9cce
24 -DIST zfs-2.0.1.tar.gz 12970188 BLAKE2B ec1ec4cfcc64adbe7ac0ce65e4fa118a77495886b1c8f2daea0b76f8bb32f0c4bbb6bc7fc16000b6c828f58e60b6ce8359a55ec1f2d2eef1279dd4f430e54f01 SHA512 7e8f490605cb80747a2e471ac5bdd184038f514da379ea7cadf14d5635d5f4cd1b47a7c92c95c4c1b7b0cf5ec22ea905d0d3e8d24e71733484f34cc9429f0f94
25 DIST zfs-2.0.2.tar.gz 12980696 BLAKE2B 34f4168365d36372349a4986f17cff64987a697e445c2de2ff0bf5d218725fad4aab12b0436ca816300a65856f5918f0cdb8931abeeacd894046daf013bb944f SHA512 5033645ad8fc2afd73187cc00e775ad79ac89e9a69841e1bda2867c2f05dab082f55fc83eedf2fdff1dab322f0eaac1ba2f8411def94e9cd7c011a03e84d5363
26 DIST zfs-2.0.3.tar.gz 13114404 BLAKE2B 71b3f68e681d51a78a38f9e11012074d2a4483b68437a17b5766d5db557be6fc8080179f20c1abc60f61b983eb0f126b887d762dc9aa8e480a3ee311d9067bf5 SHA512 8b2a6e0edfb3c85441076b2c6163ad3d7d239e11db128ab74d60bf8dc802d67b7f5b8d1cc7227316a7dc3917f14e9ac072ebf1583957f2a45c1b8438e4068200
27
28 diff --git a/sys-fs/zfs-kmod/zfs-kmod-2.0.1.ebuild b/sys-fs/zfs-kmod/zfs-kmod-2.0.1.ebuild
29 deleted file mode 100644
30 index 2fbfd85f7cc..00000000000
31 --- a/sys-fs/zfs-kmod/zfs-kmod-2.0.1.ebuild
32 +++ /dev/null
33 @@ -1,179 +0,0 @@
34 -# Copyright 1999-2021 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -inherit autotools dist-kernel-utils flag-o-matic linux-mod toolchain-funcs
40 -
41 -DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
42 -HOMEPAGE="https://github.com/openzfs/zfs"
43 -
44 -if [[ ${PV} == "9999" ]]; then
45 - inherit git-r3
46 - EGIT_REPO_URI="https://github.com/openzfs/zfs.git"
47 -else
48 - MY_PV="${PV/_rc/-rc}"
49 - SRC_URI="https://github.com/openzfs/zfs/releases/download/zfs-${MY_PV}/zfs-${MY_PV}.tar.gz"
50 - KEYWORDS="~amd64 ~arm64 ~ppc64"
51 - S="${WORKDIR}/zfs-${PV%_rc?}"
52 - ZFS_KERNEL_COMPAT="5.10"
53 -fi
54 -
55 -LICENSE="CDDL MIT debug? ( GPL-2+ )"
56 -SLOT="0"
57 -IUSE="custom-cflags debug +rootfs"
58 -
59 -DEPEND=""
60 -
61 -RDEPEND="${DEPEND}
62 - !sys-kernel/spl
63 -"
64 -
65 -BDEPEND="
66 - dev-lang/perl
67 - virtual/awk
68 -"
69 -
70 -RESTRICT="debug? ( strip ) test"
71 -
72 -DOCS=( AUTHORS COPYRIGHT META README.md )
73 -
74 -pkg_setup() {
75 - CONFIG_CHECK="
76 - !DEBUG_LOCK_ALLOC
77 - EFI_PARTITION
78 - MODULES
79 - !PAX_KERNEXEC_PLUGIN_METHOD_OR
80 - !TRIM_UNUSED_KSYMS
81 - ZLIB_DEFLATE
82 - ZLIB_INFLATE
83 - "
84 -
85 - use debug && CONFIG_CHECK="${CONFIG_CHECK}
86 - FRAME_POINTER
87 - DEBUG_INFO
88 - !DEBUG_INFO_REDUCED
89 - "
90 -
91 - use rootfs && \
92 - CONFIG_CHECK="${CONFIG_CHECK}
93 - BLK_DEV_INITRD
94 - DEVTMPFS
95 - "
96 -
97 - kernel_is -lt 5 && CONFIG_CHECK="${CONFIG_CHECK} IOSCHED_NOOP"
98 -
99 - if [[ ${PV} != "9999" ]]; then
100 - local kv_major_max kv_minor_max zcompat
101 - zcompat="${ZFS_KERNEL_COMPAT_OVERRIDE:-${ZFS_KERNEL_COMPAT}}"
102 - kv_major_max="${zcompat%%.*}"
103 - zcompat="${zcompat#*.}"
104 - kv_minor_max="${zcompat%%.*}"
105 - kernel_is -le "${kv_major_max}" "${kv_minor_max}" || die \
106 - "Linux ${kv_major_max}.${kv_minor_max} is the latest supported version"
107 -
108 - fi
109 -
110 - kernel_is -ge 3 10 || die "Linux 3.10 or newer required"
111 -
112 - linux-mod_pkg_setup
113 -}
114 -
115 -src_prepare() {
116 - default
117 -
118 - if [[ ${PV} == "9999" ]]; then
119 - eautoreconf
120 - else
121 - # Set module revision number
122 - sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" META || die "Could not set Gentoo release"
123 - fi
124 -}
125 -
126 -src_configure() {
127 - set_arch_to_kernel
128 -
129 - use custom-cflags || strip-flags
130 -
131 - filter-ldflags -Wl,*
132 -
133 - local myconf=(
134 - CROSS_COMPILE="${CHOST}-"
135 - HOSTCC="$(tc-getBUILD_CC)"
136 - --bindir="${EPREFIX}/bin"
137 - --sbindir="${EPREFIX}/sbin"
138 - --with-config=kernel
139 - --with-linux="${KV_DIR}"
140 - --with-linux-obj="${KV_OUT_DIR}"
141 - $(use_enable debug)
142 - )
143 -
144 - econf "${myconf[@]}"
145 -}
146 -
147 -src_compile() {
148 - set_arch_to_kernel
149 -
150 - myemakeargs=(
151 - CROSS_COMPILE="${CHOST}-"
152 - HOSTCC="$(tc-getBUILD_CC)"
153 - V=1
154 - )
155 -
156 - emake "${myemakeargs[@]}"
157 -}
158 -
159 -src_install() {
160 - set_arch_to_kernel
161 -
162 - myemakeargs+=(
163 - DEPMOD="/bin/true"
164 - DESTDIR="${D}"
165 - INSTALL_MOD_PATH="${INSTALL_MOD_PATH:-$EROOT}"
166 - )
167 -
168 - emake "${myemakeargs[@]}" install
169 -
170 - einstalldocs
171 -}
172 -
173 -pkg_postinst() {
174 - linux-mod_pkg_postinst
175 -
176 - # Remove old modules
177 - if [[ -d "${EROOT}/lib/modules/${KV_FULL}/addon/zfs" ]]; then
178 - ewarn "${PN} now installs modules in ${EROOT}/lib/modules/${KV_FULL}/extra/zfs"
179 - ewarn "Old modules were detected in ${EROOT}/lib/modules/${KV_FULL}/addon/zfs"
180 - ewarn "Automatically removing old modules to avoid problems."
181 - rm -r "${EROOT}/lib/modules/${KV_FULL}/addon/zfs" || die "Cannot remove modules"
182 - rmdir --ignore-fail-on-non-empty "${EROOT}/lib/modules/${KV_FULL}/addon"
183 - fi
184 -
185 - if [[ -z ${ROOT} ]] && use dist-kernel; then
186 - dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
187 - fi
188 -
189 - if use x86 || use arm; then
190 - ewarn "32-bit kernels will likely require increasing vmalloc to"
191 - ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
192 - fi
193 -
194 - ewarn "This version of OpenZFS includes support for new feature flags"
195 - ewarn "that are incompatible with previous versions. GRUB2 support for"
196 - ewarn "/boot with the new feature flags is not yet available."
197 - ewarn "Do *NOT* upgrade root pools to use the new feature flags."
198 - ewarn "Any new pools will be created with the new feature flags by default"
199 - ewarn "and will not be compatible with older versions of ZFSOnLinux. To"
200 - ewarn "create a newpool that is backward compatible wih GRUB2, use "
201 - ewarn
202 - ewarn "zpool create -d -o feature@async_destroy=enabled "
203 - ewarn " -o feature@empty_bpobj=enabled -o feature@lz4_compress=enabled"
204 - ewarn " -o feature@spacemap_histogram=enabled"
205 - ewarn " -o feature@enabled_txg=enabled "
206 - ewarn " -o feature@extensible_dataset=enabled -o feature@bookmarks=enabled"
207 - ewarn " ..."
208 - ewarn
209 - ewarn "GRUB2 support will be updated as soon as either the GRUB2"
210 - ewarn "developers do a tag or the Gentoo developers find time to backport"
211 - ewarn "support from GRUB2 HEAD."
212 -}