Hello community, here is the log from the commit of package perl-Sys-Virt for openSUSE:Factory checked in at 2019-10-23 15:50:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Sys-Virt (Old) and /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Sys-Virt" Wed Oct 23 15:50:08 2019 rev:73 rq:737236 version:5.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Sys-Virt/perl-Sys-Virt.changes 2019-09-13 14:57:26.629275012 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new.2352/perl-Sys-Virt.changes 2019-10-23 15:50:41.206683997 +0200 @@ -1,0 +2,6 @@ +Thu Oct 10 15:45:33 UTC 2019 - James Fehlig <[email protected]> + +- Update to 5.8.0 + - Add all new APIs and constants in libvirt 5.8.0 + +------------------------------------------------------------------- Old: ---- Sys-Virt-v5.7.0.tar.gz New: ---- Sys-Virt-v5.8.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Sys-Virt.spec ++++++ --- /var/tmp/diff_new_pack.f7CHnU/_old 2019-10-23 15:50:41.874684720 +0200 +++ /var/tmp/diff_new_pack.f7CHnU/_new 2019-10-23 15:50:41.874684720 +0200 @@ -17,7 +17,7 @@ Name: perl-Sys-Virt -Version: 5.7.0 +Version: 5.8.0 Release: 0 %define cpan_name Sys-Virt Summary: Represent and manage a libvirt hypervisor connection ++++++ Sys-Virt-v5.7.0.tar.gz -> Sys-Virt-v5.8.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.7.0/Build.PL new/Sys-Virt-v5.8.0/Build.PL --- old/Sys-Virt-v5.7.0/Build.PL 2019-09-04 11:18:50.000000000 +0200 +++ new/Sys-Virt-v5.8.0/Build.PL 2019-10-07 19:00:42.000000000 +0200 @@ -17,7 +17,7 @@ use strict; use warnings; -my $libvirtver = "5.7.0"; +my $libvirtver = "5.8.0"; my $stat = system "pkg-config --atleast-version=$libvirtver libvirt"; die "cannot run pkg-config to check libvirt version" if $stat == -1; die "libvirt >= $libvirtver is required\n" unless $stat == 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.7.0/Changes new/Sys-Virt-v5.8.0/Changes --- old/Sys-Virt-v5.7.0/Changes 2019-09-04 11:18:50.000000000 +0200 +++ new/Sys-Virt-v5.8.0/Changes 2019-10-07 19:00:42.000000000 +0200 @@ -1,5 +1,9 @@ Revision history for perl module Sys::Virt +5.8.0 2019-10-07 + + - Add virConnectSetIdentity API and constants + 5.7.0 2019-09-04 - Add virDomainGetGuestInfo API and constants diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.7.0/META.json new/Sys-Virt-v5.8.0/META.json --- old/Sys-Virt-v5.7.0/META.json 2019-09-04 11:18:50.000000000 +0200 +++ new/Sys-Virt-v5.8.0/META.json 2019-10-07 19:00:42.000000000 +0200 @@ -41,7 +41,7 @@ "provides" : { "Sys::Virt" : { "file" : "lib/Sys/Virt.pm", - "version" : "v5.7.0" + "version" : "v5.8.0" }, "Sys::Virt::Domain" : { "file" : "lib/Sys/Virt/Domain.pm" @@ -100,6 +100,6 @@ }, "x_MailingList" : "http://www.redhat.com/mailman/listinfo/libvir-list" }, - "version" : "v5.7.0", + "version" : "v5.8.0", "x_serialization_backend" : "JSON::PP version 4.02" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.7.0/META.yml new/Sys-Virt-v5.8.0/META.yml --- old/Sys-Virt-v5.7.0/META.yml 2019-09-04 11:18:50.000000000 +0200 +++ new/Sys-Virt-v5.8.0/META.yml 2019-10-07 19:00:42.000000000 +0200 @@ -24,7 +24,7 @@ provides: Sys::Virt: file: lib/Sys/Virt.pm - version: v5.7.0 + version: v5.8.0 Sys::Virt::Domain: file: lib/Sys/Virt/Domain.pm Sys::Virt::DomainCheckpoint: @@ -62,5 +62,5 @@ homepage: http://libvirt.org/ license: http://www.gnu.org/licenses/gpl.html repository: https://libvirt.org/git/?p=libvirt-perl.git;a=summary -version: v5.7.0 +version: v5.8.0 x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.7.0/README new/Sys-Virt-v5.8.0/README --- old/Sys-Virt-v5.7.0/README 2019-09-04 11:18:50.000000000 +0200 +++ new/Sys-Virt-v5.8.0/README 2019-10-07 19:00:42.000000000 +0200 @@ -8,6 +8,6 @@ Module::Build buld system. For installation instructions, consult the INSTALL file. -The current minimum required version of libvirt is 5.7.0 +The current minimum required version of libvirt is 5.8.0 -- End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.7.0/lib/Sys/Virt.pm new/Sys-Virt-v5.8.0/lib/Sys/Virt.pm --- old/Sys-Virt-v5.7.0/lib/Sys/Virt.pm 2019-09-04 11:18:50.000000000 +0200 +++ new/Sys-Virt-v5.8.0/lib/Sys/Virt.pm 2019-10-07 19:00:42.000000000 +0200 @@ -81,7 +81,7 @@ use Sys::Virt::DomainCheckpoint; use Sys::Virt::Stream; -our $VERSION = '5.7.0'; +our $VERSION = '5.8.0'; require XSLoader; XSLoader::load('Sys::Virt', $VERSION); @@ -209,6 +209,15 @@ return $self; } +=item $conn->set_identity($identity, $flags=0) + +Change the identity that is used for access control over the +connection. Normally the remote daemon will use the identity +associated with the UNIX domain socket that the app opens. +Only a privileged client is usually able to override this. +The C<$identity> should be a hash reference whose keys are +one of the IDENTITY constants. The C<$flags> parameter is +currently unused, and defaults to 0 if omitted. =item my $st = $conn->new_stream($flags) @@ -2019,6 +2028,50 @@ =back +=head2 IDENTITY CONSTANTS + +The following constants are useful to change the connection identity + +=over 4 + +=item Sys::Virt::IDENTITY_USER_NAME + +The process user name + +=item Sys::Virt::IDENTITY_UNIX_USER_ID + +The process UNIX user ID + +=item Sys::Virt::IDENTITY_GROUP_NAME + +The process group name + +=item Sys::Virt::IDENTITY_UNIX_GROUP_ID + +The process UNIX group ID + +=item Sys::Virt::IDENTITY_PROCESS_ID + +The process ID. + +=item Sys::Virt::IDENTITY_PROCESS_TIME + +The process start time. + +=item Sys::Virt::IDENTITY_SASL_USER_NAME + +The SASL authenticated user name + +=item Sys::Virt::IDENTITY_X509_DISTINGUISHED_NAME + +The X509 certificate distinguished name for the TLS connection + +=item Sys::Virt::IDENTITY_SELINUX_CONTEXT + +The SELinux process context + +=back + =head2 CPU COMPARISON CONSTANTS =over 4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.7.0/lib/Sys/Virt.xs new/Sys-Virt-v5.8.0/lib/Sys/Virt.xs --- old/Sys-Virt-v5.7.0/lib/Sys/Virt.xs 2019-09-04 11:18:50.000000000 +0200 +++ new/Sys-Virt-v5.8.0/lib/Sys/Virt.xs 2019-10-07 19:00:42.000000000 +0200 @@ -2701,6 +2701,64 @@ void +set_identity(conn, newident, flags=0) + virConnectPtr conn; + HV *newident; + unsigned int flags; + PREINIT: + virTypedParameterPtr ident; + int nident; + PPCODE: + nident = 9; + Newx(ident, nident, virTypedParameter); + + strncpy(ident[0].field, VIR_CONNECT_IDENTITY_USER_NAME, + VIR_TYPED_PARAM_FIELD_LENGTH); + ident[0].type = VIR_TYPED_PARAM_STRING; + + strncpy(ident[1].field, VIR_CONNECT_IDENTITY_UNIX_USER_ID, + VIR_TYPED_PARAM_FIELD_LENGTH); + ident[1].type = VIR_TYPED_PARAM_ULLONG; + + strncpy(ident[2].field, VIR_CONNECT_IDENTITY_GROUP_NAME, + VIR_TYPED_PARAM_FIELD_LENGTH); + ident[2].type = VIR_TYPED_PARAM_STRING; + + strncpy(ident[3].field, VIR_CONNECT_IDENTITY_UNIX_GROUP_ID, + VIR_TYPED_PARAM_FIELD_LENGTH); + ident[3].type = VIR_TYPED_PARAM_ULLONG; + + strncpy(ident[4].field, VIR_CONNECT_IDENTITY_PROCESS_ID, + VIR_TYPED_PARAM_FIELD_LENGTH); + ident[4].type = VIR_TYPED_PARAM_LLONG; + + strncpy(ident[5].field, VIR_CONNECT_IDENTITY_PROCESS_TIME, + VIR_TYPED_PARAM_FIELD_LENGTH); + ident[5].type = VIR_TYPED_PARAM_ULLONG; + + strncpy(ident[6].field, VIR_CONNECT_IDENTITY_SASL_USER_NAME, + VIR_TYPED_PARAM_FIELD_LENGTH); + ident[6].type = VIR_TYPED_PARAM_INT; + + strncpy(ident[7].field, VIR_CONNECT_IDENTITY_X509_DISTINGUISHED_NAME, + VIR_TYPED_PARAM_FIELD_LENGTH); + ident[7].type = VIR_TYPED_PARAM_STRING; + + strncpy(ident[8].field, VIR_CONNECT_IDENTITY_SELINUX_CONTEXT, + VIR_TYPED_PARAM_FIELD_LENGTH); + ident[8].type = VIR_TYPED_PARAM_STRING; + + nident = vir_typed_param_from_hv(newident, ident, nident); + + if (virConnectSetIdentity(conn, ident, nident, flags) < 0) { + vir_typed_param_safe_free(ident, nident); + _croak_error(); + } + vir_typed_param_safe_free(ident, nident); + + + +void node_suspend_for_duration(conn, target, duration, flags=0) virConnectPtr conn; unsigned int target; @@ -8955,6 +9013,15 @@ REGISTER_CONSTANT(VIR_CRED_REALM, CRED_REALM); REGISTER_CONSTANT(VIR_CRED_EXTERNAL, CRED_EXTERNAL); + REGISTER_CONSTANT_STR(VIR_CONNECT_IDENTITY_USER_NAME, IDENTITY_USER_NAME); + REGISTER_CONSTANT_STR(VIR_CONNECT_IDENTITY_UNIX_USER_ID, IDENTITY_UNIX_USER_ID); + REGISTER_CONSTANT_STR(VIR_CONNECT_IDENTITY_GROUP_NAME, IDENTITY_GROUP_NAME); + REGISTER_CONSTANT_STR(VIR_CONNECT_IDENTITY_UNIX_GROUP_ID, IDENTITY_UNIX_GROUP_ID); + REGISTER_CONSTANT_STR(VIR_CONNECT_IDENTITY_PROCESS_ID, IDENTITY_PROCESS_ID); + REGISTER_CONSTANT_STR(VIR_CONNECT_IDENTITY_PROCESS_TIME, IDENTITY_PROCESS_TIME); + REGISTER_CONSTANT_STR(VIR_CONNECT_IDENTITY_SASL_USER_NAME, IDENTITY_SASL_USER_NAME); + REGISTER_CONSTANT_STR(VIR_CONNECT_IDENTITY_X509_DISTINGUISHED_NAME, IDENTITY_X509_DISTINGUISHED_NAME); + REGISTER_CONSTANT_STR(VIR_CONNECT_IDENTITY_SELINUX_CONTEXT, IDENTITY_SELINUX_CONTEXT); /* Don't bother with VIR_CPU_COMPARE_ERROR since we die in that case */ REGISTER_CONSTANT(VIR_CPU_COMPARE_INCOMPATIBLE, CPU_COMPARE_INCOMPATIBLE); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.7.0/perl-Sys-Virt.spec new/Sys-Virt-v5.8.0/perl-Sys-Virt.spec --- old/Sys-Virt-v5.7.0/perl-Sys-Virt.spec 2019-09-04 11:18:50.000000000 +0200 +++ new/Sys-Virt-v5.8.0/perl-Sys-Virt.spec 2019-10-07 19:00:42.000000000 +0200 @@ -1,7 +1,7 @@ # Automatically generated by perl-Sys-Virt.spec.PL Name: perl-Sys-Virt -Version: 5.7.0 +Version: 5.8.0 Release: 1%{?dist} Summary: Represent and manage a libvirt hypervisor connection License: GPLv2+ or Artistic ++++++ suse-set-migration-constraints.patch ++++++ --- /var/tmp/diff_new_pack.f7CHnU/_old 2019-10-23 15:50:42.046684905 +0200 +++ /var/tmp/diff_new_pack.f7CHnU/_new 2019-10-23 15:50:42.050684909 +0200 @@ -2,10 +2,10 @@ References: fate#316614, bsc#859868 -Index: Sys-Virt-v5.7.0/lib/Sys/Virt/Domain.pm +Index: Sys-Virt-v5.8.0/lib/Sys/Virt/Domain.pm =================================================================== ---- Sys-Virt-v5.7.0.orig/lib/Sys/Virt/Domain.pm -+++ Sys-Virt-v5.7.0/lib/Sys/Virt/Domain.pm +--- Sys-Virt-v5.8.0.orig/lib/Sys/Virt/Domain.pm ++++ Sys-Virt-v5.8.0/lib/Sys/Virt/Domain.pm @@ -1141,6 +1141,22 @@ progress is not made The number of connections used during parallel migration. @@ -29,11 +29,11 @@ =back =item $ddom = $dom->migrate(destcon, flags=0, dname=undef, uri=undef, bandwidth=0) -Index: Sys-Virt-v5.7.0/lib/Sys/Virt.xs +Index: Sys-Virt-v5.8.0/lib/Sys/Virt.xs =================================================================== ---- Sys-Virt-v5.7.0.orig/lib/Sys/Virt.xs -+++ Sys-Virt-v5.7.0/lib/Sys/Virt.xs -@@ -5355,7 +5355,7 @@ _migrate(dom, destcon, newparams, flags= +--- Sys-Virt-v5.8.0.orig/lib/Sys/Virt.xs ++++ Sys-Virt-v5.8.0/lib/Sys/Virt.xs +@@ -5413,7 +5413,7 @@ _migrate(dom, destcon, newparams, flags= virTypedParameterPtr params; int nparams; CODE: @@ -42,7 +42,7 @@ Newx(params, nparams, virTypedParameter); strncpy(params[0].field, VIR_MIGRATE_PARAM_URI, -@@ -5422,6 +5422,22 @@ _migrate(dom, destcon, newparams, flags= +@@ -5480,6 +5480,22 @@ _migrate(dom, destcon, newparams, flags= VIR_TYPED_PARAM_FIELD_LENGTH); params[15].type = VIR_TYPED_PARAM_ULLONG; @@ -65,7 +65,7 @@ nparams = vir_typed_param_from_hv(newparams, params, nparams); vir_typed_param_add_string_list_from_hv(newparams, ¶ms, &nparams, -@@ -5450,7 +5466,7 @@ _migrate_to_uri(dom, desturi, newparams, +@@ -5508,7 +5524,7 @@ _migrate_to_uri(dom, desturi, newparams, virTypedParameterPtr params; int nparams; PPCODE: @@ -74,7 +74,7 @@ Newx(params, nparams, virTypedParameter); strncpy(params[0].field, VIR_MIGRATE_PARAM_URI, -@@ -5513,10 +5529,26 @@ _migrate_to_uri(dom, desturi, newparams, +@@ -5571,10 +5587,26 @@ _migrate_to_uri(dom, desturi, newparams, VIR_TYPED_PARAM_FIELD_LENGTH); params[14].type = VIR_TYPED_PARAM_INT; @@ -102,7 +102,7 @@ nparams = vir_typed_param_from_hv(newparams, params, nparams); vir_typed_param_add_string_list_from_hv(newparams, ¶ms, &nparams, -@@ -9172,6 +9204,10 @@ BOOT: +@@ -9239,6 +9271,10 @@ BOOT: REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS, MIGRATE_PARAM_PARALLEL_CONNECTIONS); REGISTER_CONSTANT(VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY, MIGRATE_MAX_SPEED_POSTCOPY);
