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-changelog

[Xen-changelog] [xen-unstable] xmexample: portability fix

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xmexample: portability fix
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 03 Mar 2009 11:10:28 -0800
Delivery-date: Tue, 03 Mar 2009 11:11:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1235991883 0
# Node ID 5e34a89662515c21e686e8a7906d140b470bcb99
# Parent  4dac26349877cbca0bc727286d4ddaeb190dff4b
xmexample: portability fix

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/examples/xmexample.hvm |    6 +++---
 tools/examples/xmexample.vti |    4 +++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff -r 4dac26349877 -r 5e34a8966251 tools/examples/xmexample.hvm
--- a/tools/examples/xmexample.hvm      Mon Mar 02 11:01:06 2009 +0000
+++ b/tools/examples/xmexample.hvm      Mon Mar 02 11:04:43 2009 +0000
@@ -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 4dac26349877 -r 5e34a8966251 tools/examples/xmexample.vti
--- a/tools/examples/xmexample.vti      Mon Mar 02 11:01:06 2009 +0000
+++ b/tools/examples/xmexample.vti      Mon Mar 02 11:04:43 2009 +0000
@@ -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.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xmexample: portability fix, Xen patchbot-unstable <=