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] [PATCH] fix tools compile issue on sles 10

To: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] fix tools compile issue on sles 10
From: Ryan Grimm <grimm@xxxxxxxxxx>
Date: Thu, 20 Apr 2006 16:42:49 -0500
Delivery-date: Thu, 20 Apr 2006 14:43:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: Mutt/1.5.6+20040907i
With sles 10, 'make tools' produces the following:

CFLAGS="-O2 -fomit-frame-pointer -DNDEBUG -m32 -march=i686 -Wall
-Wstrict-prototypes -Wdeclaration-after-statement
-D__XEN_INTERFACE_VERSION__=0x00030101" python setup.py install
--home="/root/xen/xen-unstable.hg/dist/install/usr" --force
running install
error: must supply either home or prefix/exec-prefix -- not both
make[2]: *** [install] Error 1
make[2]: Leaving directory `/root/xen/xen-unstable.hg/tools/python'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/root/xen/xen-unstable.hg/tools'
make: *** [install-tools] Error 2

there have been a couple other posts about this:

http://lists.xensource.com/archives/html/xen-devel/2006-03/msg00565.html
http://lists.xensource.com/archives/html/xen-devel/2006-04/msg00090.html

prefix is being passed along for some reason. this patch is a simple fix
that will make sure prefix is not defined. 

Signed-off-by: Ryan Grimm <grimm@xxxxxxxxxx>

diff -r 72f9c751d3ea -r 683811163238 tools/pygrub/Makefile
--- a/tools/pygrub/Makefile     Wed Apr 19 18:32:20 2006 +0100
+++ b/tools/pygrub/Makefile     Thu Apr 20 11:27:33 2006 -0500
@@ -11,7 +11,7 @@ build:
 .PHONY: install
 ifndef XEN_PYTHON_NATIVE_INSTALL
 install: all
-       CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr"
+       CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" 
--prefix=""
 else
 install: all
        CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)"
diff -r 72f9c751d3ea -r 683811163238 tools/python/Makefile
--- a/tools/python/Makefile     Wed Apr 19 18:32:20 2006 +0100
+++ b/tools/python/Makefile     Thu Apr 20 11:27:33 2006 -0500
@@ -11,7 +11,7 @@ build:
 .PHONY: install
 ifndef XEN_PYTHON_NATIVE_INSTALL
 install: all
-       CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" 
--force
+       CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" 
--prefix="" --force
 else
 install: all
        CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force

-- 
Thanks,
Ryan Grimm
IBM Linux Technology Center

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

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