From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1384237-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D8BA915808C for <garchives@archives.gentoo.org>; Sun, 10 Apr 2022 10:01:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72E15E092C; Sun, 10 Apr 2022 10:01:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6DE2BE0924 for <gentoo-commits@lists.gentoo.org>; Sun, 10 Apr 2022 10:01:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D10D03416D4 for <gentoo-commits@lists.gentoo.org>; Sun, 10 Apr 2022 10:01:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA0FE397 for <gentoo-commits@lists.gentoo.org>; Sun, 10 Apr 2022 10:01:30 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1649584708.24ef58daecb018a4d6ee186982f499b9d0797d5b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/guestfs-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/guestfs-tools/Manifest app-emulation/guestfs-tools/guestfs-tools-1.48.0.ebuild X-VCS-Directories: app-emulation/guestfs-tools/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 24ef58daecb018a4d6ee186982f499b9d0797d5b X-VCS-Branch: master Date: Sun, 10 Apr 2022 10:01:30 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 17b0864f-c7e6-4a0b-9b59-dd34ce8b8f3a X-Archives-Hash: 780c4cdfdda1927a078cee1d3caca57c commit: 24ef58daecb018a4d6ee186982f499b9d0797d5b Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Apr 10 09:52:51 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Apr 10 09:58:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24ef58da app-emulation/guestfs-tools: add 1.48.0 Signed-off-by: Sam James <sam <AT> gentoo.org> app-emulation/guestfs-tools/Manifest | 1 + .../guestfs-tools/guestfs-tools-1.48.0.ebuild | 153 +++++++++++++++++++++ 2 files changed, 154 insertions(+) diff --git a/app-emulation/guestfs-tools/Manifest b/app-emulation/guestfs-tools/Manifest index 3961908b067e..4547aa0ebc0b 100644 --- a/app-emulation/guestfs-tools/Manifest +++ b/app-emulation/guestfs-tools/Manifest @@ -1 +1,2 @@ DIST guestfs-tools-1.46.1.tar.gz 12665804 BLAKE2B 7800954dfa961900035b127f6ac2556f584dd2d156143bf82fd1ba9fd1f327091706987192d91cb4251295d9565e56f769ab06bdac677160ac31d2e8f9d9a488 SHA512 d2bd0790343d54a2517237e56d1b982cd41335654fd205cfeec42a1b7cbbf4c0923597b767b8769dfe74766e078a817d520db251895990b922522030806d0b85 +DIST guestfs-tools-1.48.0.tar.gz 12682919 BLAKE2B 27b4e5c47af222691b067c19e997112acaf0360cc9c089dedb0327959ff8d80ff929e2fea369f9895ed6e1fc80a339ca89db3b9eb32cf23328fc71972447a13e SHA512 8576ef0e283a02a112f785e8f1656b41c93be29e12617ee8c83033b90758736ea3c2d4ecfb446a86c7913e2c0b39a7c5666e8ad22682419cc877543a3825c489 diff --git a/app-emulation/guestfs-tools/guestfs-tools-1.48.0.ebuild b/app-emulation/guestfs-tools/guestfs-tools-1.48.0.ebuild new file mode 100644 index 000000000000..84ae94b176aa --- /dev/null +++ b/app-emulation/guestfs-tools/guestfs-tools-1.48.0.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Bump with app-emulation/libguestfs and app-emulation/libguestfs-appliance (if any new release there) + +inherit flag-o-matic linux-info perl-functions strip-linguas toolchain-funcs + +MY_PV_1="$(ver_cut 1-2)" +MY_PV_2="$(ver_cut 2)" +[[ $(( ${MY_PV_2} % 2 )) -eq 0 ]] && SD="stable" || SD="development" + +DESCRIPTION="Tools for accessing, inspecting, and modifying virtual machine (VM) disk images" +HOMEPAGE="https://libguestfs.org/" +SRC_URI="https://download.libguestfs.org/${PN}/${MY_PV_1}-${SD}/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2" +SLOT="0/${MY_PV_1}" +KEYWORDS="~amd64" +IUSE="doc +ocaml +perl test" +RESTRICT="!test? ( test )" + +# Failures - doc +COMMON_DEPEND=" + !<app-emulation/libguestfs-1.46.0-r1 + app-arch/cpio + app-arch/lzma + app-arch/unzip[natspec] + app-arch/xz-utils + app-crypt/gnupg + >=app-emulation/libguestfs-${MY_PV_1}:=[ocaml?,perl?] + app-emulation/libvirt:= + >=app-emulation/qemu-2.0[qemu_softmmu_targets_x86_64,filecaps] + dev-lang/perl:= + dev-libs/libpcre2:= + dev-libs/libxml2:2 + dev-libs/jansson:= + >=sys-apps/fakechroot-2.8 + sys-fs/squashfs-tools:* + sys-libs/ncurses:= + sys-libs/libxcrypt:= + virtual/libcrypt:= + ocaml? ( >=dev-lang/ocaml-4.03:=[ocamlopt] ) + perl? ( + virtual/perl-Data-Dumper + virtual/perl-Getopt-Long + dev-perl/Module-Build + dev-perl/libintl-perl + virtual/perl-ExtUtils-MakeMaker + >=dev-perl/Sys-Virt-0.2.4 + dev-perl/String-ShellQuote + test? ( virtual/perl-Test-Simple ) + ) +" +# Some OCaml is always required +# bug #729674 +DEPEND="${COMMON_DEPEND} + >=dev-lang/ocaml-4.03:=[ocamlopt] + dev-ml/findlib[ocamlopt] + doc? ( app-text/po4a ) + ocaml? ( + dev-ml/ounit2[ocamlopt] + || ( + <dev-ml/ocaml-gettext-0.4.2 + dev-ml/ocaml-gettext-stub[ocamlopt] + ) + ) +" +BDEPEND="virtual/pkgconfig" +RDEPEND="${COMMON_DEPEND} + app-emulation/libguestfs-appliance +" + +DOCS=( AUTHORS BUGS ChangeLog HACKING README TODO ) + +#PATCHES=( +# "${FILESDIR}"/${MY_PV_1}/ +#) + +pkg_setup() { + CONFIG_CHECK="~KVM ~VIRTIO" + [[ -n "${CONFIG_CHECK}" ]] && check_extra_config +} + +src_configure() { + # bug #794877 + tc-export AR + + if use test ; then + # Skip Bash test + # (See 13-test-suite.log in linked bug) + # bug #794874 + export SKIP_TEST_COMPLETE_IN_SCRIPT_SH=1 + + # This test requires libvirt support in libguestfs and it makes + # no difference at runtime. Just gracefully skip it to make life + # easier for e.g. arch testing. + if ! has_version 'app-emulation/libguestfs[libvirt]' ; then + export SKIP_TEST_VIRT_ALIGNMENT_SCAN_GUESTS_SH=1 + fi + + # Needed for the inspector tests. Provided by libguestfs-appliance. + #export LIBGUESTFS_PATH="${BROOT}"/usr/share/guestfs/appliance/ + # But the inspector tests seem fragile anyway... + export SKIP_TEST_VIRT_INSPECTOR_LUKS_SH=1 + export SKIP_TEST_VIRT_INSPECTOR_SH=1 + fi + + # Disable feature test for kvm for more reason + # i.e: not loaded module in __build__ time, + # build server not supported kvm, etc. ... + # + # In fact, this feature is virtio support and requires + # configured kernel. + export vmchannel_test=no + + # Give a nudge to help find libxcrypt[-system] + # We have a := dep on virtual/libcrypt to ensure this + # doesn't become stale. + # bug #703118, bug #789354 + if ! has_version 'sys-libs/libxcrypt[system]' ; then + append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/xcrypt" + append-ldflags "-Wl,-R${ESYSROOT}/usr/$(get_libdir)/xcrypt" + fi + + econf \ + $(usex doc '' PO4A=no) \ + $(use_enable ocaml) \ + $(use_enable perl) +} + +src_install() { + strip-linguas -i po + + emake DESTDIR="${D}" install "LINGUAS=""${LINGUAS}""" + + find "${ED}" -name '*.la' -delete || die + + if use perl ; then + perl_delete_localpod + fi +} + +pkg_postinst() { + if ! use ocaml ; then + einfo "OCaml based tools and bindings (virt-resize, virt-sparsify, virt-sysprep, ...) NOT installed" + fi + + if ! use perl ; then + einfo "Perl based tools NOT built" + fi +}