1 |
commit: e1063612cf19db1e3514b99ae38e773fcbc9a4e5 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 29 22:13:51 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 29 22:14:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1063612 |
7 |
|
8 |
sys-fs/zfs-kmod: drop unpatched 0.8.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.12 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
sys-fs/zfs-kmod/zfs-kmod-0.8.0.ebuild | 173 ---------------------------------- |
14 |
1 file changed, 173 deletions(-) |
15 |
|
16 |
diff --git a/sys-fs/zfs-kmod/zfs-kmod-0.8.0.ebuild b/sys-fs/zfs-kmod/zfs-kmod-0.8.0.ebuild |
17 |
deleted file mode 100644 |
18 |
index b8773e1d020..00000000000 |
19 |
--- a/sys-fs/zfs-kmod/zfs-kmod-0.8.0.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,173 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-inherit flag-o-matic linux-info linux-mod toolchain-funcs |
28 |
- |
29 |
-DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs" |
30 |
-HOMEPAGE="https://zfsonlinux.org/" |
31 |
- |
32 |
-if [[ ${PV} == "9999" ]]; then |
33 |
- inherit autotools git-r3 |
34 |
- EGIT_REPO_URI="https://github.com/zfsonlinux/zfs.git" |
35 |
-else |
36 |
- SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/zfs-${PV}.tar.gz" |
37 |
- KEYWORDS="~amd64" |
38 |
- S="${WORKDIR}/zfs-${PV}" |
39 |
- ZFS_KERNEL_COMPAT="5.1" |
40 |
-fi |
41 |
- |
42 |
-LICENSE="CDDL debug? ( GPL-2+ )" |
43 |
-SLOT="0" |
44 |
-IUSE="custom-cflags debug +rootfs" |
45 |
- |
46 |
-DEPEND="" |
47 |
- |
48 |
-RDEPEND="${DEPEND} |
49 |
- !sys-fs/zfs-fuse |
50 |
- !sys-kernel/spl |
51 |
-" |
52 |
- |
53 |
-BDEPEND=" |
54 |
- dev-lang/perl |
55 |
- virtual/awk |
56 |
-" |
57 |
- |
58 |
-RESTRICT="debug? ( strip ) test" |
59 |
- |
60 |
-DOCS=( AUTHORS COPYRIGHT META README.md ) |
61 |
- |
62 |
-pkg_setup() { |
63 |
- linux-info_pkg_setup |
64 |
- |
65 |
- CONFIG_CHECK=" |
66 |
- !DEBUG_LOCK_ALLOC |
67 |
- EFI_PARTITION |
68 |
- MODULES |
69 |
- !PAX_KERNEXEC_PLUGIN_METHOD_OR |
70 |
- !TRIM_UNUSED_KSYMS |
71 |
- ZLIB_DEFLATE |
72 |
- ZLIB_INFLATE |
73 |
- " |
74 |
- |
75 |
- use debug && CONFIG_CHECK="${CONFIG_CHECK} |
76 |
- FRAME_POINTER |
77 |
- DEBUG_INFO |
78 |
- !DEBUG_INFO_REDUCED |
79 |
- " |
80 |
- |
81 |
- use rootfs && \ |
82 |
- CONFIG_CHECK="${CONFIG_CHECK} |
83 |
- BLK_DEV_INITRD |
84 |
- DEVTMPFS |
85 |
- " |
86 |
- |
87 |
- kernel_is -lt 5 && CONFIG_CHECK="${CONFIG_CHECK} IOSCHED_NOOP" |
88 |
- |
89 |
- kernel_is -ge 2 6 32 || die "Linux 2.6.32 or newer required" |
90 |
- |
91 |
- if [[ ${PV} != "9999" ]]; then |
92 |
- local kv_major_max kv_minor_max zcompat |
93 |
- zcompat="${ZFS_KERNEL_COMPAT_OVERRIDE:-${ZFS_KERNEL_COMPAT}}" |
94 |
- kv_major_max="${zcompat%%.*}" |
95 |
- zcompat="${zcompat#*.}" |
96 |
- kv_minor_max="${zcompat%%.*}" |
97 |
- kernel_is -le "${kv_major_max}" "${kv_minor_max}" || die \ |
98 |
- "Linux ${kv_major_max}.${kv_minor_max} is the latest supported version" |
99 |
- fi |
100 |
- |
101 |
- check_extra_config |
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 |
- # Remove GPLv2-licensed ZPIOS unless we are debugging |
115 |
- use debug || sed -e 's/^subdir-m += zpios$//' -i module/Makefile.in |
116 |
-} |
117 |
- |
118 |
-src_configure() { |
119 |
- set_arch_to_kernel |
120 |
- |
121 |
- use custom-cflags || strip-flags |
122 |
- |
123 |
- filter-ldflags -Wl,* |
124 |
- |
125 |
- local myconf=( |
126 |
- --bindir="${EPREFIX}/bin" |
127 |
- --sbindir="${EPREFIX}/sbin" |
128 |
- --with-config=kernel |
129 |
- --with-linux="${KV_DIR}" |
130 |
- --with-linux-obj="${KV_OUT_DIR}" |
131 |
- $(use_enable debug) |
132 |
- ) |
133 |
- |
134 |
- econf "${myconf[@]}" |
135 |
-} |
136 |
- |
137 |
-src_compile() { |
138 |
- set_arch_to_kernel |
139 |
- |
140 |
- myemakeargs=( V=1 ) |
141 |
- |
142 |
- emake "${myemakeargs[@]}" |
143 |
-} |
144 |
- |
145 |
-src_install() { |
146 |
- set_arch_to_kernel |
147 |
- |
148 |
- myemakeargs+=( |
149 |
- DEPMOD="/bin/true" |
150 |
- DESTDIR="${D}" |
151 |
- INSTALL_MOD_PATH="${INSTALL_MOD_PATH:-$EROOT}" |
152 |
- ) |
153 |
- |
154 |
- emake "${myemakeargs[@]}" install |
155 |
- |
156 |
- einstalldocs |
157 |
-} |
158 |
- |
159 |
-pkg_postinst() { |
160 |
- linux-mod_pkg_postinst |
161 |
- |
162 |
- # Remove old modules |
163 |
- if [[ -d "${EROOT}/lib/modules/${KV_FULL}/addon/zfs" ]]; then |
164 |
- ewarn "${PN} now installs modules in ${EROOT}/lib/modules/${KV_FULL}/extra/zfs" |
165 |
- ewarn "Old modules were detected in ${EROOT}/lib/modules/${KV_FULL}/addon/zfs" |
166 |
- ewarn "Automatically removing old modules to avoid problems." |
167 |
- rm -r "${EROOT}/lib/modules/${KV_FULL}/addon/zfs" || die "Cannot remove modules" |
168 |
- rmdir --ignore-fail-on-non-empty "${EROOT}/lib/modules/${KV_FULL}/addon" |
169 |
- fi |
170 |
- |
171 |
- if use x86 || use arm; then |
172 |
- ewarn "32-bit kernels will likely require increasing vmalloc to" |
173 |
- ewarn "at least 256M and decreasing zfs_arc_max to some value less than that." |
174 |
- fi |
175 |
- |
176 |
- ewarn "This version of ZFSOnLinux includes support for new feature flags" |
177 |
- ewarn "that are incompatible with previous versions. GRUB2 support for" |
178 |
- ewarn "/boot with the new feature flags is not yet available." |
179 |
- ewarn "Do *NOT* upgrade root pools to use the new feature flags." |
180 |
- ewarn "Any new pools will be created with the new feature flags by default" |
181 |
- ewarn "and will not be compatible with older versions of ZFSOnLinux. To" |
182 |
- ewarn "create a newpool that is backward compatible wih GRUB2, use " |
183 |
- ewarn |
184 |
- ewarn "zpool create -d -o feature@async_destroy=enabled " |
185 |
- ewarn " -o feature@empty_bpobj=enabled -o feature@lz4_compress=enabled" |
186 |
- ewarn " -o feature@spacemap_histogram=enabled" |
187 |
- ewarn " -o feature@enabled_txg=enabled " |
188 |
- ewarn " -o feature@extensible_dataset=enabled -o feature@bookmarks=enabled" |
189 |
- ewarn " ..." |
190 |
- ewarn |
191 |
- ewarn "GRUB2 support will be updated as soon as either the GRUB2" |
192 |
- ewarn "developers do a tag or the Gentoo developers find time to backport" |
193 |
- ewarn "support from GRUB2 HEAD." |
194 |
-} |