Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-libvirt-python for 
openSUSE:Factory checked in at 2022-01-21 01:25:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
 and      /work/SRC/openSUSE:Factory/.python-libvirt-python.new.1938 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-libvirt-python"

Fri Jan 21 01:25:03 2022 rev:53 rq:947280 version:8.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes  
    2021-12-06 23:59:04.768628639 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-libvirt-python.new.1938/python-libvirt-python.changes
    2022-01-21 01:25:11.658680093 +0100
@@ -1,0 +2,7 @@
+Tue Jan 18 03:16:19 UTC 2022 - James Fehlig <[email protected]>
+
+- Update to 8.0.0
+  - Add all new APIs and constants in libvirt 8.0.0
+  - jsc#SLE-11435, jsc#SLE-18354
+
+-------------------------------------------------------------------

Old:
----
  libvirt-python-7.10.0.tar.gz

New:
----
  libvirt-python-8.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.zNw57Z/_old  2022-01-21 01:25:12.058677351 +0100
+++ /var/tmp/diff_new_pack.zNw57Z/_new  2022-01-21 01:25:12.066677297 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-libvirt-python
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,7 +23,7 @@
 %define srcname libvirt-python
 Name:           python-libvirt-python
 URL:            https://libvirt.org/
-Version:        7.10.0
+Version:        8.0.0
 Release:        0
 Summary:        Library providing a virtualization API
 License:        LGPL-2.1-or-later

++++++ _service ++++++
--- /var/tmp/diff_new_pack.zNw57Z/_old  2022-01-21 01:25:12.094677104 +0100
+++ /var/tmp/diff_new_pack.zNw57Z/_new  2022-01-21 01:25:12.098677077 +0100
@@ -1,7 +1,7 @@
 <services>
   <service name="tar_scm" mode="disabled">
     <param name="filename">libvirt-python</param>
-    <param name="revision">v7.10.0</param>
+    <param name="revision">v8.0.0</param>
     <param name="scm">git</param>
     <param name="submodules">disable</param>
     <param name="url">https://gitlab.com/libvirt/libvirt-python.git</param>

++++++ libvirt-python-7.10.0.tar.gz -> libvirt-python-8.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-7.10.0/generator.py 
new/libvirt-python-8.0.0/generator.py
--- old/libvirt-python-7.10.0/generator.py      2021-12-01 10:27:50.000000000 
+0100
+++ new/libvirt-python-8.0.0/generator.py       2022-01-05 19:17:02.000000000 
+0100
@@ -473,6 +473,7 @@
     'virDomainGetGuestVcpus',
     'virConnectBaselineHypervisorCPU',
     'virDomainGetLaunchSecurityInfo',
+    'virDomainSetLaunchSecurityState',
     'virNodeGetSEVInfo',
     'virNetworkPortGetParameters',
     'virNetworkPortSetParameters',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-7.10.0/libvirt-override-api.xml 
new/libvirt-python-8.0.0/libvirt-override-api.xml
--- old/libvirt-python-7.10.0/libvirt-override-api.xml  2021-12-01 
10:27:50.000000000 +0100
+++ new/libvirt-python-8.0.0/libvirt-override-api.xml   2022-01-05 
19:17:02.000000000 +0100
@@ -845,5 +845,12 @@
       <arg name='domain' type='virDomainPtr' info='a domain object'/>
       <arg name='flags' type='unsigned int' info='optional fine-tuning flags'/>
     </function>
+    <function name='virDomainSetLaunchSecurityState' file='python'>
+      <info>Set a launch security secret in the guest's memory.</info>
+      <return type='int' info='0 in case of success, -1 in case of failure.'/>
+      <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
+      <arg name='params' type='virTypedParameterPtr' info='pointer to launch 
security state objects'/>
+      <arg name='flags' type='unsigned int' info='currently used, set to 0.'/>
+    </function>
   </symbols>
 </api>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-7.10.0/libvirt-override.c 
