WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[PATCH] only one python2.2 pygrub patch needed [was Re: [Xen-devel] Re:

To: Jeremy Katz <katzj@xxxxxxxxxx>
Subject: [PATCH] only one python2.2 pygrub patch needed [was Re: [Xen-devel] Re: [Xen-changelog] Tweak to pygrub build config detection.]
From: Muli Ben-Yehuda <mulix@xxxxxxxxx>
Date: Sat, 22 Oct 2005 07:44:15 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 22 Oct 2005 05:41:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1129932232.2050.228.camel@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <E1ET22G-0004Fq-7s@xxxxxxxxxxxxxxxxxxxxx> <1129932232.2050.228.camel@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Fri, Oct 21, 2005 at 06:03:51PM -0400, Jeremy Katz wrote:
> On Fri, 2005-10-21 at 18:54 +0000, Xen patchbot -unstable wrote:
> > # HG changeset patch
> > # User kaf24@xxxxxxxxxxxxxxxxxxxx
> > # Node ID 8eaaa622db81393ef0eae497090c34c04adf4212
> > # Parent  3eee5653f08b01a310e0a9172a6c0149f16217df
> > Tweak to pygrub build config detection.
> > Signed-off-by: Jeremy Katz <katzj@xxxxxxxxxx>
> 
> Applying both patches for this is overkill.... ;)

Indeed. Here's a patch to only kill it once.

Two patches were applied to pygrub's setup.py to work around python2.2
limitations and only one is needed. Revert one of them.

Signed-Off-By: Muli Ben-Yehuda <mulix@xxxxxxxxx>

diff -r 17a9f111fa93b38b28bc8679ee8d35b45b7627bc -r 
89dbd4ccbd6faa7bcf8845869ea5c34dcdf2acd7 tools/pygrub/setup.py
--- a/tools/pygrub/setup.py     Fri Oct 21 17:51:42 2005
+++ b/tools/pygrub/setup.py     Sat Oct 22 05:40:29 2005
@@ -12,14 +12,11 @@
     ext2defines = []
     cc = new_compiler()
     cc.add_library("ext2fs")
-    try:
-        if hasattr(cc, "has_function") and cc.has_function("ext2fs_open2"):
-            ext2defines.append( ("HAVE_EXT2FS_OPEN2", None) )
-        else:
-            sys.stderr.write("WARNING: older version of e2fsprogs installed, 
not building full\n")
-            sys.stderr.write("         disk support for ext2.\n")
-    except AttributeError:
-        pass
+    if hasattr(cc, "has_function") and cc.has_function("ext2fs_open2"):
+        ext2defines.append( ("HAVE_EXT2FS_OPEN2", None) )
+    else:
+        sys.stderr.write("WARNING: older version of e2fsprogs installed, not 
building full\n")
+        sys.stderr.write("         disk support for ext2.\n")
         
     ext2 = Extension("grub.fsys.ext2._pyext2",
                      extra_compile_args = extra_compile_args,

-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>