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

[Xen-devel] problems with tools/pygrub/setup.py and xen/xm/main.py

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] problems with tools/pygrub/setup.py and xen/xm/main.py
From: peter Bier <peter_bier@xxxxxx>
Date: Fri, 21 Oct 2005 16:47:04 +0000 (UTC)
Delivery-date: Fri, 21 Oct 2005 16:53:20 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Loom/3.14 (http://gmane.org/)

When making the "unstable" version I got an in "tools". There was a complaint 
about "cc.has_function" in the following code area in tools/pygrub/setup.py

    if cc.has_function("ext2fs_open"):
       ext2defines.append( ("HAVE_EXT2FS_OPEN2", None) )
    else :
       sys.stderr.write ("Warning: older veriosn of e2fsprogs installed ...")
       sys.stderr.write (" .... " )
    ext2 = ...

As workaround I simply deleted the entire if - else construct. Make worked 
then, but I suppose this is not a really satisfactory solution.
My python version is 2.2

in xen/xm/main.py I got a problem with the line :

warnings.filterwarnings('ignore', category=FutureWarning );

python complained about FutureWarning being an undefined name.

Commenting this out resulted in code that seems to work properly.

Peter Bier 


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

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