Skip to contentSkip to conversation

xmexample: portability fix

PATCH New Christoph Egger 1 participant 1 message Feb 27, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xmexample: portability fix

Hi,

Attached patch makes config example files portable. Please apply to both -unstable and 3.3-testing.

Signature · 6 lines
---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
tools/examples/xmexample.hvm +3 -3
diff -r f8187a343ad2 tools/examples/xmexample.hvm
@@ -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.
tools/examples/xmexample.vti +3 -1
diff -r f8187a343ad2 tools/examples/xmexample.vti
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel