summaryrefslogtreecommitdiff
path: root/packages/python/python24-native-2.4.0/cross-distutils.patch
blob: 76ae883c1d694322b5ed05c9bf79446b805d619c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- Python-2.3.3/Lib/distutils/sysconfig.py~cross-distutils	2003-02-10 15:02:33.000000000 +0100
+++ Python-2.3.3/Lib/distutils/sysconfig.py	2004-03-02 20:15:05.000000000 +0100
@@ -19,8 +19,8 @@
 from errors import DistutilsPlatformError
 
 # These are needed in a couple of spots, so just compute them once.
-PREFIX = os.path.normpath(sys.prefix)
-EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
+PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
+EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
 
 # python_build: (Boolean) if true, we're either building Python or
 # building an extension with an un-installed Python, so we use
@@ -192,7 +192,8 @@
     else:
         # The name of the config.h file changed in 2.2
         config_h = 'pyconfig.h'
-    return os.path.join(inc_dir, config_h)
+    print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded"
+    return os.path.join(inc_dir, config_h).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
 
 
 def get_makefile_filename():
@@ -200,7 +201,8 @@
     if python_build:
         return os.path.join(os.path.dirname(sys.executable), "Makefile")
     lib_dir = get_python_lib(plat_specific=1, standard_lib=1)
-    return os.path.join(lib_dir, "config", "Makefile")
+    print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded"
+    return os.path.join(lib_dir, "config", "Makefile").replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
 
 
 def parse_config_h(fp, g=None):
td>1 2008-04-17xserver-kdrive_1.4.0.90.bb : add the no_kbd patch to this as wellGraeme Gregory2 2008-04-17xserver-kdrive 1.4.99.901: disable w100Koen Kooi1 2008-04-17xserver-kdrive 1.4.99.901: allow builds without xkbPieter G2 2008-04-16xserver-kdrive: add 1.5rc (1.4.99.901). WIP, Disabled by default:Koen Kooi7 2008-04-16xserver-kdrive: add 1.4.0.90Koen Kooi8 2008-03-20xserver-kdrive-glamo_1.3.0.0+git.bb : update revisionGraeme Gregory1 2008-03-16xserver-xorg-1.4: add a workaround to xorg-xserver.m4Philipp Zabel2 2008-03-13xorg-xserver: add xserver-xorg 1.4, fix pkgconfig_fix.patch and move itPhilipp Zabel4 2008-02-29xorg-xserver-1.4: Fix pkgconfig fileRichard Purdie2 2008-02-27xserver-kdrive-glamo_1.3.0.0+git.bb : an Xglamo recipe on its own pullingGraeme Gregory1 2008-02-27xserver-kdrive_1.3.0.0.bb : remove glamo from xserver-kdrive, next commitGraeme Gregory8 2008-02-24xserver-kdrive-imageon: reintroduce FILESPATHRolf Leggewie1 2008-02-24xserver-kdrive-imageon: remove FILESPATH definition to make sure it finds all...Rolf Leggewie1 2008-02-18xserver-kdrive-xomap: use fix-picturestr-include-order patch to fix compatibi...Florian Boor2 2008-02-09xserver-kdrive-imagen 1.2.0: Fixed include order in picturestr.h to Manuel Teira2 2008-02-02xserver-kdrive-1.4: remove debugging left-overs from keyboard-resume-workaroundPhilipp Zabel1 2008-02-02xserver-kdrive: remove a blocking read in the keyboard driver resume pathPhilipp Zabel2 2008-02-01xserver-kdrive-1.3/1.4: keycode MEDIUMRAW patch, oebug 2637, courtesy of Stan...Junqian Gordon Xu4 2008-01-28xorg-xserver-common.inc: fix typoKoen Kooi1 2008-01-07propagate from branch 'org.openembedded.dev' (head a9234837102809b3f5f82abc11...Koen Kooi1 2008-01-06xserver-kdrive 1.4: add hal to DEPENDS since kdrive will pick it up from stagingKoen Kooi1 2007-12-30propagate from branch 'org.openembedded.dev' (head 968e6781dca5ee420f8b36434c...Koen Kooi4 2007-12-25xserver-kdrive 1.3: make xfbdev tosa specific Koen Kooi1 2007-12-25xerver-krive-1.3.0.0: tosa fbdev workaround patch by by Hector Martin (bug# 490)Junqian Gordon Xu2