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