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: Sun, 07 Nov 2021 23:59:24
Message-Id: 1636329461.831e9853d92a48a66133626a12c2fc4974381aeb.gyakovlev@gentoo
1 commit: 831e9853d92a48a66133626a12c2fc4974381aeb
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 7 23:10:40 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 7 23:57:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=831e9853
7
8 sys-fs/zfs-kmod: drop 2.1.1
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 sys-fs/zfs-kmod/zfs-kmod-2.1.1.ebuild | 194 ----------------------------------
13 1 file changed, 194 deletions(-)
14
15 diff --git a/sys-fs/zfs-kmod/zfs-kmod-2.1.1.ebuild b/sys-fs/zfs-kmod/zfs-kmod-2.1.1.ebuild
16 deleted file mode 100644
17 index 996dd40ebdc..00000000000
18 --- a/sys-fs/zfs-kmod/zfs-kmod-2.1.1.ebuild
19 +++ /dev/null
20 @@ -1,194 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -inherit autotools dist-kernel-utils flag-o-matic linux-mod toolchain-funcs
27 -
28 -DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
29 -HOMEPAGE="https://github.com/openzfs/zfs"
30 -
31 -if [[ ${PV} == "9999" ]]; then
32 - inherit git-r3
33 - EGIT_REPO_URI="https://github.com/openzfs/zfs.git"
34 -else
35 - VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/openzfs.asc
36 - inherit verify-sig
37 -
38 - MY_PV="${PV/_rc/-rc}"
39 - SRC_URI="https://github.com/openzfs/zfs/releases/download/zfs-${MY_PV}/zfs-${MY_PV}.tar.gz"
40 - SRC_URI+=" verify-sig? ( https://github.com/openzfs/zfs/releases/download/zfs-${MY_PV}/zfs-${MY_PV}.tar.gz.asc )"
41 - S="${WORKDIR}/zfs-${PV%_rc?}"
42 - ZFS_KERNEL_COMPAT="5.14"
43 -
44 - if [[ ${PV} != *_rc* ]]; then
45 - KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
46 - fi
47 -fi
48 -
49 -LICENSE="CDDL MIT debug? ( GPL-2+ )"
50 -SLOT="0/${PVR}"
51 -IUSE="custom-cflags debug +rootfs"
52 -
53 -RDEPEND="${DEPEND}
54 - !sys-kernel/spl
55 -"
56 -
57 -BDEPEND="
58 - dev-lang/perl
59 - virtual/awk
60 -"
61 -
62 -if [[ ${PV} != "9999" ]] ; then
63 - BDEPEND+=" verify-sig? ( app-crypt/openpgp-keys-openzfs )"
64 -fi
65 -
66 -# PDEPEND in this form is needed to trick portage suggest
67 -# enabling dist-kernel if only 1 package have it set
68 -PDEPEND="dist-kernel? ( ~sys-fs/zfs-${PV}[dist-kernel] )"
69 -
70 -RESTRICT="debug? ( strip ) test"
71 -
72 -DOCS=( AUTHORS COPYRIGHT META README.md )
73 -
74 -pkg_pretend() {
75 - use rootfs || return 0
76 -
77 - if has_version virtual/dist-kernel && ! use dist-kernel; then
78 - ewarn "You have virtual/dist-kernel installed, but"
79 - ewarn "USE=\"dist-kernel\" is not enabled for ${CATEGORY}/${PN}"
80 - ewarn "It's recommended to globally enable dist-kernel USE flag"
81 - ewarn "to auto-trigger initrd rebuilds with kernel updates"
82 - fi
83 -}
84 -
85 -pkg_setup() {
86 - CONFIG_CHECK="
87 - !DEBUG_LOCK_ALLOC
88 - EFI_PARTITION
89 - MODULES
90 - !PAX_KERNEXEC_PLUGIN_METHOD_OR
91 - !TRIM_UNUSED_KSYMS
92 - ZLIB_DEFLATE
93 - ZLIB_INFLATE
94 - "
95 -
96 - use debug && CONFIG_CHECK="${CONFIG_CHECK}
97 - FRAME_POINTER
98 - DEBUG_INFO
99 - !DEBUG_INFO_REDUCED
100 - "
101 -
102 - use rootfs && \
103 - CONFIG_CHECK="${CONFIG_CHECK}
104 - BLK_DEV_INITRD
105 - DEVTMPFS
106 - "
107 -
108 - kernel_is -lt 5 && CONFIG_CHECK="${CONFIG_CHECK} IOSCHED_NOOP"
109 -
110 - if [[ ${PV} != "9999" ]]; then
111 - local kv_major_max kv_minor_max zcompat
112 - zcompat="${ZFS_KERNEL_COMPAT_OVERRIDE:-${ZFS_KERNEL_COMPAT}}"
113 - kv_major_max="${zcompat%%.*}"
114 - zcompat="${zcompat#*.}"
115 - kv_minor_max="${zcompat%%.*}"
116 - kernel_is -le "${kv_major_max}" "${kv_minor_max}" || die \
117 - "Linux ${kv_major_max}.${kv_minor_max} is the latest supported version"
118 -
119 - fi
120 -
121 - kernel_is -ge 3 10 || die "Linux 3.10 or newer required"
122 -
123 - linux-mod_pkg_setup
124 -}
125 -
126 -src_prepare() {
127 - default
128 -
129 - # Run unconditionally (bug #792627)
130 - eautoreconf
131 -
132 - if [[ ${PV} != "9999" ]]; then
133 - # Set module revision number
134 - sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" META || die "Could not set Gentoo release"
135 - fi
136 -}
137 -
138 -src_configure() {
139 - set_arch_to_kernel
140 -
141 - use custom-cflags || strip-flags
142 -
143 - filter-ldflags -Wl,*
144 -
145 - # Set CROSS_COMPILE in the environment.
146 - # This allows the user to override it via make.conf or via a local Makefile.
147 - # https://bugs.gentoo.org/811600
148 - export CROSS_COMPILE=${CROSS_COMPILE-${CHOST}-}
149 -
150 - local myconf=(
151 - HOSTCC="$(tc-getBUILD_CC)"
152 - --bindir="${EPREFIX}/bin"
153 - --sbindir="${EPREFIX}/sbin"
154 - --with-config=kernel
155 - --with-linux="${KV_DIR}"
156 - --with-linux-obj="${KV_OUT_DIR}"
157 - $(use_enable debug)
158 - )
159 -
160 - econf "${myconf[@]}"
161 -}
162 -
163 -src_compile() {
164 - set_arch_to_kernel
165 -
166 - myemakeargs=(
167 - HOSTCC="$(tc-getBUILD_CC)"
168 - V=1
169 - )
170 -
171 - emake "${myemakeargs[@]}"
172 -}
173 -
174 -src_install() {
175 - set_arch_to_kernel
176 -
177 - myemakeargs+=(
178 - DEPMOD=:
179 - DESTDIR="${D}"
180 - INSTALL_MOD_PATH="${EPREFIX:-/}" # lib/modules/<kver> added by KBUILD
181 - )
182 -
183 - emake "${myemakeargs[@]}" install
184 -
185 - einstalldocs
186 -}
187 -
188 -pkg_postinst() {
189 - linux-mod_pkg_postinst
190 -
191 - if [[ -z ${ROOT} ]] && use dist-kernel; then
192 - set_arch_to_portage
193 - dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
194 - fi
195 -
196 - if use x86 || use arm; then
197 - ewarn "32-bit kernels will likely require increasing vmalloc to"
198 - ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
199 - fi
200 -
201 - if has_version sys-boot/grub; then
202 - ewarn "This version of OpenZFS includes support for new feature flags"
203 - ewarn "that are incompatible with previous versions. GRUB2 support for"
204 - ewarn "/boot with the new feature flags is not yet available."
205 - ewarn "Do *NOT* upgrade root pools to use the new feature flags."
206 - ewarn "Any new pools will be created with the new feature flags by default"
207 - ewarn "and will not be compatible with older versions of ZFSOnLinux. To"
208 - ewarn "create a newpool that is backward compatible wih GRUB2, use "
209 - ewarn
210 - ewarn "zpool create -o compatibility=grub2 ..."
211 - ewarn
212 - ewarn "Refer to /etc/zfs/compatibility.d/grub2 for list of features."
213 - fi
214 -}