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