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