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/
Date: Fri, 02 Jul 2021 08:31:39
Message-Id: 1625214628.a198f66cae213c8e5081b9405f87e19b314a441f.gyakovlev@gentoo
1 commit: a198f66cae213c8e5081b9405f87e19b314a441f
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 2 08:29:06 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 2 08:30:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a198f66c
7
8 sys-fs/zfs: drop 2.0.4-r1
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 sys-fs/zfs/Manifest | 1 -
13 sys-fs/zfs/zfs-2.0.4-r1.ebuild | 252 -----------------------------------------
14 2 files changed, 253 deletions(-)
15
16 diff --git a/sys-fs/zfs/Manifest b/sys-fs/zfs/Manifest
17 index 1b9bafaf5d7..8cc26888798 100644
18 --- a/sys-fs/zfs/Manifest
19 +++ b/sys-fs/zfs/Manifest
20 @@ -1,5 +1,4 @@
21 DIST zfs-0.8.6.tar.gz 9295260 BLAKE2B 45424d710aaf75a05f766ae523ae157a24b5cbdcefe72a59e4cede81e42f7a92ae7f01150388437b78cd49f3d28b9664599f2a624516e6b3f1073497194a99f2 SHA512 626b172554f39a5c70f6ea5c599a92fae52534590d1b0273de2bbfc3676d29dff0eade8ca17e5f179a59870c12bc758fb53b7900f8a1fdbdef3a9161b93f9cce
22 -DIST zfs-2.0.4.tar.gz 13123872 BLAKE2B 7e4780092c0a87d5d187cd5734ddc736574db80b500f155287640ef2230e09335cc9b6b26ec1b7d8ab1b7942673ea49a3007a81da372a6d2ac36f3908913045c SHA512 1dda92d424372bce7020f5215545485eae69211b6f0fb6bea3c7c22efac76c6a2662f0dd14a03f723b6a6fe73b1228ecca211a4034b86cf885bcadf38ba0dc6b
23 DIST zfs-2.0.5.tar.gz 13166149 BLAKE2B 4505c43a3b9a6c2b925383d00bbd9f17505290ded83f9bd3f08211769fa39254742340bdda65efd53f87f1708138517f91f8a43c01f3ce4191de200c84c77754 SHA512 ee1b3f0347442ee649a7ee8a2bb08208e011eea994076d30dd08dcd51dab29df0ff369b0c6e709346fa7de69cb07e0ffdceb34f01edb93d414578d1ffc6051ba
24 DIST zfs-2.0.5.tar.gz.asc 836 BLAKE2B 6bc53160ce650f63c717b67116fb754c7a8196c9aa99bb6e43f0145bb30a0446a1ba5695b8207b085435da289fa0058643201ef2f8827e12b0803ab20b0df305 SHA512 91e73a8da45e4f49113fc1af684143902a23c9cf5e59f8cd2f3a1214aeff57af63a7fa05dbe3fa0465f002521b89a43d6086d765d03209d83a41761d56b358aa
25 DIST zfs-2.1.0-rc8.tar.gz 34830489 BLAKE2B c72c34888b6c0e1dff07483c8615296e5b917ae307fdcd510aeb3b6ba2cdc35df1abff523323b4f7f6b8b0b432c39f1e7e4e438c1eda365bee5791e56b82d852 SHA512 19617cf3c592d41585b0afb883a0d19cb7a1226f2e37590c6e4c8646422316d7ec9977b6d4844e88e676434452b9d437cd72b6da83fe0ccdac207d94b5c58a2b
26
27 diff --git a/sys-fs/zfs/zfs-2.0.4-r1.ebuild b/sys-fs/zfs/zfs-2.0.4-r1.ebuild
28 deleted file mode 100644
29 index e6152b9eb7e..00000000000
30 --- a/sys-fs/zfs/zfs-2.0.4-r1.ebuild
31 +++ /dev/null
32 @@ -1,252 +0,0 @@
33 -# Copyright 1999-2021 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -DISTUTILS_OPTIONAL=1
39 -DISTUTILS_USE_SETUPTOOLS=manual
40 -PYTHON_COMPAT=( python3_{7,8,9} )
41 -
42 -inherit autotools bash-completion-r1 dist-kernel-utils distutils-r1 flag-o-matic linux-info pam systemd toolchain-funcs udev usr-ldscript
43 -
44 -DESCRIPTION="Userland utilities for ZFS Linux kernel module"
45 -HOMEPAGE="https://github.com/openzfs/zfs"
46 -
47 -if [[ ${PV} == "9999" ]] ; then
48 - inherit git-r3 linux-mod
49 - EGIT_REPO_URI="https://github.com/openzfs/zfs.git"
50 -else
51 - MY_P="${P/_rc/-rc}"
52 - SRC_URI="https://github.com/openzfs/${PN}/releases/download/${MY_P}/${MY_P}.tar.gz"
53 - KEYWORDS="~amd64 ~arm64 ~ppc64"
54 - S="${WORKDIR}/${P%_rc?}"
55 -fi
56 -
57 -LICENSE="BSD-2 CDDL MIT"
58 -# just libzfs soname major for now.
59 -# possible candidates: libuutil, libzpool, libnvpair. Those do not provide stable abi, but are considered.
60 -SLOT="0/4"
61 -IUSE="custom-cflags debug dist-kernel kernel-builtin minimal nls pam python +rootfs test-suite static-libs"
62 -
63 -DEPEND="
64 - net-libs/libtirpc[static-libs?]
65 - sys-apps/util-linux[static-libs?]
66 - sys-libs/zlib[static-libs(+)?]
67 - virtual/awk
68 - virtual/libudev[static-libs(-)?]
69 - dev-libs/openssl:0=[static-libs?]
70 - !minimal? ( ${PYTHON_DEPS} )
71 - pam? ( sys-libs/pam )
72 - python? (
73 - virtual/python-cffi[${PYTHON_USEDEP}]
74 - )
75 -"
76 -
77 -BDEPEND="virtual/awk
78 - virtual/pkgconfig
79 - nls? ( sys-devel/gettext )
80 - python? (
81 - dev-python/setuptools[${PYTHON_USEDEP}]
82 - )
83 -"
84 -
85 -RDEPEND="${DEPEND}
86 - !kernel-builtin? ( ~sys-fs/zfs-kmod-${PV}:=[dist-kernel?] )
87 - !prefix? ( virtual/udev )
88 - sys-fs/udev-init-scripts
89 - virtual/awk
90 - dist-kernel? ( virtual/dist-kernel:= )
91 - rootfs? (
92 - app-arch/cpio
93 - app-misc/pax-utils
94 - !<sys-kernel/genkernel-3.5.1.1
95 - )
96 - test-suite? (
97 - sys-apps/kmod[tools]
98 - sys-apps/util-linux
99 - sys-devel/bc
100 - sys-block/parted
101 - sys-fs/lsscsi
102 - sys-fs/mdadm
103 - sys-process/procps
104 - )
105 -"
106 -
107 -REQUIRED_USE="
108 - !minimal? ( ${PYTHON_REQUIRED_USE} )
109 - python? ( !minimal )
110 - test-suite? ( !minimal )
111 -"
112 -
113 -RESTRICT="test"
114 -
115 -PATCHES=(
116 - "${FILESDIR}/bash-completion-sudo.patch"
117 - "${FILESDIR}/2.0.4-scrub-timers.patch"
118 -)
119 -
120 -pkg_pretend() {
121 - use rootfs || return 0
122 -
123 - if has_version virtual/dist-kernel && ! use dist-kernel; then
124 - ewarn "You have virtual/dist-kernel installed, but"
125 - ewarn "USE=\"dist-kernel\" is not enabled for ${CATEGORY}/${PN}"
126 - ewarn "It's recommended to globally enable dist-kernel USE flag"
127 - ewarn "to auto-trigger initrd rebuilds with kernel updates"
128 - fi
129 -}
130 -
131 -pkg_setup() {
132 - if use kernel_linux; then
133 - linux-info_pkg_setup
134 -
135 - if ! linux_config_exists; then
136 - ewarn "Cannot check the linux kernel configuration."
137 - else
138 - if use test-suite; then
139 - if linux_chkconfig_present BLK_DEV_LOOP; then
140 - eerror "The ZFS test suite requires loop device support enabled."
141 - eerror "Please enable it:"
142 - eerror " CONFIG_BLK_DEV_LOOP=y"
143 - eerror "in /usr/src/linux/.config or"
144 - eerror " Device Drivers --->"
145 - eerror " Block devices --->"
146 - eerror " [X] Loopback device support"
147 - fi
148 - fi
149 - fi
150 - fi
151 -}
152 -
153 -src_prepare() {
154 - default
155 - eautoreconf
156 - # Set revision number
157 - sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" META || die "Could not set Gentoo release"
158 -
159 - if use python; then
160 - pushd contrib/pyzfs >/dev/null || die
161 - distutils-r1_src_prepare
162 - popd >/dev/null || die
163 - fi
164 -
165 - # prevent errors showing up on zfs-mount stop, #647688
166 - # openrc will unmount all filesystems anyway.
167 - sed -i "/^ZFS_UNMOUNT=/ s/yes/no/" "etc/default/zfs.in" || die
168 -}
169 -
170 -src_configure() {
171 - use custom-cflags || strip-flags
172 - use minimal || python_setup
173 -
174 - local myconf=(
175 - --bindir="${EPREFIX}/bin"
176 - --enable-shared
177 - --enable-systemd
178 - --enable-sysvinit
179 - --localstatedir="${EPREFIX}/var"
180 - --sbindir="${EPREFIX}/sbin"
181 - --with-config=user
182 - --with-dracutdir="${EPREFIX}/usr/lib/dracut"
183 - --with-linux="${KV_DIR}"
184 - --with-linux-obj="${KV_OUT_DIR}"
185 - --with-udevdir="$(get_udevdir)"
186 - --with-pamconfigsdir="${EPREFIX}/unwanted_files"
187 - --with-pammoduledir="$(getpam_mod_dir)"
188 - --with-systemdunitdir="$(systemd_get_systemunitdir)"
189 - --with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
190 - --with-vendor=gentoo
191 - $(use_enable debug)
192 - $(use_enable nls)
193 - $(use_enable pam)
194 - $(use_enable python pyzfs)
195 - $(use_enable static-libs static)
196 - $(usex minimal --without-python --with-python="${EPYTHON}")
197 - )
198 -
199 - econf "${myconf[@]}"
200 -}
201 -
202 -src_compile() {
203 - default
204 - if use python; then
205 - pushd contrib/pyzfs >/dev/null || die
206 - distutils-r1_src_compile
207 - popd >/dev/null || die
208 - fi
209 -}
210 -
211 -src_install() {
212 - default
213 -
214 - gen_usr_ldscript -a nvpair uutil zfsbootenv zfs zfs_core zpool
215 -
216 - use pam && { rm -rv "${ED}/unwanted_files" || die ; }
217 -
218 - use test-suite || { rm -r "${ED}/usr/share/zfs" || die ; }
219 -
220 - if ! use static-libs; then
221 - find "${ED}/" -name '*.la' -delete || die
222 - fi
223 -
224 - dobashcomp contrib/bash_completion.d/zfs
225 - bashcomp_alias zfs zpool
226 -
227 - # strip executable bit from conf.d file
228 - fperms 0644 /etc/conf.d/zfs
229 -
230 - if use python; then
231 - pushd contrib/pyzfs >/dev/null || die
232 - distutils-r1_src_install
233 - popd >/dev/null || die
234 - fi
235 -
236 - # enforce best available python implementation
237 - use minimal || python_fix_shebang "${ED}/bin"
238 -}
239 -
240 -pkg_postinst() {
241 - # we always need userspace utils in sync with zfs-kmod
242 - # so force initrd update for userspace as well, to avoid
243 - # situation when zfs-kmod trigger initrd rebuild before
244 - # userspace component is rebuilt
245 - # KV_* variables are provided by linux-info.eclass
246 - if [[ -z ${ROOT} ]] && use dist-kernel; then
247 - dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
248 - fi
249 -
250 - if use rootfs; then
251 - if ! has_version sys-kernel/genkernel && ! has_version sys-kernel/dracut; then
252 - elog "root on zfs requires initramfs to boot"
253 - elog "the following packages known to provide one and tested on regular basis:"
254 - elog " sys-kernel/dracut"
255 - elog " sys-kernel/genkernel"
256 - fi
257 - fi
258 -
259 - if ! use kernel-builtin && [[ ${PV} = "9999" ]]; then
260 - einfo "Adding ${P} to the module database to ensure that the"
261 - einfo "kernel modules and userland utilities stay in sync."
262 - update_moduledb
263 - fi
264 -
265 - if systemd_is_booted || has_version sys-apps/systemd; then
266 - einfo "Please refer to ${EROOT}/lib/systemd/system-preset/50-zfs.preset"
267 - einfo "for default zfs systemd service configuration"
268 - else
269 - [[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \
270 - einfo "You should add zfs-import to the boot runlevel."
271 - [[ -e "${EROOT}/etc/runlevels/boot/zfs-mount" ]]|| \
272 - einfo "You should add zfs-mount to the boot runlevel."
273 - [[ -e "${EROOT}/etc/runlevels/default/zfs-share" ]] || \
274 - einfo "You should add zfs-share to the default runlevel."
275 - [[ -e "${EROOT}/etc/runlevels/default/zfs-zed" ]] || \
276 - einfo "You should add zfs-zed to the default runlevel."
277 - fi
278 -}
279 -
280 -pkg_postrm() {
281 - if ! use kernel-builtin && [[ ${PV} == "9999" ]]; then
282 - remove_moduledb
283 - fi
284 -}