new/libvirt-python-8.0.0/libvirt-override.c
--- old/libvirt-python-7.10.0/libvirt-override.c        2021-12-01 
10:27:50.000000000 +0100
+++ new/libvirt-python-8.0.0/libvirt-override.c 2022-01-05 19:17:02.000000000 
+0100
@@ -10647,6 +10647,54 @@
 }
 #endif /* LIBVIR_CHECK_VERSION(7, 1, 0) */
 
+#if LIBVIR_CHECK_VERSION(8, 0, 0)
+
+static virPyTypedParamsHint virPyDomainSetLaunchSecurityStateParams[] = {
+    { VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET, VIR_TYPED_PARAM_STRING },
+    { VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_HEADER, VIR_TYPED_PARAM_STRING },
+    { VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_SET_ADDRESS, 
VIR_TYPED_PARAM_ULLONG },
+};
+
+static PyObject *
+libvirt_virDomainSetLaunchSecurityState(PyObject *self ATTRIBUTE_UNUSED,
+                                        PyObject *args)
+{
+    PyObject *pyobj_dom = NULL;
+    PyObject *pyobj_dict = NULL;
+
+    virDomainPtr dom;
+    virTypedParameterPtr params = NULL;
+    int nparams = 0;
+    unsigned int flags;
+    int c_retval;
+
+    if (!PyArg_ParseTuple(args, (char *)"OOI:virDomainSetLaunchSecurityState",
+                          &pyobj_dom, &pyobj_dict, &flags))
+        return NULL;
+
+    if (PyDict_Check(pyobj_dict)) {
+        if (virPyDictToTypedParams(pyobj_dict, &params, &nparams,
+                                   virPyDomainSetLaunchSecurityStateParams,
+                                   
VIR_N_ELEMENTS(virPyDomainSetLaunchSecurityStateParams)) < 0) {
+            return NULL;
+        }
+    } else {
+        PyErr_Format(PyExc_TypeError, "Launch security state params must be "
+                     "a dictionary");
+        return NULL;
+    }
+
+    dom = (virDomainPtr) PyvirDomain_Get(pyobj_dom);
+
+    LIBVIRT_BEGIN_ALLOW_THREADS;
+    c_retval = virDomainSetLaunchSecurityState(dom, params, nparams, flags);
+    LIBVIRT_END_ALLOW_THREADS;
+
+    virTypedParamsFree(params, nparams);
+
+    return libvirt_intWrap(c_retval);
+}
+#endif /* LIBVIR_CHECK_VERSION(8, 0, 0) */
 
 /************************************************************************
  *                                                                     *
@@ -10922,6 +10970,9 @@
 #if LIBVIR_CHECK_VERSION(7, 8, 0)
     {(char *) "virNodeDeviceGetAutostart", libvirt_virNodeDeviceGetAutostart, 
METH_VARARGS, NULL},
 #endif /* LIBVIR_CHECK_VERSION(7, 8, 0) */
+#if LIBVIR_CHECK_VERSION(8, 0, 0)
+    {(char *) "virDomainSetLaunchSecurityState", 
libvirt_virDomainSetLaunchSecurityState, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(8, 0, 0) */
     {NULL, NULL, 0, NULL}
 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-7.10.0/setup.py 
new/libvirt-python-8.0.0/setup.py
--- old/libvirt-python-7.10.0/setup.py  2021-12-01 10:27:50.000000000 +0100
+++ new/libvirt-python-8.0.0/setup.py   2022-01-05 19:17:02.000000000 +0100
@@ -335,7 +335,7 @@
 _c_modules, _py_modules = get_module_lists()
 
 setup(name = 'libvirt-python',
-      version = '7.10.0',
+      version = '8.0.0',
       url = 'http://www.libvirt.org',
       maintainer = 'Libvirt Maintainers',
       maintainer_email = '[email protected]',

Reply via email to