diff options
Diffstat (limited to 'dev-perl/Sys-Virt')
-rw-r--r-- | dev-perl/Sys-Virt/Manifest | 7 | ||||
-rw-r--r-- | dev-perl/Sys-Virt/Sys-Virt-8.1.0.ebuild | 34 | ||||
-rw-r--r-- | dev-perl/Sys-Virt/Sys-Virt-8.3.0.ebuild | 41 | ||||
-rw-r--r-- | dev-perl/Sys-Virt/Sys-Virt-8.4.0.ebuild | 49 | ||||
-rw-r--r-- | dev-perl/Sys-Virt/files/Sys-Virt-8.4.0-lib-Fix-parameter-detection-for-save-restore_domain.patch | 48 |
5 files changed, 179 insertions, 0 deletions
diff --git a/dev-perl/Sys-Virt/Manifest b/dev-perl/Sys-Virt/Manifest index df3a91bc3fb1..8a2067d9233e 100644 --- a/dev-perl/Sys-Virt/Manifest +++ b/dev-perl/Sys-Virt/Manifest @@ -1,5 +1,12 @@ +AUX Sys-Virt-8.4.0-lib-Fix-parameter-detection-for-save-restore_domain.patch 1821 BLAKE2B d09ec5031b86ae32b7479353e274dc6c0281e71025994ea278b750603d8dd64f2898228462f999c2c2d942bb0252e888d73ea1c5aab51729cfa0996bed37e8bf SHA512 dd3af8d893c9bc820edcc770bef2116d5b40f69f2686241bcd89475c17e71f9154f1933e22b9327f7b7024ed4bf0fd67b1e86cba5f502936888c36a35a9f92c0 DIST Sys-Virt-v7.0.0.tar.gz 165365 BLAKE2B 9cb7aa66ce00c95957171fedad4fefbae5319e17706e2839f8b3e057ab05c52b9d7e5ad222ad6aeecb7437e70bee9447a6a5845d729a93f10df3ffa4bbee0429 SHA512 c0ab179af11526a9dc983374765bd04400821f6f334d22f56b1f6452f54f880fe6882e9e0e121ae36010eb305d0632d574c969febefd8a32c9a731879d8fadb6 DIST Sys-Virt-v7.5.0.tar.gz 166656 BLAKE2B 466341cc081d1dedc0ad5ae9042a829256a310730aa410a93c795a983c6ee60099646d2a804626a076e435d3bd6d7742b4aa014f4642ee6b6078cd144b3cd8c0 SHA512 7da51e75fa53e81a68c32499ea865de0532fdb17f269b28310133d246be7dc59dfd6568850ffe66e393a7b7c2edbf4409618e2b461cdc35a62776ffbb97d7962 +DIST Sys-Virt-v8.1.0.tar.gz 169008 BLAKE2B 23d3aee186b4ede35c1b5b99691a491e64995abf34e7ce65143c7b88851dca0841cfa27a3033e246f35bacda879dd09c3b31f9dcff54d04c0d47a77b4b61d723 SHA512 9d7660f96cf370a0e08140bf7badddae2dac84d7231f1fe7a616650ac4d333ba17c6531ab0662f34c4cb12b00ce39abe36ff24a1913f554026346725d0148fa7 +DIST Sys-Virt-v8.3.0.tar.gz 169060 BLAKE2B cff54463afe9cc8ac2c6fab5f00bb00b3bb38eba816e09e417fc3d9881ae6efe8c076066b7d5c61bda2043eb6c728d025072069a059f61e954f8b482793cfa94 SHA512 902a1a16fbe64b1146998c57dce35dc32d9c717d3609933a288c9f449c12faeab9a1ef178c53b627869261b8036df50c2f39596df657d3a20cc6ceb9612634a3 +DIST Sys-Virt-v8.4.0.tar.gz 170680 BLAKE2B 0b6c40bcfeba0f5c98fea0e17e3ecc434cc5adf14ed5a92c9c7424a5745e3327c1a8ef05c79ba182d4eebd04b50abcafc68c59e8064ba28faf78bebbb500dbc2 SHA512 25c5b9013df2a916352c07be693c9a9410a4d3caf92a1da106176df314efa534078b5d4dc2501b9afda5ae1628ccf1394a346410972f6ebdd2282971c3efc17a EBUILD Sys-Virt-7.0.0.ebuild 767 BLAKE2B 91778504d48bbf174a780e88a85450f0ea315267f16d004e61208c3d6a0c8458976899e1f312a2076d44790f8869d781fcbb78934adf6b98c4eba3a91d967ff0 SHA512 e17ed83d3d16535ad5089739da918f8f3234860f006e87677279c19ebe76695e93632be4ae33e2197451a21a1d17e8f765a5e949fdb5ce46fc47420d8eb2e1c5 EBUILD Sys-Virt-7.5.0.ebuild 728 BLAKE2B bf373e31030ed74f341848b96c64d78b3d09c954e5d105860c61836460c92f32420de3125c314647d741e31c232b6e3a03f8a92d452da4cbf1330b1a8e5c6896 SHA512 bd03fafa2dc08471c61468f73b786f51b5f4290fbefb34833edeb27309c2d527c4fdf920ac2a77d9483f9e250d7a1c637ad8e12227c528fb53ff94fb1b55c9b8 +EBUILD Sys-Virt-8.1.0.ebuild 622 BLAKE2B 92bf555780e98adc1c802570cf67dfc7e576970f0fbc70c0033f8002afa769c90aa60ea721288d2cd628f29b5bdb166c3a6e907e9503f56ccbf7fe5672e0754a SHA512 8eb71ab58a95bf20ca781c1238dae19965322bf82b8a56589fadd45c2c82c54452729776b5117b27f95ab58f905cdb2e26a00bcabbccb24fb22070c03fca17bb +EBUILD Sys-Virt-8.3.0.ebuild 797 BLAKE2B 724e99fe9d274020ec2b9df941ab5b1cd1ae6b70a86016308db09713566afc9624303ebb96682ae52bd1293404960971fba547bc58b2cff371a7295c7fcb418b SHA512 5a487e9d4533df30b200b60f7b9682c2fe51ea49c26ef0efc3ec4a421b37f23767a2eddc0016be9b545e3fe075154c03aeccdd486fcbe7307638039625504d3e +EBUILD Sys-Virt-8.4.0.ebuild 1002 BLAKE2B 9338f433b9b2f5b7614f4184f55507de000a557d45449455069f0d8fe00d6b50bb2075a0baa78ff91b74128923d213063690995e14522883d0cd88a3934d4d97 SHA512 b29f9fe2758354c29e3b40a0ff67ce1486960370562f6475861dd70abb5d75233f5aa1daf85db6305ac0ce7fe4ed552c2a0c40c4c51662215909dd354e9875f0 MISC metadata.xml 1130 BLAKE2B c1c34f2f313c7d431950b792ed7ec80d5153926a3b91afea5a1a05e79758efcc7fda6b955832a7dc1593ec159449345304500ca9ca6f84b8cdb73e90db9bc224 SHA512 14353b0cb12bb25dd660923fef5443e526e8017240b6eb8f51963d4fd66dbc9aa3da5abbdf61afc995474d95b53533d147a3b70d65f043935ffeef616a09954e diff --git a/dev-perl/Sys-Virt/Sys-Virt-8.1.0.ebuild b/dev-perl/Sys-Virt/Sys-Virt-8.1.0.ebuild new file mode 100644 index 000000000000..b144e527c4db --- /dev/null +++ b/dev-perl/Sys-Virt/Sys-Virt-8.1.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=DANBERR +DIST_VERSION=v${PV} +DIST_EXAMPLES=("examples/*") +inherit perl-module + +DESCRIPTION="API for using the libvirt library from Perl" + +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=app-emulation/libvirt-${PV} +" +BDEPEND="${RDEPEND} + virtual/perl-ExtUtils-CBuilder + dev-perl/Module-Build + virtual/pkgconfig + test? ( + virtual/perl-Test-Simple + dev-perl/XML-XPath + virtual/perl-Time-HiRes + )" +DEPEND=" + >=app-emulation/libvirt-${PV} +" + +src_compile() { + MAKEOPTS+=" -j1" perl-module_src_compile +} diff --git a/dev-perl/Sys-Virt/Sys-Virt-8.3.0.ebuild b/dev-perl/Sys-Virt/Sys-Virt-8.3.0.ebuild new file mode 100644 index 000000000000..cf4e90c07aca --- /dev/null +++ b/dev-perl/Sys-Virt/Sys-Virt-8.3.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Packages which get releases together: +# app-emacs/nxml-libvirt-schemas +# dev-python/libvirt-python +# dev-perl/Sys-Virt +# app-emulation/libvirt +# Please bump them together! + +DIST_AUTHOR=DANBERR +DIST_VERSION=v${PV} +DIST_EXAMPLES=("examples/*") +inherit perl-module + +DESCRIPTION="API for using the libvirt library from Perl" + +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=app-emulation/libvirt-${PV} +" +BDEPEND="${RDEPEND} + virtual/perl-ExtUtils-CBuilder + dev-perl/Module-Build + virtual/pkgconfig + test? ( + virtual/perl-Test-Simple + dev-perl/XML-XPath + virtual/perl-Time-HiRes + )" +DEPEND=" + >=app-emulation/libvirt-${PV} +" + +src_compile() { + MAKEOPTS+=" -j1" perl-module_src_compile +} diff --git a/dev-perl/Sys-Virt/Sys-Virt-8.4.0.ebuild b/dev-perl/Sys-Virt/Sys-Virt-8.4.0.ebuild new file mode 100644 index 000000000000..1c05a0dc8b88 --- /dev/null +++ b/dev-perl/Sys-Virt/Sys-Virt-8.4.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Packages which get releases together: +# app-emacs/nxml-libvirt-schemas +# dev-python/libvirt-python +# dev-perl/Sys-Virt +# app-emulation/libvirt +# Please bump them together! + +DIST_AUTHOR=DANBERR +DIST_VERSION=v${PV} +DIST_EXAMPLES=("examples/*") +inherit perl-module + +DESCRIPTION="API for using the libvirt library from Perl" + +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=app-emulation/libvirt-${PV} +" +BDEPEND="${RDEPEND} + virtual/perl-ExtUtils-CBuilder + dev-perl/Module-Build + virtual/pkgconfig + test? ( + dev-perl/CPAN-Changes + dev-perl/Test-More-UTF8 + dev-perl/Test-Pod-Coverage + dev-perl/XML-XPath + virtual/perl-Test-Simple + virtual/perl-Time-HiRes + )" +DEPEND=" + >=app-emulation/libvirt-${PV} +" + +PATCHES=( + # Can be dropped for 8.5.0 + "${FILESDIR}"/${PN}-8.4.0-lib-Fix-parameter-detection-for-save-restore_domain.patch +) + +src_compile() { + MAKEOPTS+=" -j1" perl-module_src_compile +} diff --git a/dev-perl/Sys-Virt/files/Sys-Virt-8.4.0-lib-Fix-parameter-detection-for-save-restore_domain.patch b/dev-perl/Sys-Virt/files/Sys-Virt-8.4.0-lib-Fix-parameter-detection-for-save-restore_domain.patch new file mode 100644 index 000000000000..ae2597b68c75 --- /dev/null +++ b/dev-perl/Sys-Virt/files/Sys-Virt-8.4.0-lib-Fix-parameter-detection-for-save-restore_domain.patch @@ -0,0 +1,48 @@ +From be960176a8b045d54ac1dfa0cb76cef8ed9cc660 Mon Sep 17 00:00:00 2001 +Message-Id: <be960176a8b045d54ac1dfa0cb76cef8ed9cc660.1655221618.git.mprivozn@redhat.com> +From: Michal Privoznik <mprivozn@redhat.com> +Date: Tue, 14 Jun 2022 10:45:53 +0200 +Subject: [perl][PATCH] lib: Fix parameter detection for save/restore_domain + +Libvirt gained params alternative for +virDomainSave/virDomainRestore APIs. As usual in our bindings, we +don't expose these variants under new methods, rather wire them +under existing ones and then have a small code that decides +whether the old API or params API should be called. In case of +save/restore_domain this is done by checking whether path to +save/restore from was provided. However, the actual check is not +written properly and checks for decoded string rather than perl +argument. Not to mention this is done before the perl argument is +decoded. + +Fixes: 1bdf37223b4870581deb0d5310489223ca34e88a +Signed-off-by: Michal Privoznik <mprivozn@redhat.com> +--- + lib/Sys/Virt.xs | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/Sys/Virt.xs b/lib/Sys/Virt.xs +index de9f907..2fbfd99 100644 +--- a/lib/Sys/Virt.xs ++++ b/lib/Sys/Virt.xs +@@ -2390,7 +2390,7 @@ restore_domain(con, fromsv=&PL_sv_undef, dxmlsv=&PL_sv_undef, params_sv=&PL_sv_u + virTypedParameterPtr params; + int nparams; + PPCODE: +- if (!from && !SvOK(params_sv)) ++ if (!SvOK(fromsv) && !SvOK(params_sv)) + croak("Either $from or $params parameter must be supplied"); + + if (SvOK(dxmlsv)) +@@ -4553,7 +4553,7 @@ PREINIT: + virTypedParameterPtr params; + int nparams; + PPCODE: +- if (!to && !SvOK(params_sv)) ++ if (!SvOK(tosv) && !SvOK(params_sv)) + croak("Either $to or $params parameter must be supplied"); + + if (SvOK(dxmlsv)) +-- +2.35.1 + |