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: Tue, 01 Dec 2020 19:04:12
Message-Id: 1606849424.04a92835db2f282ff39d63f8431ecc08a198f2a4.gyakovlev@gentoo
1 commit: 04a92835db2f282ff39d63f8431ecc08a198f2a4
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 1 19:00:23 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 1 19:03:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04a92835
7
8 sys-fs/zfs: remove rc ebuilds
9
10 Package-Manager: Portage-3.0.11, Repoman-3.0.2
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 sys-fs/zfs/Manifest | 2 -
14 sys-fs/zfs/zfs-2.0.0_rc6.ebuild | 229 ---------------------------------------
15 sys-fs/zfs/zfs-2.0.0_rc7.ebuild | 231 ----------------------------------------
16 3 files changed, 462 deletions(-)
17
18 diff --git a/sys-fs/zfs/Manifest b/sys-fs/zfs/Manifest
19 index 3681a1f8b22..c61bfe7fb31 100644
20 --- a/sys-fs/zfs/Manifest
21 +++ b/sys-fs/zfs/Manifest
22 @@ -1,4 +1,2 @@
23 DIST zfs-0.8.5.tar.gz 9196381 BLAKE2B 8376f360369c4657ff1fc040fb2bba780bbd5d6a98d149d2fa4ba39478588e213dbf6db218c7bd970839f015a69ae00ac951b90afc1c26b34aadf666b2976cab SHA512 3e6e70b76f7cc5b018adb78ce7c3009f88faf5b3da0a03170b03577cd84a2937b6056621c41fc819fd08bf59b28053caf8fec375cf375816a6786bb5646ed773
24 -DIST zfs-2.0.0-rc6.tar.gz 12896465 BLAKE2B e7a91d980940998a7312d48a43c07561e3b1aa72cc6f88eb534cb39b5e18de4280964ba7f690b63f5e2dd3cfdeb57d718d7389f8ab2062ff7bb6e8bb4174801a SHA512 5daf8d39766f8c8f8bca340585ae36c39507e33642a7cd2dadb74bbe1d529d5be40420057edc95814c0b554121128c0ebde59c3fbed17259870b123a56acd2e8
25 -DIST zfs-2.0.0-rc7.tar.gz 12994030 BLAKE2B 12dde3b935cddabd3d3e5874685cd914f0338526ba8d22aaba2b1ff09aae64a67cc66ea0acc7d08cdc438fd8dfc93a2727bab5e90c08c2a294074692f4189214 SHA512 fbef7bc76c2b913ef8c4af55e6feb46bcadbca856b8ba28c72432bb91b8dc88de191d657aaeb5efd67ee2d67a6ffcf5d3d53b4490f9a32211a571687694e7e65
26 DIST zfs-2.0.0.tar.gz 12989903 BLAKE2B 2961b97aa6736af9b4a2bc968d1488f49ec0c0fd7bb22b6bc015047239279efd2d48f8d7c593f9b467ac9d40f99d67363ab551bdfaf1dd71335c37c48c759875 SHA512 2706ae1aa54b882b272502e7a46e57ff41f9db9b123e8cd5dafbdd7f61975d05538167016f943804145d22aa018a1f11c884f692dc3992b28c24eac08112650f
27
28 diff --git a/sys-fs/zfs/zfs-2.0.0_rc6.ebuild b/sys-fs/zfs/zfs-2.0.0_rc6.ebuild
29 deleted file mode 100644
30 index e5684e2ff42..00000000000
31 --- a/sys-fs/zfs/zfs-2.0.0_rc6.ebuild
32 +++ /dev/null
33 @@ -1,229 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -DISTUTILS_OPTIONAL=1
40 -PYTHON_COMPAT=( python3_{6,7,8,9} )
41 -
42 -inherit autotools bash-completion-r1 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 -SLOT="0/4" # just libzfs soname major for now. possible candidates: libuutil, libzpool, libnvpair
59 -IUSE="custom-cflags debug kernel-builtin libressl minimal nls pam python +rootfs test-suite static-libs"
60 -
61 -DEPEND="
62 - net-libs/libtirpc[static-libs?]
63 - sys-apps/util-linux[static-libs?]
64 - sys-libs/zlib[static-libs(+)?]
65 - virtual/awk
66 - virtual/libudev[static-libs(-)?]
67 - libressl? ( dev-libs/libressl:0=[static-libs?] )
68 - !libressl? ( dev-libs/openssl:0=[static-libs?] )
69 - !minimal? ( ${PYTHON_DEPS} )
70 - pam? ( sys-libs/pam )
71 - python? (
72 - virtual/python-cffi[${PYTHON_USEDEP}]
73 - )
74 -"
75 -
76 -BDEPEND="virtual/awk
77 - virtual/pkgconfig
78 - nls? ( sys-devel/gettext )
79 - python? (
80 - dev-python/setuptools[${PYTHON_USEDEP}]
81 - )
82 -"
83 -
84 -RDEPEND="${DEPEND}
85 - !kernel-builtin? ( ~sys-fs/zfs-kmod-${PV} )
86 - !prefix? ( virtual/udev )
87 - sys-fs/udev-init-scripts
88 - rootfs? (
89 - app-arch/cpio
90 - app-misc/pax-utils
91 - !<sys-kernel/genkernel-3.5.1.1
92 - )
93 - test-suite? (
94 - sys-apps/kmod[tools]
95 - sys-apps/util-linux
96 - sys-devel/bc
97 - sys-block/parted
98 - sys-fs/lsscsi
99 - sys-fs/mdadm
100 - sys-process/procps
101 - )
102 -"
103 -
104 -REQUIRED_USE="
105 - !minimal? ( ${PYTHON_REQUIRED_USE} )
106 - python? ( !minimal )
107 - test-suite? ( !minimal )
108 -"
109 -
110 -RESTRICT="test"
111 -
112 -PATCHES=( "${FILESDIR}/bash-completion-sudo.patch" )
113 -
114 -pkg_setup() {
115 - if use kernel_linux && use test-suite; then
116 - linux-info_pkg_setup
117 -
118 - if ! linux_config_exists; then
119 - ewarn "Cannot check the linux kernel configuration."
120 - else
121 - if use test-suite; then
122 - if linux_chkconfig_present BLK_DEV_LOOP; then
123 - eerror "The ZFS test suite requires loop device support enabled."
124 - eerror "Please enable it:"
125 - eerror " CONFIG_BLK_DEV_LOOP=y"
126 - eerror "in /usr/src/linux/.config or"
127 - eerror " Device Drivers --->"
128 - eerror " Block devices --->"
129 - eerror " [X] Loopback device support"
130 - fi
131 - fi
132 - fi
133 - fi
134 -}
135 -
136 -src_prepare() {
137 - default
138 -
139 - if [[ ${PV} == "9999" ]]; then
140 - eautoreconf
141 - else
142 - # Set revision number
143 - sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" META || die "Could not set Gentoo release"
144 - fi
145 -
146 - if use python; then
147 - pushd contrib/pyzfs >/dev/null || die
148 - distutils-r1_src_prepare
149 - popd >/dev/null || die
150 - fi
151 -
152 - # prevent errors showing up on zfs-mount stop, #647688
153 - # openrc will unmount all filesystems anyway.
154 - sed -i "/^ZFS_UNMOUNT=/ s/yes/no/" "etc/default/zfs.in" || die
155 -}
156 -
157 -src_configure() {
158 - use custom-cflags || strip-flags
159 - use minimal || python_setup
160 -
161 - local myconf=(
162 - --bindir="${EPREFIX}/bin"
163 - --enable-shared
164 - --enable-systemd
165 - --enable-sysvinit
166 - --localstatedir="${EPREFIX}/var"
167 - --sbindir="${EPREFIX}/sbin"
168 - --with-config=user
169 - --with-dracutdir="${EPREFIX}/usr/lib/dracut"
170 - --with-linux="${KV_DIR}"
171 - --with-linux-obj="${KV_OUT_DIR}"
172 - --with-udevdir="$(get_udevdir)"
173 - --with-pamconfigsdir="${EPREFIX}/unwanted_files"
174 - --with-pammoduledir="$(getpam_mod_dir)"
175 - --with-systemdunitdir="$(systemd_get_systemunitdir)"
176 - --with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
177 - --with-vendor=gentoo
178 - $(use_enable debug)
179 - $(use_enable nls)
180 - $(use_enable pam)
181 - $(use_enable python pyzfs)
182 - $(use_enable static-libs static)
183 - $(usex minimal --without-python --with-python="${EPYTHON}")
184 - )
185 -
186 - econf "${myconf[@]}"
187 -}
188 -
189 -src_compile() {
190 - default
191 - if use python; then
192 - pushd contrib/pyzfs >/dev/null || die
193 - distutils-r1_src_compile
194 - popd >/dev/null || die
195 - fi
196 -}
197 -
198 -src_install() {
199 - default
200 -
201 - gen_usr_ldscript -a uutil nvpair zpool zfs zfs_core
202 -
203 - use pam && { rm -rv "${ED}/unwanted_files" || die ; }
204 -
205 - use test-suite || { rm -r "${ED}/usr/share/zfs" || die ; }
206 -
207 - if ! use static-libs; then
208 - find "${ED}/" -name '*.la' -delete || die
209 - fi
210 -
211 - dobashcomp contrib/bash_completion.d/zfs
212 - bashcomp_alias zfs zpool
213 -
214 - # strip executable bit from conf.d file
215 - fperms 0644 /etc/conf.d/zfs
216 -
217 - if use python; then
218 - pushd contrib/pyzfs >/dev/null || die
219 - distutils-r1_src_install
220 - popd >/dev/null || die
221 - fi
222 -
223 - # enforce best available python implementation
224 - use minimal || python_fix_shebang "${ED}/bin"
225 -}
226 -
227 -pkg_postinst() {
228 - if use rootfs; then
229 - if ! has_version sys-kernel/genkernel && ! has_version sys-kernel/dracut; then
230 - elog "root on zfs requires initramfs to boot"
231 - elog "the following packages known to provide one and tested on regular basis:"
232 - elog " sys-kernel/dracut"
233 - elog " sys-kernel/genkernel"
234 - fi
235 - fi
236 -
237 - if ! use kernel-builtin && [[ ${PV} = "9999" ]]; then
238 - einfo "Adding ${P} to the module database to ensure that the"
239 - einfo "kernel modules and userland utilities stay in sync."
240 - update_moduledb
241 - fi
242 -
243 - if systemd_is_booted || has_version sys-apps/systemd; then
244 - einfo "Please refer to ${EROOT}/lib/systemd/system-preset/50-zfs.preset"
245 - einfo "for default zfs systemd service configuration"
246 - else
247 - [[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \
248 - einfo "You should add zfs-import to the boot runlevel."
249 - [[ -e "${EROOT}/etc/runlevels/boot/zfs-mount" ]]|| \
250 - einfo "You should add zfs-mount to the boot runlevel."
251 - [[ -e "${EROOT}/etc/runlevels/default/zfs-share" ]] || \
252 - einfo "You should add zfs-share to the default runlevel."
253 - [[ -e "${EROOT}/etc/runlevels/default/zfs-zed" ]] || \
254 - einfo "You should add zfs-zed to the default runlevel."
255 - fi
256 -}
257 -
258 -pkg_postrm() {
259 - if ! use kernel-builtin && [[ ${PV} == "9999" ]]; then
260 - remove_moduledb
261 - fi
262 -}
263
264 diff --git a/sys-fs/zfs/zfs-2.0.0_rc7.ebuild b/sys-fs/zfs/zfs-2.0.0_rc7.ebuild
265 deleted file mode 100644
266 index 83e1b87f58a..00000000000
267 --- a/sys-fs/zfs/zfs-2.0.0_rc7.ebuild
268 +++ /dev/null
269 @@ -1,231 +0,0 @@
270 -# Copyright 1999-2020 Gentoo Authors
271 -# Distributed under the terms of the GNU General Public License v2
272 -
273 -EAPI=7
274 -
275 -DISTUTILS_OPTIONAL=1
276 -PYTHON_COMPAT=( python3_{7,8,9} )
277 -
278 -inherit autotools bash-completion-r1 distutils-r1 flag-o-matic linux-info pam systemd toolchain-funcs udev usr-ldscript
279 -
280 -DESCRIPTION="Userland utilities for ZFS Linux kernel module"
281 -HOMEPAGE="https://github.com/openzfs/zfs"
282 -
283 -if [[ ${PV} == "9999" ]] ; then
284 - inherit git-r3 linux-mod
285 - EGIT_REPO_URI="https://github.com/openzfs/zfs.git"
286 -else
287 - MY_P="${P/_rc/-rc}"
288 - SRC_URI="https://github.com/openzfs/${PN}/releases/download/${MY_P}/${MY_P}.tar.gz"
289 - KEYWORDS="~amd64 ~arm64 ~ppc64"
290 - S="${WORKDIR}/${P%_rc?}"
291 -fi
292 -
293 -LICENSE="BSD-2 CDDL MIT"
294 -# just libzfs soname major for now.
295 -# possible candidates: libuutil, libzpool, libnvpair. Those do not provide stable abi, but are considered.
296 -SLOT="0/4"
297 -IUSE="custom-cflags debug kernel-builtin libressl minimal nls pam python +rootfs test-suite static-libs"
298 -
299 -DEPEND="
300 - net-libs/libtirpc[static-libs?]
301 - sys-apps/util-linux[static-libs?]
302 - sys-libs/zlib[static-libs(+)?]
303 - virtual/awk
304 - virtual/libudev[static-libs(-)?]
305 - libressl? ( dev-libs/libressl:0=[static-libs?] )
306 - !libressl? ( dev-libs/openssl:0=[static-libs?] )
307 - !minimal? ( ${PYTHON_DEPS} )
308 - pam? ( sys-libs/pam )
309 - python? (
310 - virtual/python-cffi[${PYTHON_USEDEP}]
311 - )
312 -"
313 -
314 -BDEPEND="virtual/awk
315 - virtual/pkgconfig
316 - nls? ( sys-devel/gettext )
317 - python? (
318 - dev-python/setuptools[${PYTHON_USEDEP}]
319 - )
320 -"
321 -
322 -RDEPEND="${DEPEND}
323 - !kernel-builtin? ( ~sys-fs/zfs-kmod-${PV} )
324 - !prefix? ( virtual/udev )
325 - sys-fs/udev-init-scripts
326 - rootfs? (
327 - app-arch/cpio
328 - app-misc/pax-utils
329 - !<sys-kernel/genkernel-3.5.1.1
330 - )
331 - test-suite? (
332 - sys-apps/kmod[tools]
333 - sys-apps/util-linux
334 - sys-devel/bc
335 - sys-block/parted
336 - sys-fs/lsscsi
337 - sys-fs/mdadm
338 - sys-process/procps
339 - )
340 -"
341 -
342 -REQUIRED_USE="
343 - !minimal? ( ${PYTHON_REQUIRED_USE} )
344 - python? ( !minimal )
345 - test-suite? ( !minimal )
346 -"
347 -
348 -RESTRICT="test"
349 -
350 -PATCHES=( "${FILESDIR}/bash-completion-sudo.patch" )
351 -
352 -pkg_setup() {
353 - if use kernel_linux && use test-suite; then
354 - linux-info_pkg_setup
355 -
356 - if ! linux_config_exists; then
357 - ewarn "Cannot check the linux kernel configuration."
358 - else
359 - if use test-suite; then
360 - if linux_chkconfig_present BLK_DEV_LOOP; then
361 - eerror "The ZFS test suite requires loop device support enabled."
362 - eerror "Please enable it:"
363 - eerror " CONFIG_BLK_DEV_LOOP=y"
364 - eerror "in /usr/src/linux/.config or"
365 - eerror " Device Drivers --->"
366 - eerror " Block devices --->"
367 - eerror " [X] Loopback device support"
368 - fi
369 - fi
370 - fi
371 - fi
372 -}
373 -
374 -src_prepare() {
375 - default
376 -
377 - if [[ ${PV} == "9999" ]]; then
378 - eautoreconf
379 - else
380 - # Set revision number
381 - sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" META || die "Could not set Gentoo release"
382 - fi
383 -
384 - if use python; then
385 - pushd contrib/pyzfs >/dev/null || die
386 - distutils-r1_src_prepare
387 - popd >/dev/null || die
388 - fi
389 -
390 - # prevent errors showing up on zfs-mount stop, #647688
391 - # openrc will unmount all filesystems anyway.
392 - sed -i "/^ZFS_UNMOUNT=/ s/yes/no/" "etc/default/zfs.in" || die
393 -}
394 -
395 -src_configure() {
396 - use custom-cflags || strip-flags
397 - use minimal || python_setup
398 -
399 - local myconf=(
400 - --bindir="${EPREFIX}/bin"
401 - --enable-shared
402 - --enable-systemd
403 - --enable-sysvinit
404 - --localstatedir="${EPREFIX}/var"
405 - --sbindir="${EPREFIX}/sbin"
406 - --with-config=user
407 - --with-dracutdir="${EPREFIX}/usr/lib/dracut"
408 - --with-linux="${KV_DIR}"
409 - --with-linux-obj="${KV_OUT_DIR}"
410 - --with-udevdir="$(get_udevdir)"
411 - --with-pamconfigsdir="${EPREFIX}/unwanted_files"
412 - --with-pammoduledir="$(getpam_mod_dir)"
413 - --with-systemdunitdir="$(systemd_get_systemunitdir)"
414 - --with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
415 - --with-vendor=gentoo
416 - $(use_enable debug)
417 - $(use_enable nls)
418 - $(use_enable pam)
419 - $(use_enable python pyzfs)
420 - $(use_enable static-libs static)
421 - $(usex minimal --without-python --with-python="${EPYTHON}")
422 - )
423 -
424 - econf "${myconf[@]}"
425 -}
426 -
427 -src_compile() {
428 - default
429 - if use python; then
430 - pushd contrib/pyzfs >/dev/null || die
431 - distutils-r1_src_compile
432 - popd >/dev/null || die
433 - fi
434 -}
435 -
436 -src_install() {
437 - default
438 -
439 - gen_usr_ldscript -a nvpair uutil zfsbootenv zfs zfs_core zpool
440 -
441 - use pam && { rm -rv "${ED}/unwanted_files" || die ; }
442 -
443 - use test-suite || { rm -r "${ED}/usr/share/zfs" || die ; }
444 -
445 - if ! use static-libs; then
446 - find "${ED}/" -name '*.la' -delete || die
447 - fi
448 -
449 - dobashcomp contrib/bash_completion.d/zfs
450 - bashcomp_alias zfs zpool
451 -
452 - # strip executable bit from conf.d file
453 - fperms 0644 /etc/conf.d/zfs
454 -
455 - if use python; then
456 - pushd contrib/pyzfs >/dev/null || die
457 - distutils-r1_src_install
458 - popd >/dev/null || die
459 - fi
460 -
461 - # enforce best available python implementation
462 - use minimal || python_fix_shebang "${ED}/bin"
463 -}
464 -
465 -pkg_postinst() {
466 - if use rootfs; then
467 - if ! has_version sys-kernel/genkernel && ! has_version sys-kernel/dracut; then
468 - elog "root on zfs requires initramfs to boot"
469 - elog "the following packages known to provide one and tested on regular basis:"
470 - elog " sys-kernel/dracut"
471 - elog " sys-kernel/genkernel"
472 - fi
473 - fi
474 -
475 - if ! use kernel-builtin && [[ ${PV} = "9999" ]]; then
476 - einfo "Adding ${P} to the module database to ensure that the"
477 - einfo "kernel modules and userland utilities stay in sync."
478 - update_moduledb
479 - fi
480 -
481 - if systemd_is_booted || has_version sys-apps/systemd; then
482 - einfo "Please refer to ${EROOT}/lib/systemd/system-preset/50-zfs.preset"
483 - einfo "for default zfs systemd service configuration"
484 - else
485 - [[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \
486 - einfo "You should add zfs-import to the boot runlevel."
487 - [[ -e "${EROOT}/etc/runlevels/boot/zfs-mount" ]]|| \
488 - einfo "You should add zfs-mount to the boot runlevel."
489 - [[ -e "${EROOT}/etc/runlevels/default/zfs-share" ]] || \
490 - einfo "You should add zfs-share to the default runlevel."
491 - [[ -e "${EROOT}/etc/runlevels/default/zfs-zed" ]] || \
492 - einfo "You should add zfs-zed to the default runlevel."
493 - fi
494 -}
495 -
496 -pkg_postrm() {
497 - if ! use kernel-builtin && [[ ${PV} == "9999" ]]; then
498 - remove_moduledb
499 - fi
500 -}