[Pkg-libvirt-commits] [SCM] Libvirt Debian packaging branch, experimental, updated. debian/0.10.2-3-1-gcb74dfd

Guido Günther agx at sigxcpu.org
Sat Oct 13 01:04:57 UTC 2012


The following commit has been merged in the experimental branch:
commit cb74dfd08ba37aa86aa65ac4258aaac49ec01c2c
Author: Guido Günther <agx at sigxcpu.org>
Date:   Sat Oct 13 03:03:59 2012 +0200

    Properly parse (unsigned) long long in the python bindings
    
    to fix those on platforms where sizeof(long) != sizeof(long long).

diff --git a/debian/patches/Properly-parse-unsigned-long-long.patch b/debian/patches/Properly-parse-unsigned-long-long.patch
new file mode 100644
index 0000000..7aa64be
--- /dev/null
+++ b/debian/patches/Properly-parse-unsigned-long-long.patch
@@ -0,0 +1,25 @@
+From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx at sigxcpu.org>
+Date: Sat, 13 Oct 2012 01:05:40 +0200
+Subject: Properly parse (unsigned) long long
+
+This fixes problems on platforms where sizeof(long) != sizeof(long long)
+like ia32.
+---
+ python/generator.py |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/python/generator.py b/python/generator.py
+index a98a894..ced7e41 100755
+--- a/python/generator.py
++++ b/python/generator.py
+@@ -259,8 +259,8 @@ py_types = {
+     'double':  ('d', None, "double", "double"),
+     'unsigned int':  ('i', None, "int", "int"),
+     'unsigned long':  ('l', None, "long", "long"),
+-    'long long':  ('l', None, "longlong", "long long"),
+-    'unsigned long long':  ('l', None, "longlong", "long long"),
++    'long long':  ('L', None, "longlong", "long long"),
++    'unsigned long long':  ('L', None, "longlong", "long long"),
+     'unsigned char *':  ('z', None, "charPtr", "char *"),
+     'char *':  ('z', None, "charPtr", "char *"),
+     'const char *':  ('z', None, "constcharPtr", "const char *"),
diff --git a/debian/patches/series b/debian/patches/series
index 6148614..ab4cb22 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ Don-t-fail-if-we-can-t-setup-avahi.patch
 Reduce-udevadm-settle-timeout-to-10-seconds.patch
 debian/Debianize-systemd-service-files.patch
 Allow-xen-toolstack-to-find-it-s-binaries.patch
+Properly-parse-unsigned-long-long.patch

-- 
Libvirt Debian packaging



More information about the Pkg-libvirt-commits mailing list