commit: 17a73fece7f8374acd1e9bde258bc5139df576fe Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> AuthorDate: Sun Aug 31 19:34:16 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Sep 6 14:17:41 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17a73fec
app-emulation/libguestfs: add 1.57.2 Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43629 Signed-off-by: Sam James <sam <AT> gentoo.org> app-emulation/libguestfs/Manifest | 1 + app-emulation/libguestfs/libguestfs-1.57.2.ebuild | 210 ++++++++++++++++++++++ 2 files changed, 211 insertions(+) diff --git a/app-emulation/libguestfs/Manifest b/app-emulation/libguestfs/Manifest index 243274a12d52..0e2789b31cee 100644 --- a/app-emulation/libguestfs/Manifest +++ b/app-emulation/libguestfs/Manifest @@ -2,3 +2,4 @@ DIST libguestfs-1.48.6.tar.gz 19179600 BLAKE2B 22359ed4b55e29f985dbbbc4f0337eaec DIST libguestfs-1.54.1.tar.gz 19023492 BLAKE2B 13fe3a536ec04901a69192ecc9fefe055099d057ba3609bd1ec51b8853e5ad50fd608ef4de7d6296f9bf53a19c1bc81f2ae54c185c18c6e68f7a541f34222f93 SHA512 0113ea1cd26aba9b935b65299cf34d53c3d669508238d642a1a97622eb24948df05b55072d4c715cacb4fdfc7339c69ca25f65ca51ac87c40c5325175e939a0d DIST libguestfs-1.55.13.tar.gz 19024876 BLAKE2B af4cefe9c60216bdc88c93a823a2c6405b2e62faf184ecc4c363283c64d8289cc9c9d67ab5c35c8c71de7cc987de2c4d776a237035087f198e8fc72664a0eb45 SHA512 7f66969e3217426ecf9155777f1b07512db289e0661c2736837c6ea25c9fb6db26854d9e0e1d1306007b8a70b6ccd96de55869db370c356106760437457eb422 DIST libguestfs-1.56.2.tar.gz 19022635 BLAKE2B 0da837826673b75faac3bc05c6eddf7df60fbac50fcb5dedbe877777f450344217b6fd58892695efcb241cfb3c1fb19d251a8fef9ba5e015b250afb6aad17143 SHA512 80d99319bc6d13f0f4252c21250d4191a9dec94c6d10b572806043f3ecc36581c2169ddac4ebf7c7c7a1a560c6e85c5ce366baea2e63efcaa093f601d1031c62 +DIST libguestfs-1.57.2.tar.gz 19029615 BLAKE2B 8d06776b5ce1cb49eeff6750d270a331c213e0df3858b7a9cbbb05231494c320ef6d7fb49dd7b90af8ee7bcc4892059503a49e37b729d791a8d9a34f4663cc60 SHA512 3a63c218a755afbc824c158fd9999f75d1b2b4bc2c9b312eaf114414d1694ee5512a43ef806a5720eca83662f7203c5727a802721bc0bc77274e8b5362324fca diff --git a/app-emulation/libguestfs/libguestfs-1.57.2.ebuild b/app-emulation/libguestfs/libguestfs-1.57.2.ebuild new file mode 100644 index 000000000000..97e2571ddf94 --- /dev/null +++ b/app-emulation/libguestfs/libguestfs-1.57.2.ebuild @@ -0,0 +1,210 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +USE_RUBY=( ruby3{2..3} ) +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit autotools bash-completion-r1 dot-a linux-info lua-single perl-functions\ + python-single-r1 ruby-single 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/${MY_PV_1}-${SD}/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2" +SLOT="0/${MY_PV_1}" +if [[ ${SD} == "stable" ]] ; then + KEYWORDS="~amd64" +fi + +IUSE="doc erlang +fuse libvirt lua +ocaml +perl python readline ruby selinux static-libs test" + +REQUIRED_USE=" + lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${PYTHON_REQUIRED_USE} ) +" + +RESTRICT="!test? ( test )" + +# Not part of the system profile, but dependenices of it with base USE flags +COMMON_DEPEND_DEFAULT=" + app-arch/xz-utils + app-arch/zstd + dev-libs/libpcre2:= + dev-libs/libxml2:= + net-libs/libtirpc:= + sys-libs/libcap-ng + sys-libs/ncurses:= + sys-libs/readline:= + virtual/acl + virtual/libcrypt +" +# Won't compile without it +COMMON_DEPEND_EXPLICIT=" + app-alternatives/cpio + app-emulation/qemu[qemu_softmmu_targets_x86_64,selinux?] + dev-libs/json-c:= + || ( + dev-libs/libisoburn + app-cdr/cdrtools + ) +" +# "Automagic" dependencies +COMMON_DEPEND_IMPLICIT=" + dev-libs/libconfig:= + media-gfx/icoutils + media-libs/netpbm[png] +" +# Sum of the above + conditional dependencies +COMMON_DEPEND=" + ${COMMON_DEPEND_DEFAULT} + ${COMMON_DEPEND_EXPLICIT} + ${COMMON_DEPEND_IMPLICIT} + erlang? ( dev-lang/erlang ) + fuse? ( sys-fs/fuse:0 ) + libvirt? ( app-emulation/libvirt[qemu] ) + perl? ( + dev-perl/libintl-perl + virtual/perl-Getopt-Long + ) + python? ( ${PYTHON_DEPS} ) + readline? ( sys-libs/readline ) + ruby? ( ${RUBY_DEPS} ) + selinux? ( sys-libs/libselinux ) +" +# Some OCaml is always required +# Bug #729674 +DEPEND=" + ${COMMON_DEPEND} + dev-lang/ocaml:=[ocamlopt] + dev-ml/findlib[ocamlopt] + dev-util/gperf +" +RDEPEND=" + ${COMMON_DEPEND} + app-emulation/libguestfs-appliance +" +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig + doc? ( app-text/po4a ) + lua? ( ${LUA_DEPS} ) + perl? ( + dev-perl/Module-Build + virtual/perl-ExtUtils-CBuilder + virtual/perl-Pod-Simple + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-1.52.1-disable-obsolete-lvmetad-in-tests.patch" +) + +src_prepare() { + cat <<EOF > "${S}/m4/guestfs-bash-completion.m4" || die +dnl Unconditionally install Bash completion files +AC_MSG_CHECKING([for bash-completions directory]) +AC_SUBST([BASH_COMPLETIONS_DIR],[$(get_bashcompdir)]) +AC_MSG_RESULT([\$BASH_COMPLETIONS_DIR]) +AM_CONDITIONAL([HAVE_BASH_COMPLETION],[/bin/true]) +EOF + + default + eautoreconf +} + +pkg_setup() { + CONFIG_CHECK="~KVM ~VIRTIO" + [[ -n "${CONFIG_CHECK}" ]] && check_extra_config + + use lua && lua-single_pkg_setup + use python && python-single-r1_pkg_setup +} + +src_configure() { + # Bug #794877 + tc-export AR + + if use ocaml || use static-libs; then + lto-guarantee-fat + fi + + local myconf=( + --disable-appliance + --disable-daemon + --disable-haskell + --disable-golang + --disable-rust + $(use_enable ocaml) + --disable-php + --without-java + $(use_enable lua) + $(use_enable erlang) + --disable-vala + $(usex doc '' PO4A=no) + --with-extra="-gentoo" + $(use_with readline) + $(use_enable ruby) + $(use_enable fuse) + --disable-gobject + --disable-introspection + $(use_with libvirt) + --with-default-backend=$(usex libvirt libvirt direct) + $(use_enable perl) + $(use_enable python) + $(use_enable static-libs static) + ) + + # Avoid automagic SELinux dependency + local -x ac_cv_header_selinux_selinux_h + + if use selinux && use !libvirt; then + ewarn "USE=selinux has no effect without USE=libvirt" + ac_cv_header_selinux_selinux_h="no" + else + ac_cv_header_selinux_selinux_h=$(usex selinux) + fi + + econf "${myconf[@]}" +} + +src_install() { + emake INSTALLDIRS=vendor DESTDIR="${D}" install "LINGUAS=""${LINGUAS}""" + # ocaml always installs a static lib even without USE=static-libs + strip-lto-bytecode "${ED}" + + find "${ED}" -name '*.la' -delete || die + + use perl && perl_delete_localpod + use python && python_optimize +} + +src_test() { + # app-shells/bash-completion may not be installed + # Bug #794874 + local -x SKIP_TEST_COMPLETE_IN_SCRIPT_SH=1 + # Upstream doesn't ship the test data + local -x SKIP_TEST_JOURNAL_PL=1 + local -x SKIP_TEST_MOUNTABLE_INSPECT_SH=1 + # Sandbox interferes with tests + local -x SKIP_TEST_BIG_HEAP=1 + local -x SKIP_TEST_SELINUX_XATTRS_FUSE=1 + local -x SKIP_TEST_GUESTUNMOUNT_FD=1 + # Doesn't work correctly when --without-daemon is specified + local -x SKIP_TEST_NOEXEC_STACK_PL=1 + # Socket pathname too long for libvirt backend + local -x LIBGUESTFS_BACKEND=direct + + # Increase vebosity + local -x LIBGUESTFS_DEBUG=1 + local -x LIBGUESTFS_TRACE=1 + + default +}
