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