summaryrefslogtreecommitdiff
path: root/packages/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):
s='logmsg'> into cwiiisdesktop.(none):/home/cwiiis/Dev/oe/openembedded 2005/04/28 16:19:29+02:00 local!hrw Merge bk://oe-devel@oe-devel.bkbits.net/openembedded/ into marcinj.local:/home/hrw/zaurus/oe/openembedded 2005/04/28 16:18:40+02:00 local!hrw fixed zbedic build BKrev: 4271061eKbLynTy0IVOyxDgqEjwDPQ 2005-04-19updated zbedic to 0.9.4 (require remove of older version due to PV which ↵Marcin Juszkiewicz3 mickeyl set in older version) BKrev: 4264bccdIO_9SSsvwsFhOKUepS9vNg 2005-02-23Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net1 into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/02/23 12:40:33+01:00 uni-frankfurt.de!mickeyl Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into gandalf.tm.informatik.uni-frankfurt.de:/local/pkg/oe/packages 2005/02/23 12:36:37+01:00 uni-frankfurt.de!mickeyl Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into gandalf.tm.informatik.uni-frankfurt.de:/local/pkg/oe/packages 2005/02/23 11:34:13+01:00 mn-solutions.de!schurig Merge http://oe-devel@openembedded.bkbits.net/openembedded into mnz66.mn-solutions.de:/usr/src/oe/p 2005/02/23 11:33:31+01:00 mn-solutions.de!schurig fix installation stage 2005/02/23 09:27:44+00:00 (none)!xora New upstream version of kismet, fixes for compilation problems, and change of maintainer with Brunos permission 2005/02/23 01:11:25+01:00 uni-frankfurt.de!mickeyl add a sharprom-compatible distro configuration. relies on an external 2.95.3 toolchain (for now... until someone adds it to OE) and needs further work. It's a start for someone interested though. 2005/02/23 01:09:23+01:00 uni-frankfurt.de!mickeyl bump cvsdate on oz-3.5.3 2005/02/22 17:37:44-06:00 ti.com!kergoth Fix the quilt PATCHCMD to stop rampantly chmod'ing, which made the CVS directories not executable, thereby screwing up the ability to rm -rf tmp. Thanks to holger freyther for pointing it out. BKrev: 421c7b62hBWfitoVhb3IO3ZT5nS71A 2005-02-15zbedic: fixed packaging - pics & helpMarcin Juszkiewicz1 BKrev: 4211e723sYEsdmr7epNj1-k78BGU7g 2004-12-28Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net2 into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/28 16:38:28-05:00 handhelds.org!kergoth Merge oe-devel@oe-devel.bkbits.net:openembedded into handhelds.org:/home/kergoth/code/openembedded 2004/12/28 16:18:33-06:00 ti.com!kergoth Change CCLD to be identical to CC for the moment, so libtool's lack of CCLD awareness doesn't break things. 2004/12/28 22:09:49+01:00 dyndns.org!reenoo Merge oe-devel@oe-devel.bkbits.net:openembedded into sugarcube.dyndns.org:/home2/oe/bakery/openembedded 2004/12/28 22:09:29+01:00 dyndns.org!reenoo ppp(-dialin): fix ppp-dialin (and other uses of pppd) by making pppd suid root. 2004/12/28 21:59:53+01:00 uni-frankfurt.de!mickeyl Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into r2d2.tm.informatik.uni-frankfurt.de:/local/pkg/oe/packages 2004/12/28 21:59:44+01:00 uni-frankfurt.de!mickeyl fix zbedic to 20041227 and add a qtopia17.patch BKrev: 41d1dbbb__VEbpAroY8Qu9r_OOB55g 2004-12-09Merge oe-devel@oe-devel.bkbits.net:openembeddedChris Larson3 into hyperion.kergoth.com:/home/kergoth/code/openembedded 2004/12/09 03:39:39-06:00 kergoth.com!kergoth Break people's builds again.. this time moving the packages into a packages/ subdir to clean things up a bit. BKrev: 41b81f3dvlp3rU7_8MUXLcI8LDdDoA