[xen] update to 4.0.1 release - many bug fixes. fix xm and xend for python 2.7.

myoung myoung at fedoraproject.org
Wed Aug 25 19:30:52 UTC 2010


commit 34085e7161c72809467cf73f903eea6419993a50
Author: Michael Young <m.a.young at durham.ac.uk>
Date:   Wed Aug 25 20:21:21 2010 +0100

    update to 4.0.1 release - many bug fixes.
    fix xm and xend for python 2.7.

 .gitignore                   |    1 +
 localgcc45fix.patch          |   13 ---
 localpy27fixes.patch         |   36 +++++++
 sources                      |    2 +-
 xen-dev-create-cleanup.patch |  234 ------------------------------------------
 xen.spec                     |   20 +++-
 6 files changed, 53 insertions(+), 253 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 841bae9..bf747c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ lwip-1.3.0.tar.gz
 pciutils-2.2.9.tar.bz2
 zlib-1.2.3.tar.gz
 xen-4.0.0.tar.gz
+/xen-4.0.1.tar.gz
diff --git a/localgcc45fix.patch b/localgcc45fix.patch
index f5ed98f..756df8f 100644
--- a/localgcc45fix.patch
+++ b/localgcc45fix.patch
@@ -1,16 +1,3 @@
-Linking of xen-4.0.1/xen/.xen-syms.0 fails for gcc 4.5 with
-undefined reference to `_Unwind_Resume'
-if -fexceptions is set
---- xen-4.0.1/xen/Rules.mk.orig	2010-05-22 14:39:11.000000000 +0100
-+++ xen-4.0.1/xen/Rules.mk	2010-07-24 14:14:01.000000000 +0100
-@@ -71,6 +71,7 @@
- DEPS = .*.d
- 
- CFLAGS += $(CFLAGS-y)
-+CFLAGS += -fno-exceptions
- 
- # Most CFLAGS are safe for assembly files:
- #  -std=gnu{89,99} gets confused by #-prefixed end-of-line comments
 Adapt http://xenbits.xen.org/linux-2.6.18-xen.hg?rev/efae51e0fa91
 to solve error
 variably modified 'tx_freelist' at file scope
diff --git a/localpy27fixes.patch b/localpy27fixes.patch
new file mode 100644
index 0000000..1d96886
--- /dev/null
+++ b/localpy27fixes.patch
@@ -0,0 +1,36 @@
+--- xen-4.0.1/tools/python/xen/util/xmlrpcclient.py.orig	2010-02-02 20:43:01.000000000 +0000
++++ xen-4.0.1/tools/python/xen/util/xmlrpcclient.py	2010-08-18 21:36:05.000000000 +0100
+@@ -22,6 +22,7 @@
+ import string
+ import xmlrpclib
+ from types import StringTypes
++from sys import hexversion
+ 
+ 
+ try:
+@@ -54,7 +55,12 @@
+         return xmlrpclib.Transport.request(self, host, '/RPC2',
+                                            request_body, verbose)
+     def make_connection(self, host):
+-        return HTTPUnix(self.__handler)
++        if hexversion < 0x02070000:
++            # python 2.6 or earlier
++            return HTTPUnix(self.__handler)
++        else:
++            # xmlrpclib.Transport changed in python 2.7
++            return HTTPUnixConnection(self.__handler)
+ 
+ 
+ # We need our own transport for HTTPS, because xmlrpclib.SafeTransport is
+--- xen-4.0.1/tools/python/xen/util/xmlrpclib2.py.orig	2010-02-02 20:43:01.000000000 +0000
++++ xen-4.0.1/tools/python/xen/util/xmlrpclib2.py	2010-08-18 21:35:40.000000000 +0100
+@@ -58,6 +58,9 @@
+ # some bugs in Keep-Alive handling and also enabled it by default
+ class XMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
+     protocol_version = "HTTP/1.1"
++    # xend crashes in python 2.7 unless disable_nagle_algorithm = False
++    # it isn't used in earlier versions so it is harmless to set it generally
++    disable_nagle_algorithm = False
+ 
+     def __init__(self, hosts_allowed, request, client_address, server):
+         self.hosts_allowed = hosts_allowed
diff --git a/sources b/sources
index 8230e83..5a08d64 100644
--- a/sources
+++ b/sources
@@ -3,4 +3,4 @@ bf8f1f9e3ca83d732c00a79a6ef29bc4  newlib-1.16.0.tar.gz
 36cc57650cffda9a0269493be2a169bb  lwip-1.3.0.tar.gz
 cec05e7785497c5e19da2f114b934ffd  pciutils-2.2.9.tar.bz2
 debc62758716a169df9f62e6ab2bc634  zlib-1.2.3.tar.gz
-b147fe56d035c497c99898243aae8937  xen-4.0.0.tar.gz
+d197afad975ab2396a67323d57388c27  xen-4.0.1.tar.gz
diff --git a/xen.spec b/xen.spec
index 656ca75..91371cb 100644
--- a/xen.spec
+++ b/xen.spec
@@ -5,12 +5,12 @@
 
 Summary: Xen is a virtual machine monitor
 Name:    xen
-Version: 4.0.0
-Release: 5%{?dist}
+Version: 4.0.1
+Release: 1%{?dist}
 Group:   Development/Libraries
 License: GPLv2+ and LGPLv2+ and BSD
 URL:     http://xen.org/
-Source0: http://bits.xensource.com/oss-xen/release/4.0.0/xen-%{version}.tar.gz
+Source0: http://bits.xensource.com/oss-xen/release/%{version}/xen-%{version}.tar.gz
 Source1: %{name}.modules
 Source2: %{name}.logrotate
 Source3: dom0-kernel.repo
@@ -37,8 +37,8 @@ Patch5: xen-net-disable-iptables-on-bridge.patch
 
 Patch10: xen-no-werror.patch
 
-Patch15: xen-dev-create-cleanup.patch
 Patch18: localgcc45fix.patch
+Patch19: localpy27fixes.patch
 
 Patch100: xen-configure-xend.patch
 
@@ -160,8 +160,8 @@ to build the xen packages.
 
 %patch10 -p1
 
-%patch15 -p1
 %patch18 -p1
+%patch19 -p1
 
 %patch100 -p1
 
@@ -382,6 +382,7 @@ rm -rf %{buildroot}
 %{_sysconfdir}/rc.d/init.d/blktapctrl
 %{_sysconfdir}/rc.d/init.d/xenstored
 %{_sysconfdir}/rc.d/init.d/xenconsoled
+%{_sysconfdir}/bash_completion.d/xl.sh
 
 %config(noreplace) %{_sysconfdir}/sysconfig/xenstored
 %config(noreplace) %{_sysconfdir}/sysconfig/xenconsoled
@@ -458,6 +459,7 @@ rm -rf %{buildroot}
 # Misc stuff
 %{_bindir}/xen-detect
 %{_sbindir}/fs-backend
+%{_sbindir}/gdbsx
 %{_sbindir}/gtrace*
 %{_sbindir}/lock-util
 %{_sbindir}/td-util
@@ -508,6 +510,14 @@ rm -rf %{buildroot}
 %doc licensedir/*
 
 %changelog
+* Wed Aug 25 2010 Michael Young <m.a.young at durham.ac.uk> - 4.0.1-1
+- update to 4.0.1 release - many bug fixes
+- xen-dev-create-cleanup.patch no longer needed
+- remove part of localgcc45fix.patch no longer needed
+- package new files /etc/bash_completion.d/xl.sh
+  and /usr/sbin/gdbsx
+- add patch to get xm and xend working with python 2.7
+
 * Mon Aug 2 2010 Michael Young <m.a.young at durham.ac.uk> - 4.0.0-5
 - add newer module names and xen-gntdev to xen.modules
 - Update dom0-kernel.repo file to use repos.fedorapeople.org location


More information about the scm-commits mailing list