From: Christoph Egger Subject: [PATCH] xmexample: portability fix Date: Fri, 27 Feb 2009 11:48:00 +0100 Message-ID: <200902271148.00905.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_gT8pJXHFr7ErImM" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_gT8pJXHFr7ErImM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Attached patch makes config example files portable. Please apply to both -unstable and 3.3-testing. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_gT8pJXHFr7ErImM Content-Type: text/x-diff; charset="us-ascii"; name="xmexample.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xmexample.diff" diff -r f8187a343ad2 tools/examples/xmexample.hvm --- a/tools/examples/xmexample.hvm Fri Feb 20 17:02:36 2009 +0000 +++ b/tools/examples/xmexample.hvm Tue Feb 27 11:35:28 2009 +0100 @@ -7,11 +7,11 @@ #============================================================================ import os, re + +arch_libdir = 'lib' arch = os.uname()[4] -if re.search('64', arch): +if os.uname()[0] == 'Linux' and re.search('64', arch): arch_libdir = 'lib64' -else: - arch_libdir = 'lib' #---------------------------------------------------------------------------- # Kernel image file. diff -r f8187a343ad2 tools/examples/xmexample.vti --- a/tools/examples/xmexample.vti Fri Feb 20 17:02:36 2009 +0000 +++ b/tools/examples/xmexample.vti Tue Feb 27 11:35:28 2009 +0100 @@ -7,8 +7,10 @@ #============================================================================ import os, re +arch_libdir = 'lib' arch = os.uname()[4] -arch_libdir = 'lib' +if os.uname()[0] == 'Linux' and re.search('64', arch): + arch_libdir = 'lib64' #---------------------------------------------------------------------------- # Kernel image file. --Boundary-00=_gT8pJXHFr7ErImM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_gT8pJXHFr7ErImM--