diff options
author | Koen Kooi <koen@openembedded.org> | 2008-10-02 11:26:22 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-10-02 11:26:22 +0000 |
commit | 5409a0e65ec89118622d9c8b85ae81bd4eeea01d (patch) | |
tree | 7dbdd9584a20ba14bcc8d6e81e3b147865890998 | |
parent | 0d2076ed8e2a9566573bc16db2ada8a01fa1db29 (diff) | |
parent | e2811fa331c29f91a088bee958ce483d92464b6d (diff) |
merge of '23575cb366ac6706d85f4cc91b22f06ce1e10a0d'
and 'd6babd021e3bde4e1d827d07c1af7154a6569ab7'
-rw-r--r-- | classes/distutils.bbclass | 6 | ||||
-rw-r--r-- | packages/bzip2/bzip2-full-native-1.0.5/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/bzip2/bzip2-full-native-1.0.5/Makefile.am | 41 | ||||
-rw-r--r-- | packages/bzip2/bzip2-full-native-1.0.5/configure.ac | 14 | ||||
-rw-r--r-- | packages/bzip2/bzip2-full-native_1.0.5.bb | 25 | ||||
-rw-r--r-- | packages/python/python-native-2.5.1/fix-staging.patch | 38 | ||||
-rw-r--r-- | packages/python/python-native_2.5.1.bb | 8 |
7 files changed, 129 insertions, 3 deletions
diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass index a35ca27bd4..694d6bc5d9 100644 --- a/classes/distutils.bbclass +++ b/classes/distutils.bbclass @@ -8,6 +8,8 @@ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ --install-data=${D}/${datadir}" distutils_do_compile() { + STAGING_INCDIR=${STAGING_INCDIR} \ + STAGING_LIBDIR=${STAGING_LIBDIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ ${STAGING_BINDIR_NATIVE}/python setup.py build ${DISTUTILS_BUILD_ARGS} || \ oefatal "python setup.py build_ext execution failed." @@ -21,6 +23,8 @@ distutils_stage_headers() { } distutils_stage_all() { + STAGING_INCDIR=${STAGING_INCDIR} \ + STAGING_LIBDIR=${STAGING_LIBDIR} \ install -d ${STAGING_DIR_HOST}${layout_libdir}/${PYTHON_DIR}/site-packages PYTHONPATH=${STAGING_DIR_HOST}${layout_libdir}/${PYTHON_DIR}/site-packages \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ @@ -30,6 +34,8 @@ distutils_stage_all() { distutils_do_install() { install -d ${D}${libdir}/${PYTHON_DIR}/site-packages + STAGING_INCDIR=${STAGING_INCDIR} \ + STAGING_LIBDIR=${STAGING_LIBDIR} \ PYTHONPATH=${D}/${libdir}/${PYTHON_DIR}/site-packages \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ ${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_INSTALL_ARGS} || \ diff --git a/packages/bzip2/bzip2-full-native-1.0.5/.mtn2git_empty b/packages/bzip2/bzip2-full-native-1.0.5/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/bzip2/bzip2-full-native-1.0.5/.mtn2git_empty diff --git a/packages/bzip2/bzip2-full-native-1.0.5/Makefile.am b/packages/bzip2/bzip2-full-native-1.0.5/Makefile.am new file mode 100644 index 0000000000..b234e80f37 --- /dev/null +++ b/packages/bzip2/bzip2-full-native-1.0.5/Makefile.am @@ -0,0 +1,41 @@ + +lib_LTLIBRARIES = libbz2.la + +libbz2_la_SOURCES = blocksort.c \ + huffman.c \ + crctable.c \ + randtable.c \ + compress.c \ + decompress.c \ + bzlib.c + +bin_PROGRAMS = bzip2 bzip2recover + +bzip2_SOURCES = bzip2.c +bzip2_LDADD = libbz2.la +bzip2_DEPENDENCIES = libbz2.la + +include_HEADERS = bzlib.h + +bzip2recover_SOURCES = bzip2recover.c +bzip2recover_LDADD = libbz2.la +bzip2recover_DEPENDENCIES = libbz2.la + +bin_SCRIPTS = bzgrep bzgrep bzmore bzdiff + +man_MANS = bzip2.1 bzgrep.1 bzmore.1 bzdiff.1 +EXTRA_DIST = $(man_MANS) + +install-exec-hook: + ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bunzip2$(EXEEXT) + ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bzcat$(EXEEXT) + ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzegrep$(EXEEXT) + ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzfgrep$(EXEEXT) + ln -s $(bindir)/bzmore$(EXEEXT) $(DESTDIR)$(bindir)/bzless$(EXEEXT) + ln -s $(bindir)/bzdiff$(EXEEXT) $(DESTDIR)$(bindir)/bzcmp$(EXEEXT) + +install-data-hook: + echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzegrep.1 + echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzfgrep.1 + echo ".so man1/bzmore.1" > $(DESTDIR)$(mandir)/man1/bzless.1 + echo ".so man1/bzdiff.1" > $(DESTDIR)$(mandir)/man1/bzcmp.1 diff --git a/packages/bzip2/bzip2-full-native-1.0.5/configure.ac b/packages/bzip2/bzip2-full-native-1.0.5/configure.ac new file mode 100644 index 0000000000..14b1d1809d --- /dev/null +++ b/packages/bzip2/bzip2-full-native-1.0.5/configure.ac @@ -0,0 +1,14 @@ +AC_PREREQ([2.57]) + +AC_INIT(bzip2, 2.0.5, , libXrender) +AM_INIT_AUTOMAKE() +AM_MAINTAINER_MODE + +#AM_CONFIG_HEADER(config.h) + +# Check for progs +AC_PROG_CC +AC_PROG_LIBTOOL + +AC_OUTPUT([Makefile]) + diff --git a/packages/bzip2/bzip2-full-native_1.0.5.bb b/packages/bzip2/bzip2-full-native_1.0.5.bb new file mode 100644 index 0000000000..13bebbb3d5 --- /dev/null +++ b/packages/bzip2/bzip2-full-native_1.0.5.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "Very high-quality data compression program." +SECTION = "console/utils" +PR = "r0" + +LICENSE = "bzip2" +SRC_URI = "http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz \ + file://configure.ac \ + file://Makefile.am" + +S = "${WORKDIR}/bzip2-${PV}" + +CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64" + +inherit autotools native + +do_configure_prepend () { + cp ${WORKDIR}/configure.ac ${S}/ + cp ${WORKDIR}/Makefile.am ${S}/ + cp ${STAGING_DATADIR_NATIVE}/automake*/install-sh ${S}/ +} + +do_stage () { + install -m 0644 bzlib.h ${STAGING_INCDIR}/ + oe_libinstall -a -so libbz2 ${STAGING_LIBDIR} +} diff --git a/packages/python/python-native-2.5.1/fix-staging.patch b/packages/python/python-native-2.5.1/fix-staging.patch new file mode 100644 index 0000000000..087c813fd4 --- /dev/null +++ b/packages/python/python-native-2.5.1/fix-staging.patch @@ -0,0 +1,38 @@ +--- + Lib/distutils/sysconfig.py | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +--- Python-2.5.1.orig/Lib/distutils/sysconfig.py ++++ Python-2.5.1/Lib/distutils/sysconfig.py +@@ -52,11 +52,14 @@ def get_python_inc(plat_specific=0, pref + + If 'prefix' is supplied, use it instead of sys.prefix or + sys.exec_prefix -- i.e., ignore 'plat_specific'. + """ + if prefix is None: +- prefix = plat_specific and EXEC_PREFIX or PREFIX ++ if plat_specific: ++ prefix = plat_specific and os.environ['STAGING_INCDIR'].rstrip('include') ++ else: ++ prefix = plat_specific and EXEC_PREFIX or PREFIX + if os.name == "posix": + if python_build: + base = os.path.dirname(os.path.abspath(sys.executable)) + if plat_specific: + inc_dir = base +@@ -94,11 +97,14 @@ def get_python_lib(plat_specific=0, stan + + If 'prefix' is supplied, use it instead of sys.prefix or + sys.exec_prefix -- i.e., ignore 'plat_specific'. + """ + if prefix is None: +- prefix = plat_specific and EXEC_PREFIX or PREFIX ++ if plat_specific: ++ prefix = plat_specific and os.environ['STAGING_LIBDIR'].rstrip('lib') ++ else: ++ prefix = plat_specific and EXEC_PREFIX or PREFIX + + if os.name == "posix": + libpython = os.path.join(prefix, + "lib", "python" + get_python_version()) + if standard_lib: diff --git a/packages/python/python-native_2.5.1.bb b/packages/python/python-native_2.5.1.bb index 3f58d36a2e..d43cb520cb 100644 --- a/packages/python/python-native_2.5.1.bb +++ b/packages/python/python-native_2.5.1.bb @@ -1,10 +1,10 @@ DESCRIPTION = "The Python Programming Language" HOMEPAGE = "http://www.python.org" LICENSE = "PSF" +DEPENDS = "openssl-native bzip2-full-native" SECTION = "devel/python" PRIORITY = "optional" -DEPENDS = "" -PR = "ml2" +PR = "ml5" EXCLUDE_FROM_WORLD = "1" @@ -15,6 +15,7 @@ SRC_URI = "\ file://dont-modify-shebang-line.patch;patch=1 \ file://default-is-optimized.patch;patch=1 \ file://catchup-with-swig.patch;patch=1 \ + file://fix-staging.patch;patch=1 \ " S = "${WORKDIR}/Python-${PV}" @@ -25,7 +26,8 @@ exec_prefix = "${STAGING_DIR_NATIVE}/${layout_exec_prefix}" EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \ --without-cxx --with-signal-module --with-wctype-functions" -EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS=""' +EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS="" STAGING_LIBDIR=${STAGING_LIBDIR} \ + STAGING_INCDIR=${STAGING_INCDIR}' do_stage_append() { install -m 0755 Parser/pgen ${STAGING_BINDIR_NATIVE}/ |