Hello community, here is the log from the commit of package libvirt-python for openSUSE:Factory checked in at 2015-02-05 11:00:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libvirt-python (Old) and /work/SRC/openSUSE:Factory/.libvirt-python.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libvirt-python" Changes: -------- --- /work/SRC/openSUSE:Factory/libvirt-python/libvirt-python.changes 2014-12-23 11:49:22.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libvirt-python.new/libvirt-python.changes 2015-02-05 11:00:28.000000000 +0100 @@ -1,0 +2,6 @@ +Tue Jan 27 16:01:54 MST 2015 - [email protected] + +- Update to 1.2.12 + - Add all new APIs and constants in libvirt 1.2.12 + +------------------------------------------------------------------- Old: ---- libvirt-python-1.2.11.tar.gz libvirt-python-1.2.11.tar.gz.asc New: ---- libvirt-python-1.2.12.tar.gz libvirt-python-1.2.12.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvirt-python.spec ++++++ --- /var/tmp/diff_new_pack.FnbIq1/_old 2015-02-05 11:00:29.000000000 +0100 +++ /var/tmp/diff_new_pack.FnbIq1/_new 2015-02-05 11:00:29.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package libvirt-python # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: libvirt-python Url: http://libvirt.org/ -Version: 1.2.11 +Version: 1.2.12 Release: 0 Summary: Library providing a simple virtualization API License: LGPL-2.1+ ++++++ libvirt-python-1.2.11.tar.gz -> libvirt-python-1.2.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.11/AUTHORS new/libvirt-python-1.2.12/AUTHORS --- old/libvirt-python-1.2.11/AUTHORS 2014-12-13 03:57:15.000000000 +0100 +++ new/libvirt-python-1.2.12/AUTHORS 2015-01-27 09:04:12.000000000 +0100 @@ -353,6 +353,7 @@ Eric Blake <[email protected]> Eric Blake <[email protected]> Eric Blake <[email protected]> + Eric Blake <[email protected]> Federico Simoncelli <[email protected]> Giuseppe Scrivano <[email protected]> Giuseppe Scrivano <[email protected]> @@ -488,6 +489,7 @@ Michal Privoznik <[email protected]> Michal Privoznik <[email protected]> Michal Privoznik <[email protected]> + Michal Privoznik <[email protected]> Miloslav Trmač <[email protected]> Minoru Usui <[email protected]> Minoru Usui <[email protected]> @@ -528,6 +530,7 @@ Pavel Hrdina <[email protected]> Pavel Hrdina <[email protected]> Pavel Hrdina <[email protected]> + Pavel Hrdina <[email protected]> Pavel Hrdina <[email protected]> Pavel Hrdina <[email protected]> Pavel Hrdina <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.11/ChangeLog new/libvirt-python-1.2.12/ChangeLog --- old/libvirt-python-1.2.11/ChangeLog 2014-12-13 03:57:15.000000000 +0100 +++ new/libvirt-python-1.2.12/ChangeLog 2015-01-27 09:04:12.000000000 +0100 @@ -1,3 +1,51 @@ +2015-01-19 Pavel Hrdina <[email protected]> + + sanitytest: fix mapping test for virDomainDefineXMLFlags + The libvirt API has in the name "virDomain" but it's correctly mapped + into "virConnect" class. Create an exception in the sanity test. + + + +2015-01-15 Eric Blake <[email protected]> + + build: make it easier to backport event ids + In some cases, it is very easy for downstream distros to backport + enum values without requiring a .so bump. Keying the conditional + code off of the upstream version where the enum value was added + is not ideal, because downstream then has to patch that the feature + is available in their build that still reports an earlier version + number. For example, if RHEL 7 backports events from 1.2.11 into + a build based on 1.2.8, building the python bindings would warn: + + libvirt-override.c: In function ‘libvirt_virConnectDomainEventRegisterAny’: + libvirt-override.c:6653:5: warning: enumeration value ‘VIR_DOMAIN_EVENT_ID_TUNABLE’ not handled in switch [-Wswitch] + switch ((virDomainEventID) eventID) { + ^ + libvirt-override.c:6653:5: warning: enumeration value ‘VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE’ not handled in switch [-Wswitch] + + The solution is simple - use feature-based probes instead of + version probes. Since we already scrape the XML API document of + whatever libvirt build we are binding, and that XML already + documents any downstream enum additions, we can use those as the + features for gating conditional compilation. + + * generator.py (enum): Track event id names. + (buildStubs): Output define wrappers for events. + * libvirt-override.c + (libvirt_virConnectDomainEventBalloonChangeCallback) + (libvirt_virConnectDomainEventPMSuspendDiskCallback) + (libvirt_virConnectDomainEventDeviceRemovedCallback) + (libvirt_virConnectDomainEventTunableCallback) + (libvirt_virConnectDomainEventAgentLifecycleCallback) + (libvirt_virConnectDomainEventRegisterAny): Use them. + + + +2014-12-16 Michal Privoznik <[email protected]> + + Bump version to 1.2.12 for new dev cycle + + 2014-12-11 Richard W.M. Jones <[email protected]> Add c_pointer method to classes. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.11/PKG-INFO new/libvirt-python-1.2.12/PKG-INFO --- old/libvirt-python-1.2.11/PKG-INFO 2014-12-13 03:57:15.000000000 +0100 +++ new/libvirt-python-1.2.12/PKG-INFO 2015-01-27 09:04:13.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: libvirt-python -Version: 1.2.11 +Version: 1.2.12 Summary: The libvirt virtualization API Home-page: http://www.libvirt.org Author: Libvirt Maintainers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.11/generator.py new/libvirt-python-1.2.12/generator.py --- old/libvirt-python-1.2.11/generator.py 2014-12-13 03:42:57.000000000 +0100 +++ new/libvirt-python-1.2.12/generator.py 2015-01-21 08:24:08.000000000 +0100 @@ -9,6 +9,7 @@ enums = {} # { enumType: { enumConstant: enumValue } } lxc_enums = {} # { enumType: { enumConstant: enumValue } } qemu_enums = {} # { enumType: { enumConstant: enumValue } } +event_ids = [] import os import sys @@ -219,6 +220,9 @@ def enum(type, name, value): if type not in enums: enums[type] = {} + if (name.startswith('VIR_DOMAIN_EVENT_ID_') or + name.startswith('VIR_NETWORK_EVENT_ID_')): + event_ids.append(name) if value == 'VIR_TYPED_PARAM_INT': value = 1 elif value == 'VIR_TYPED_PARAM_UINT': @@ -910,10 +914,10 @@ wrapper_file = "build/%s.c" % module include = open(header_file, "w") - include.write("/* Generated */\n\n") + include.write("/* Generated by generator.py */\n\n") export = open(export_file, "w") - export.write("/* Generated */\n\n") + export.write("/* Generated by generator.py */\n\n") wrapper = open(wrapper_file, "w") wrapper.write("/* Generated by generator.py */\n\n") @@ -943,6 +947,10 @@ # Write C pointer conversion functions. for classname in primary_classes: print_c_pointer(classname, wrapper, export, include) + # Write define wrappers around event id enums, so that the + # preprocessor can see which enums were available. + for event_id in event_ids: + include.write("#define %s %s\n" % (event_id, event_id)) include.close() export.close() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.11/libvirt-override.c new/libvirt-python-1.2.12/libvirt-override.c --- old/libvirt-python-1.2.11/libvirt-override.c 2014-12-13 03:42:57.000000000 +0100 +++ new/libvirt-python-1.2.12/libvirt-override.c 2015-01-21 08:24:08.000000000 +0100 @@ -4,7 +4,7 @@ * entry points where an automatically generated stub is * unpractical * - * Copyright (C) 2005, 2007-2014 Red Hat, Inc. + * Copyright (C) 2005, 2007-2015 Red Hat, Inc. * * Daniel Veillard <[email protected]> */ @@ -6346,7 +6346,7 @@ } -#if LIBVIR_CHECK_VERSION(0, 10, 0) +#ifdef VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE static int libvirt_virConnectDomainEventBalloonChangeCallback(virConnectPtr conn ATTRIBUTE_UNUSED, virDomainPtr dom, @@ -6398,9 +6398,9 @@ LIBVIRT_RELEASE_THREAD_STATE; return ret; } -#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */ +#endif /* VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE */ -#if LIBVIR_CHECK_VERSION(1, 0, 0) +#ifdef VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK static int libvirt_virConnectDomainEventPMSuspendDiskCallback(virConnectPtr conn ATTRIBUTE_UNUSED, virDomainPtr dom, @@ -6452,9 +6452,9 @@ LIBVIRT_RELEASE_THREAD_STATE; return ret; } -#endif /* LIBVIR_CHECK_VERSION(1, 0, 0) */ +#endif /* VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK */ -#if LIBVIR_CHECK_VERSION(1, 1, 1) +#ifdef VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED static int libvirt_virConnectDomainEventDeviceRemovedCallback(virConnectPtr conn ATTRIBUTE_UNUSED, virDomainPtr dom, @@ -6504,9 +6504,9 @@ LIBVIRT_RELEASE_THREAD_STATE; return ret; } -#endif /* LIBVIR_CHECK_VERSION(1, 1, 1) */ +#endif /* VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED */ -#if LIBVIR_CHECK_VERSION(1, 2, 9) +#ifdef VIR_DOMAIN_EVENT_ID_TUNABLE static int libvirt_virConnectDomainEventTunableCallback(virConnectPtr conn ATTRIBUTE_UNUSED, virDomainPtr dom, @@ -6564,9 +6564,9 @@ return ret; } -#endif /* LIBVIR_CHECK_VERSION(1, 2, 9) */ +#endif /* VIR_DOMAIN_EVENT_ID_TUNABLE */ -#if LIBVIR_CHECK_VERSION(1, 2, 11) +#ifdef VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE static int libvirt_virConnectDomainEventAgentLifecycleCallback(virConnectPtr conn ATTRIBUTE_UNUSED, virDomainPtr dom, @@ -6618,7 +6618,7 @@ return ret; } -#endif /* LIBVIR_CHECK_VERSION(1, 2, 11) */ +#endif /* VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE */ static PyObject * @@ -6676,9 +6676,9 @@ cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventGenericCallback); break; case VIR_DOMAIN_EVENT_ID_BLOCK_JOB: -#if LIBVIR_CHECK_VERSION(1, 2, 6) +#ifdef VIR_DOMAIN_EVENT_ID_BLOCK_JOB_2 case VIR_DOMAIN_EVENT_ID_BLOCK_JOB_2: -#endif /* LIBVIR_CHECK_VERSION(1, 2, 6) */ +#endif /* VIR_DOMAIN_EVENT_ID_BLOCK_JOB_2 */ cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventBlockJobCallback); break; case VIR_DOMAIN_EVENT_ID_DISK_CHANGE: @@ -6693,31 +6693,31 @@ case VIR_DOMAIN_EVENT_ID_PMSUSPEND: cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventPMSuspendCallback); break; -#if LIBVIR_CHECK_VERSION(0, 10, 0) +#ifdef VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE case VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE: cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventBalloonChangeCallback); break; -#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */ -#if LIBVIR_CHECK_VERSION(1, 0, 0) +#endif /* VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE */ +#ifdef VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK case VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK: cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventPMSuspendDiskCallback); break; -#endif /* LIBVIR_CHECK_VERSION(1, 0, 0) */ -#if LIBVIR_CHECK_VERSION(1, 1, 1) +#endif /* VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK */ +#ifdef VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED case VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED: cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventDeviceRemovedCallback); break; -#endif /* LIBVIR_CHECK_VERSION(1, 1, 1) */ -#if LIBVIR_CHECK_VERSION(1, 2, 9) +#endif /* VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED */ +#ifdef VIR_DOMAIN_EVENT_ID_TUNABLE case VIR_DOMAIN_EVENT_ID_TUNABLE: cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventTunableCallback); break; -#endif /* LIBVIR_CHECK_VERSION(1, 2, 9) */ -#if LIBVIR_CHECK_VERSION(1, 2, 11) +#endif /* VIR_DOMAIN_EVENT_ID_TUNABLE */ +#ifdef VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE case VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE: cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventAgentLifecycleCallback); break; -#endif /* LIBVIR_CHECK_VERSION(1, 2, 11) */ +#endif /* VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE */ case VIR_DOMAIN_EVENT_ID_LAST: break; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.11/libvirt-python.spec new/libvirt-python-1.2.12/libvirt-python.spec --- old/libvirt-python-1.2.11/libvirt-python.spec 2014-12-13 03:57:15.000000000 +0100 +++ new/libvirt-python-1.2.12/libvirt-python.spec 2015-01-27 09:04:11.000000000 +0100 @@ -6,7 +6,7 @@ Summary: The libvirt virtualization API python2 binding Name: libvirt-python -Version: 1.2.11 +Version: 1.2.12 Release: 1%{?dist}%{?extra_release} Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz Url: http://libvirt.org diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.11/sanitytest.py new/libvirt-python-1.2.12/sanitytest.py --- old/libvirt-python-1.2.11/sanitytest.py 2014-12-13 03:42:57.000000000 +0100 +++ new/libvirt-python-1.2.12/sanitytest.py 2015-01-21 08:24:08.000000000 +0100 @@ -230,7 +230,7 @@ "LookupByID", "LookupByName", "LookupByKey", "LookupByPath", "LookupByMACString", "LookupByUsage", "LookupByVolume", "LookupSCSIHostByWWN", "Restore", "RestoreFlags", - "SaveImageDefineXML", "SaveImageGetXMLDesc"]: + "SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags"]: if klass != "virDomain": func = klass[3:] + func diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-1.2.11/setup.py new/libvirt-python-1.2.12/setup.py --- old/libvirt-python-1.2.11/setup.py 2014-12-13 03:42:57.000000000 +0100 +++ new/libvirt-python-1.2.12/setup.py 2015-01-21 08:24:08.000000000 +0100 @@ -309,7 +309,7 @@ _c_modules, _py_modules = get_module_lists() setup(name = 'libvirt-python', - version = '1.2.11', + version = '1.2.12', url = 'http://www.libvirt.org', maintainer = 'Libvirt Maintainers', maintainer_email = '[email protected]', -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
