summaryrefslogtreecommitdiff
path: root/python/python-native-2.3.3/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):
e7eb16ff49e7e8534606'>xserver-xorg-conf: add new htcdream's xorg.confDenis 'GNUtoo' Carikli1 The new xorg.conf is needed because of the switch from tslib to evdev 2010-06-25xserver-xorg-conf: update om-gta02 config for 2.6.32 and newer kernel (evdev ↵Martin Jansa1 node changed for ts) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 2010-05-24xserver-xorg-conf: Add xilinx-ml507 configAdrian Alonso1 * xorg config file for xilinx-ml507 target platform Signed-off-by: Adrian Alonso <aalonso00@gmail.com> Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org> 2010-04-16xserver-xorg-conf: add dm3730-am3715-evm support and add generic fallback ↵Koen Kooi1 for omap3 2010-03-23xserver-xorg-conf: really add BUG 2.0Marcin Juszkiewicz1 Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> 2010-03-22xserver-xorg-conf_0.1.bb : add omapzoom36x config files.Graeme Gregory1 2010-03-18om-gta01: fix jffs2 building params, xorg.conf (Thanks to Michael)Martin Jansa1 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 2010-03-15xserver-xorg-conf: provide working setup for BUG 2.0Marcin Juszkiewicz1 Copied from BeagleBoard one. Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> 2010-03-07xserver-xorg-conf : fix AllowEmptyInput problem for eee701 and bump PRDenis 'GNUtoo' Carikli1 In newer Xorg versions AllowEmptyInput is on by default, And that appear in Xorg.0.log of the eee701 machine: (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled. (WW) Disabling Keyboard (WW) Disabling Mouse With the mouse disabled as result. Option "AllowEmptyInput" "false" in ServerLayout Section fixes the problem 2010-01-31xserver-xorg-conf: add om-gta01 configurationMartin Jansa1 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 2010-01-26xserver-xorg-conf: add xf86-video-omapfb dependency for omap3 machines in ↵Koen Kooi1 angstrom 2009-12-09xserver-xorg-conf: add cm-t35 supportMike Rapoport1 Signed-off-by: Mike Rapoport <mike@compulab.co.il> 2009-11-16xserver-xorg-conf: added BUG supportMarcin Juszkiewicz1 2009-11-05xserver-xorg-conf: switch to fbdev driver for touchbook till the vrfb bug ↵Koen Kooi1 gets solved 2009-11-02xserver-xorg-conf: simply touchbook configKoen Kooi1 2009-11-02xserver-xorg-conf: Update xorg.conf for the omap3-pandora. i.e. cut out a ↵David-John Willis1 load of cruft. 2009-10-27xserver-xf86-config: Add version for IGEP v2 boardEnric Balletbò i Serra1 Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com> Signed-off-by: Koen Kooi <koen@openembedded.org> 2009-10-22xserver-xorg-conf: added config fot at91sam9263ekMarcin Juszkiewicz1 2009-09-18xserver-xorg-conf: add omap3517-evm supportKoen Kooi1 * This fixes the "blank screen" problem Frank Walzer reported 2009-09-16xserver-xorg-conf: add omap3-touchbook supportKoen Kooi1 2009-08-28xserver-xorg-conf: provide one for Vortex86sxMarcin Juszkiewicz1 2009-08-03xserver-xorg-conf: make it machine relatedMarcin Juszkiewicz1 2009-07-13xserver-xorg-conf_0.1.bb : add xorg.conf for the omapzoom2, exactly the sameGraeme Gregory1 as the beagleboard one 2009-04-29xserver-xorg-conf_0.1.bb : add configuration for om-gta02 machineGraeme Gregory1 2009-03-17rename packages/ to recipes/ per earlier agreementDenys Dmytriyenko1 See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>