pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/xentools33 Forgot to "cvs add" the patches. A...
details: https://anonhg.NetBSD.org/pkgsrc/rev/24b9da910e67
branches: trunk
changeset: 602176:24b9da910e67
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Sat Apr 07 14:48:11 2012 +0000
description:
Forgot to "cvs add" the patches. Also remove some debugging dreg.
Reminded by wiz, thanks!
diffstat:
sysutils/xentools33/Makefile | 6 +-
sysutils/xentools33/patches/patch-python_xen_util_xmlrpcclient.py | 26 ++++++++++
sysutils/xentools33/patches/patch-python_xen_util_xmlrpclib2.py | 14 +++++
3 files changed, 43 insertions(+), 3 deletions(-)
diffs (68 lines):
diff -r 4a2d8726ff9a -r 24b9da910e67 sysutils/xentools33/Makefile
--- a/sysutils/xentools33/Makefile Sat Apr 07 13:22:31 2012 +0000
+++ b/sysutils/xentools33/Makefile Sat Apr 07 14:48:11 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2012/04/07 13:10:56 bsiegert Exp $
+# $NetBSD: Makefile,v 1.32 2012/04/07 14:48:11 bsiegert Exp $
#
VERSION= 3.3.2
@@ -24,8 +24,8 @@
PKG_SYSCONFSUBDIR= xen
-#ONLY_FOR_PLATFORM= Linux-2.6*-i386 Linux-2.6*-x86_64
-#ONLY_FOR_PLATFORM+= NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386
+ONLY_FOR_PLATFORM= Linux-2.6*-i386 Linux-2.6*-x86_64
+ONLY_FOR_PLATFORM+= NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386
CONFLICTS+= libxen-[0-9]*
CONFLICTS+= xentools20-[0-9]*
diff -r 4a2d8726ff9a -r 24b9da910e67 sysutils/xentools33/patches/patch-python_xen_util_xmlrpcclient.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools33/patches/patch-python_xen_util_xmlrpcclient.py Sat Apr 07 14:48:11 2012 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-python_xen_util_xmlrpcclient.py,v 1.1 2012/04/07 14:48:12 bsiegert Exp $
+
+--- python/xen/util/xmlrpcclient.py.orig 2012-04-02 21:17:56.000000000 +0000
++++ python/xen/util/xmlrpcclient.py
+@@ -22,6 +22,7 @@ import socket
+ import string
+ import xmlrpclib
+ from types import StringTypes
++from sys import hexversion
+
+
+ try:
+@@ -54,7 +55,12 @@ class UnixTransport(xmlrpclib.Transport)
+ 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
diff -r 4a2d8726ff9a -r 24b9da910e67 sysutils/xentools33/patches/patch-python_xen_util_xmlrpclib2.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools33/patches/patch-python_xen_util_xmlrpclib2.py Sat Apr 07 14:48:11 2012 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-python_xen_util_xmlrpclib2.py,v 1.1 2012/04/07 14:48:12 bsiegert Exp $
+
+--- python/xen/util/xmlrpclib2.py.orig 2012-04-02 21:20:21.000000000 +0000
++++ python/xen/util/xmlrpclib2.py
+@@ -58,6 +58,9 @@ def stringify(value):
+ # 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
Home |
Main Index |
Thread Index |
Old Index