Merge bk://openembedded@openembedded.bkbits.net/packages
authorMichael Lauer <mickey@vanille-media.de>
Sun, 4 Apr 2004 12:32:24 +0000 (12:32 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Sun, 4 Apr 2004 12:32:24 +0000 (12:32 +0000)
into r2d2.tm.informatik.uni-frankfurt.de:/home/projekte/packages

2004/04/04 03:29:10+02:00 uni-frankfurt.de!mickey
add python-pycodes (low density parity check (LDPC) codes).
couldn't see the binary modules at first glance - please check

2004/04/04 03:20:36+02:00 uni-frankfurt.de!mickey
catch up with the new staging scheme. read individual comments to understand the whole story

BKrev: 40700058l_qApKeSZljFtyn8B1KcvA

python/python-native-2.3.3/cross-distutils.patch
python/python-native_2.3.3.oe
python/python-pycodes-1.1/no-docs.patch [new file with mode: 0644]
python/python-pycodes_1.1.oe [new file with mode: 0644]
python/python_2.3.3.oe

index db09de5..76ae883 100644 (file)
@@ -11,8 +11,8 @@
  # 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( "build", "target" )
-+EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( "build", "target" )
++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
@@ -22,7 +22,7 @@
          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( "build", "target" )
++    return os.path.join(inc_dir, config_h).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
  
  
  def get_makefile_filename():
@@ -32,7 +32,7 @@
      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( "build", "target" )
++    return os.path.join(lib_dir, "config", "Makefile").replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
  
  
  def parse_config_h(fp, g=None):
index 5c7509a..a72e299 100644 (file)
@@ -12,7 +12,7 @@ S = "${WORKDIR}/Python-${PV}"
 inherit autotools native
 
 EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc --with-prefix=${STAGING_DIR} --with-exec-prefix=${STAGING_DIR}/${BUILD_SYS}"
-
+EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS=""'
 do_configure () {
        oe_runconf
 }
diff --git a/python/python-pycodes-1.1/no-docs.patch b/python/python-pycodes-1.1/no-docs.patch
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/python/python-pycodes_1.1.oe b/python/python-pycodes_1.1.oe
new file mode 100644 (file)
index 0000000..e69de29
index 49567ec..04d703f 100644 (file)
@@ -36,7 +36,9 @@ do_compile_prepend() {
 do_compile() {
        oe_runmake HOSTPGEN=${STAGING_BINDIR}/pgen \
                   HOSTPYTHON=${STAGING_BINDIR}/python \
-                  STAGING_DIR=${STAGING_DIR}
+                  STAGING_DIR=${STAGING_DIR} \
+                  BUILD_SYS=${BUILD_SYS} \
+                  HOST_SYS=${HOST_SYS}
 }
 
 do_stage() {