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 2023-03-08 14:52:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
and /work/SRC/openSUSE:Factory/.python-libvirt-python.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libvirt-python"
Wed Mar 8 14:52:13 2023 rev:65 rq:1069759 version:9.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes
2023-01-25 17:55:22.451970336 +0100
+++
/work/SRC/openSUSE:Factory/.python-libvirt-python.new.31432/python-libvirt-python.changes
2023-03-08 14:52:17.630584969 +0100
@@ -1,0 +2,6 @@
+Wed Mar 1 21:03:43 UTC 2023 - James Fehlig <[email protected]>
+
+- Update to 9.1.0
+ - Add all new APIs and constants in libvirt 9.1.0
+
+-------------------------------------------------------------------
Old:
----
libvirt-python-9.0.0.tar.gz
New:
----
libvirt-python-9.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.gVyAR6/_old 2023-03-08 14:52:18.222588193 +0100
+++ /var/tmp/diff_new_pack.gVyAR6/_new 2023-03-08 14:52:18.226588215 +0100
@@ -23,7 +23,7 @@
%define srcname libvirt-python
Name: python-libvirt-python
URL: https://libvirt.org/
-Version: 9.0.0
+Version: 9.1.0
Release: 0
Summary: Library providing a virtualization API
License: LGPL-2.1-or-later
++++++ _service ++++++
--- /var/tmp/diff_new_pack.gVyAR6/_old 2023-03-08 14:52:18.270588454 +0100
+++ /var/tmp/diff_new_pack.gVyAR6/_new 2023-03-08 14:52:18.270588454 +0100
@@ -1,7 +1,7 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">libvirt-python</param>
- <param name="revision">v9.0.0</param>
+ <param name="revision">v9.1.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-9.0.0.tar.gz -> libvirt-python-9.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-9.0.0/libvirt-override.c
new/libvirt-python-9.1.0/libvirt-override.c
--- old/libvirt-python-9.0.0/libvirt-override.c 2023-01-12 13:52:25.000000000
+0100
+++ new/libvirt-python-9.1.0/libvirt-override.c 2023-02-13 15:42:58.000000000
+0100
@@ -347,7 +347,7 @@
virDomainPtr domain;
PyObject *pyobj_domain;
unsigned int nr_stats;
- ssize_t i;
+ size_t i;
virDomainMemoryStatStruct stats[VIR_DOMAIN_MEMORY_STAT_NR];
PyObject *info;
PyObject *key = NULL, *val = NULL;
@@ -456,7 +456,7 @@
goto cleanup;
VIR_PY_TUPLE_SET_GOTO(info, 0, libvirt_constcharPtrWrap(c_retval), error);
- VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap((long)nparams), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap(nparams), error);
cleanup:
VIR_FREE(c_retval);
@@ -1274,14 +1274,14 @@
VIR_PY_LIST_SET_GOTO(pycpuinfo, i, info, cleanup);
- VIR_PY_TUPLE_SET_GOTO(info, 0,
libvirt_intWrap((long)cpuinfo[i].number),
+ VIR_PY_TUPLE_SET_GOTO(info, 0, libvirt_intWrap(cpuinfo[i].number),
cleanup);
- VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap((long)cpuinfo[i].state),
+ VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap(cpuinfo[i].state),
cleanup);
VIR_PY_TUPLE_SET_GOTO(info, 2,
- libvirt_ulonglongWrap((long)cpuinfo[i].cpuTime),
+ libvirt_ulonglongWrap(cpuinfo[i].cpuTime),
cleanup);
- VIR_PY_TUPLE_SET_GOTO(info, 3, libvirt_intWrap((long)cpuinfo[i].cpu),
+ VIR_PY_TUPLE_SET_GOTO(info, 3, libvirt_intWrap(cpuinfo[i].cpu),
cleanup);
}
for (i = 0; i < dominfo.nrVirtCpu; i++) {
@@ -1766,15 +1766,15 @@
if ((info = PyTuple_New(9)) == NULL)
return NULL;
- VIR_PY_TUPLE_SET_GOTO(info, 0, libvirt_intWrap((long)err->code), error);
- VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap((long)err->domain), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 0, libvirt_intWrap(err->code), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap(err->domain), error);
VIR_PY_TUPLE_SET_GOTO(info, 2, libvirt_constcharPtrWrap(err->message),
error);
- VIR_PY_TUPLE_SET_GOTO(info, 3, libvirt_intWrap((long)err->level), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 3, libvirt_intWrap(err->level), error);
VIR_PY_TUPLE_SET_GOTO(info, 4, libvirt_constcharPtrWrap(err->str1), error);
VIR_PY_TUPLE_SET_GOTO(info, 5, libvirt_constcharPtrWrap(err->str2), error);
VIR_PY_TUPLE_SET_GOTO(info, 6, libvirt_constcharPtrWrap(err->str3), error);
- VIR_PY_TUPLE_SET_GOTO(info, 7, libvirt_intWrap((long)err->int1), error);
- VIR_PY_TUPLE_SET_GOTO(info, 8, libvirt_intWrap((long)err->int2), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 7, libvirt_intWrap(err->int1), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 8, libvirt_intWrap(err->int2), error);
return info;
@@ -1806,15 +1806,15 @@
if ((info = PyTuple_New(9)) == NULL)
return NULL;
- VIR_PY_TUPLE_SET_GOTO(info, 0, libvirt_intWrap((long)err->code), error);
- VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap((long)err->domain), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 0, libvirt_intWrap(err->code), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap(err->domain), error);
VIR_PY_TUPLE_SET_GOTO(info, 2, libvirt_constcharPtrWrap(err->message),
error);
- VIR_PY_TUPLE_SET_GOTO(info, 3, libvirt_intWrap((long)err->level), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 3, libvirt_intWrap(err->level), error);
VIR_PY_TUPLE_SET_GOTO(info, 4, libvirt_constcharPtrWrap(err->str1), error);
VIR_PY_TUPLE_SET_GOTO(info, 5, libvirt_constcharPtrWrap(err->str2), error);
VIR_PY_TUPLE_SET_GOTO(info, 6, libvirt_constcharPtrWrap(err->str3), error);
- VIR_PY_TUPLE_SET_GOTO(info, 7, libvirt_intWrap((long)err->int1), error);
- VIR_PY_TUPLE_SET_GOTO(info, 8, libvirt_intWrap((long)err->int2), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 7, libvirt_intWrap(err->int1), error);
+ VIR_PY_TUPLE_SET_GOTO(info, 8, libvirt_intWrap(err->int2), error);
return info;
@@ -1853,15 +1853,15 @@
VIR_PY_TUPLE_SET_GOTO(list, 1, info, cleanup);
- VIR_PY_TUPLE_SET_GOTO(info, 0, libvirt_intWrap((long)err->code),
cleanup);
- VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap((long)err->domain),
cleanup);
+ VIR_PY_TUPLE_SET_GOTO(info, 0, libvirt_intWrap(err->code), cleanup);
+ VIR_PY_TUPLE_SET_GOTO(info, 1, libvirt_intWrap(err->domain), cleanup);
VIR_PY_TUPLE_SET_GOTO(info, 2, libvirt_constcharPtrWrap(err->message),
cleanup);
- VIR_PY_TUPLE_SET_GOTO(info, 3, libvirt_intWrap((long)err->level),
cleanup);
+ VIR_PY_TUPLE_SET_GOTO(info, 3, libvirt_intWrap(err->level), cleanup);
VIR_PY_TUPLE_SET_GOTO(info, 4, libvirt_constcharPtrWrap(err->str1),
cleanup);
VIR_PY_TUPLE_SET_GOTO(info, 5, libvirt_constcharPtrWrap(err->str2),
cleanup);
VIR_PY_TUPLE_SET_GOTO(info, 6, libvirt_constcharPtrWrap(err->str3),
cleanup);
- VIR_PY_TUPLE_SET_GOTO(info, 7, libvirt_intWrap((long)err->int1),
cleanup);
- VIR_PY_TUPLE_SET_GOTO(info, 8, libvirt_intWrap((long)err->int2),
cleanup);
+ VIR_PY_TUPLE_SET_GOTO(info, 7, libvirt_intWrap(err->int1), cleanup);
+ VIR_PY_TUPLE_SET_GOTO(info, 8, libvirt_intWrap(err->int2), cleanup);
/* TODO pass conn and dom if available */
result = PyObject_Call(libvirt_virPythonErrorFuncHandler, list, NULL);
@@ -1921,7 +1921,7 @@
PyObject *pycb;
PyObject *pyret = NULL;
int ret = -1;
- ssize_t i;
+ size_t i;
LIBVIRT_ENSURE_THREAD_STATE;
@@ -1944,7 +1944,7 @@
VIR_PY_TUPLE_SET_GOTO(pycred, i, pycreditem, cleanup);
VIR_PY_LIST_SET_GOTO(pycreditem, 0,
- libvirt_intWrap((long)cred[i].type), cleanup);
+ libvirt_intWrap(cred[i].type), cleanup);
VIR_PY_LIST_SET_GOTO(pycreditem, 1,
libvirt_constcharPtrWrap(cred[i].prompt),
cleanup);
@@ -2012,7 +2012,7 @@
PyObject *args)
{
PyObject *py_retval;
- virConnectPtr c_retval;
+ virConnectPtr c_retval = NULL;
char * name;
unsigned int flags;
PyObject *pyauth;
@@ -2030,13 +2030,14 @@
auth.ncredtype = PyList_Size(pycredtype);
if (auth.ncredtype) {
- ssize_t i;
+ size_t i;
if (VIR_ALLOC_N(auth.credtype, auth.ncredtype) < 0)
return PyErr_NoMemory();
for (i = 0; i < auth.ncredtype; i++) {
PyObject *val;
val = PyList_GetItem(pycredtype, i);
- auth.credtype[i] = (int)PyLong_AsLong(val);
+ if (libvirt_intUnwrap(val, &auth.credtype[i]) < 0)
+ goto cleanup;
}
}
if (pycredcb && pycredcb != Py_None)
@@ -2047,6 +2048,7 @@
c_retval = virConnectOpenAuth(name, &auth, flags);
LIBVIRT_END_ALLOW_THREADS;
+ cleanup:
VIR_FREE(auth.credtype);
py_retval = libvirt_virConnectPtrWrap((virConnectPtr) c_retval);
return py_retval;
@@ -2687,11 +2689,11 @@
if ((py_retval = PyList_New(5)) == NULL)
return NULL;
- VIR_PY_LIST_SET_GOTO(py_retval, 0, libvirt_intWrap((int) info.state),
error);
+ VIR_PY_LIST_SET_GOTO(py_retval, 0, libvirt_intWrap(info.state), error);
VIR_PY_LIST_SET_GOTO(py_retval, 1, libvirt_ulongWrap(info.maxMem), error);
VIR_PY_LIST_SET_GOTO(py_retval, 2, libvirt_ulongWrap(info.memory), error);
VIR_PY_LIST_SET_GOTO(py_retval, 3,
- libvirt_intWrap((int) info.nrVirtCpu), error);
+ libvirt_intWrap(info.nrVirtCpu), error);
VIR_PY_LIST_SET_GOTO(py_retval, 4,
libvirt_ulonglongWrap(info.cpuTime), error);
@@ -2846,13 +2848,13 @@
VIR_PY_LIST_SET_GOTO(py_retval, 0,
libvirt_constcharPtrWrap(&info.model[0]), error);
VIR_PY_LIST_SET_GOTO(py_retval, 1,
- libvirt_longWrap((long) info.memory >> 10), error);
- VIR_PY_LIST_SET_GOTO(py_retval, 2, libvirt_intWrap((int) info.cpus),
error);
- VIR_PY_LIST_SET_GOTO(py_retval, 3, libvirt_intWrap((int) info.mhz), error);
- VIR_PY_LIST_SET_GOTO(py_retval, 4, libvirt_intWrap((int) info.nodes),
error);
- VIR_PY_LIST_SET_GOTO(py_retval, 5, libvirt_intWrap((int) info.sockets),
error);
- VIR_PY_LIST_SET_GOTO(py_retval, 6, libvirt_intWrap((int) info.cores),
error);
- VIR_PY_LIST_SET_GOTO(py_retval, 7, libvirt_intWrap((int) info.threads),
error);
+ libvirt_ulongWrap(info.memory >> 10), error);
+ VIR_PY_LIST_SET_GOTO(py_retval, 2, libvirt_intWrap(info.cpus), error);
+ VIR_PY_LIST_SET_GOTO(py_retval, 3, libvirt_intWrap(info.mhz), error);
+ VIR_PY_LIST_SET_GOTO(py_retval, 4, libvirt_intWrap(info.nodes), error);
+ VIR_PY_LIST_SET_GOTO(py_retval, 5, libvirt_intWrap(info.sockets), error);
+ VIR_PY_LIST_SET_GOTO(py_retval, 6, libvirt_intWrap(info.cores), error);
+ VIR_PY_LIST_SET_GOTO(py_retval, 7, libvirt_intWrap(info.threads), error);
return py_retval;
@@ -3871,7 +3873,7 @@
return NULL;
VIR_PY_LIST_SET_GOTO(py_retval, 0,
- libvirt_intWrap((int) info.state), error);
+ libvirt_intWrap(info.state), error);
VIR_PY_LIST_SET_GOTO(py_retval, 1,
libvirt_ulonglongWrap(info.capacity), error);
VIR_PY_LIST_SET_GOTO(py_retval, 2,
@@ -3912,7 +3914,7 @@
return NULL;
VIR_PY_LIST_SET_GOTO(py_retval, 0,
- libvirt_intWrap((int) info.type), error);
+ libvirt_intWrap(info.type), error);
VIR_PY_LIST_SET_GOTO(py_retval, 1,
libvirt_ulonglongWrap(info.capacity), error);
VIR_PY_LIST_SET_GOTO(py_retval, 2,
@@ -3952,7 +3954,7 @@
return NULL;
VIR_PY_LIST_SET_GOTO(py_retval, 0,
- libvirt_intWrap((int) info.type), error);
+ libvirt_intWrap(info.type), error);
VIR_PY_LIST_SET_GOTO(py_retval, 1,
libvirt_ulonglongWrap(info.capacity), error);
VIR_PY_LIST_SET_GOTO(py_retval, 2,
@@ -4922,7 +4924,7 @@
return NULL;
VIR_PY_LIST_SET_GOTO(py_retval, 0,
- libvirt_intWrap((int) info.type), error);
+ libvirt_intWrap(info.type), error);
VIR_PY_LIST_SET_GOTO(py_retval, 1,
libvirt_ulonglongWrap(info.timeElapsed), error);
VIR_PY_LIST_SET_GOTO(py_retval, 2,
@@ -5238,7 +5240,7 @@
unsigned int source;
unsigned int flags;
int ifaces_count = 0;
- ssize_t i, j;
+ ssize_t i;
if (!PyArg_ParseTuple(args, (char *) "OII:virDomainInterfaceAddresses",
&pyobj_domain, &source, &flags))
@@ -5260,6 +5262,7 @@
virDomainInterfacePtr iface = ifaces[i];
PyObject *py_addrs = NULL;
PyObject *py_iface = NULL;
+ size_t j;
if (!(py_iface = PyDict_New()))
goto error;
@@ -7924,7 +7927,7 @@
LIBVIRT_END_ALLOW_THREADS;
buf[ret > -1 ? ret : 0] = '\0';
- DEBUG("StreamRecv ret=%d strlen=%d\n", ret, (int) strlen(buf));
+ DEBUG("StreamRecv ret=%d strlen=%zu\n", ret, strlen(buf));
if (ret == -2) {
VIR_FREE(buf);
@@ -7979,7 +7982,7 @@
int ret;
ssize_t i;
unsigned int keycodes[VIR_DOMAIN_SEND_KEY_MAX_KEYS];
- unsigned int nkeycodes;
+ int nkeycodes;
if (!PyArg_ParseTuple(args, (char *)"OiiOII:virDomainSendKey",
&pyobj_domain, &codeset, &holdtime, &pyobj_list,
@@ -8502,7 +8505,7 @@
unsigned int flags;
unsigned int nfiles;
int *files = NULL;
- ssize_t i;
+ size_t i;
if (!PyArg_ParseTuple(args, (char *)"OOI:virDomainCreateWithFiles",
&pyobj_domain, &pyobj_files, &flags))
@@ -8530,7 +8533,7 @@
c_retval = virDomainCreateWithFiles(domain, nfiles, files, flags);
LIBVIRT_END_ALLOW_THREADS;
- py_retval = libvirt_intWrap((int) c_retval);
+ py_retval = libvirt_intWrap(c_retval);
cleanup:
VIR_FREE(files);
@@ -8551,7 +8554,7 @@
unsigned int flags;
unsigned int nfiles;
int *files = NULL;
- ssize_t i;
+ size_t i;
if (!PyArg_ParseTuple(args, (char *)"OzOI:virDomainCreateXMLWithFiles",
&pyobj_conn, &xmlDesc, &pyobj_files, &flags))
@@ -8601,7 +8604,8 @@
unsigned int flags;
unsigned int nmountpoints = 0;
char **mountpoints = NULL;
- ssize_t i = 0, j;
+ size_t i = 0;
+ size_t j = 0;
if (!PyArg_ParseTuple(args, (char *)"OOI:virDomainFSFreeze",
&pyobj_domain, &pyobj_list, &flags))
@@ -8648,7 +8652,8 @@
unsigned int flags;
unsigned int nmountpoints = 0;
char **mountpoints = NULL;
- ssize_t i = 0, j;
+ size_t i = 0;
+ size_t j = 0;
if (!PyArg_ParseTuple(args, (char *)"OOI:virDomainFSThaw",
&pyobj_domain, &pyobj_list, &flags))
@@ -10069,7 +10074,7 @@
LIBVIRT_END_ALLOW_THREADS;
buf[ret > -1 ? ret : 0] = '\0';
- DEBUG("StreamRecvFlags ret=%d strlen=%d\n", ret, (int) strlen(buf));
+ DEBUG("StreamRecvFlags ret=%d strlen=%zu\n", ret, strlen(buf));
if (ret == -2 || ret == -3)
return libvirt_intWrap(ret);
@@ -10804,7 +10809,7 @@
unsigned int flags;
unsigned int nfiles;
int *files = NULL;
- ssize_t i;
+ size_t i;
if (!PyArg_ParseTuple(args, (char *)"OsOI:virDomainFDAssociate",
&pyobj_domain, &name, &pyobj_files, &flags))
@@ -10832,7 +10837,7 @@
c_retval = virDomainFDAssociate(domain, name, nfiles, files, flags);
LIBVIRT_END_ALLOW_THREADS;
- py_retval = libvirt_intWrap((int) c_retval);
+ py_retval = libvirt_intWrap(c_retval);
cleanup:
VIR_FREE(files);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-9.0.0/libvirt-qemu-override.c
new/libvirt-python-9.1.0/libvirt-qemu-override.c
--- old/libvirt-python-9.0.0/libvirt-qemu-override.c 2023-01-12
13:52:25.000000000 +0100
+++ new/libvirt-python-9.1.0/libvirt-qemu-override.c 2023-02-13
15:42:58.000000000 +0100
@@ -343,7 +343,7 @@
unsigned int noutfiles = 0;
int *outfiles = NULL;
char *result = NULL;
- ssize_t i;
+ size_t i;
PyObject *py_outfiles = NULL;
PyObject *py_retval = NULL;
int c_retval;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-9.0.0/setup.py
new/libvirt-python-9.1.0/setup.py
--- old/libvirt-python-9.0.0/setup.py 2023-01-12 13:52:25.000000000 +0100
+++ new/libvirt-python-9.1.0/setup.py 2023-02-13 15:42:58.000000000 +0100
@@ -335,7 +335,7 @@
_c_modules, _py_modules = get_module_lists()
setup(name = 'libvirt-python',
- version = '9.0.0',
+ version = '9.1.0',
url = 'http://www.libvirt.org',
maintainer = 'Libvirt Maintainers',
maintainer_email = '[email protected]',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-9.0.0/typewrappers.c
new/libvirt-python-9.1.0/typewrappers.c
--- old/libvirt-python-9.0.0/typewrappers.c 2023-01-12 13:52:25.000000000
+0100
+++ new/libvirt-python-9.1.0/typewrappers.c 2023-02-13 15:42:58.000000000
+0100
@@ -26,13 +26,13 @@
PyObject *
libvirt_intWrap(int val)
{
- return PyLong_FromLong((long) val);
+ return PyLong_FromLong(val);
}
PyObject *
libvirt_uintWrap(unsigned int val)
{
- return PyLong_FromLong((long) val);
+ return PyLong_FromUnsignedLong(val);
}
PyObject *
@@ -132,18 +132,18 @@
libvirt_uintUnwrap(PyObject *obj,
unsigned int *val)
{
- long long_val;
+ unsigned long long_val;
if (!obj) {
PyErr_SetString(PyExc_TypeError, "unexpected type");
return -1;
}
- long_val = PyLong_AsLong(obj);
- if ((long_val == -1) && PyErr_Occurred())
+ long_val = PyLong_AsUnsignedLong(obj);
+ if ((long_val == (unsigned long)-1) && PyErr_Occurred())
return -1;
- if (long_val >= 0 && long_val <= UINT_MAX) {
+ if (long_val <= UINT_MAX) {
*val = long_val;
} else {
PyErr_SetString(PyExc_OverflowError,