[OE-core] [PATCH 12/24] python3: Add recipes

Martin Jansa martin.jansa at gmail.com
Tue Aug 27 07:48:18 UTC 2013


On Tue, Aug 27, 2013 at 09:45:31AM +0200, Martin Jansa wrote:
> On Mon, Aug 26, 2013 at 10:23:22PM -0700, Khem Raj wrote:
> > 
> > On Aug 26, 2013, at 6:32 AM, Martin Jansa <martin.jansa at gmail.com> wrote:
> > 
> > > On Fri, Jun 28, 2013 at 03:03:57PM -0700, Khem Raj wrote:
> > >> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> > >> ---
> > >> .../python/python3/000-cross-compile.patch         |   76 +++++
> > >> .../python3/020-dont-compile-python-files.patch    |   31 ++
> > >> .../python/python3/03-fix-tkinter-detection.patch  |   42 +++
> > >> .../python/python3/030-fixup-include-dirs.patch    |   36 ++
> > >> .../python/python3/04-default-is-optimized.patch   |   58 ++++
> > >> .../python3/06-ctypes-libffi-fix-configure.patch   |   44 +++
> > >> .../python3/070-dont-clean-ipkg-install.patch      |   30 ++
> > >> .../python3/080-distutils-dont_adjust_files.patch  |   86 +++++
> > >> .../python/python3/110-enable-zlib.patch           |   15 +
> > >> .../python/python3/130-readline-setup.patch        |   49 +++
> > >> .../python/python3/140-verbose-sharedmods.patch    |   10 +
> > >> .../python/python3/150-fix-setupterm.patch         |   11 +
> > >> .../python3/avoid_warning_about_tkinter.patch      |   25 ++
> > >> meta/recipes-devtools/python/python3/cgi_py.patch  |   23 ++
> > >> .../python3/fix_for_using_different_libdir.patch   |   54 +++
> > >> .../python/python3/h2py-pr13032.patch              |  185 +++++++++++
> > >> .../python3/host_include_contamination.patch       |   28 ++
> > >> .../python/python3/python-3.3-multilib.patch       |  348 ++++++++++++++++++++
> > >> .../python/python3/remove_sqlite_rpath.patch       |   19 ++
> > >> .../python/python3/setuptweaks.patch               |   57 ++++
> > >> .../python/python3/shutil-follow-symlink-fix.patch |   11 +
> > >> .../python/python3/sitecustomize.py                |   37 +++
> > >> .../sys_platform_is_now_always_linux2.patch        |   29 ++
> > >> meta/recipes-devtools/python/python3_3.3.0.bb      |  203 ++++++++++++
> > >> 24 files changed, 1507 insertions(+)
> > >> create mode 100644 meta/recipes-devtools/python/python3/000-cross-compile.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/020-dont-compile-python-files.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/03-fix-tkinter-detection.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/030-fixup-include-dirs.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/04-default-is-optimized.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/06-ctypes-libffi-fix-configure.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/070-dont-clean-ipkg-install.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/080-distutils-dont_adjust_files.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/110-enable-zlib.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/130-readline-setup.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/140-verbose-sharedmods.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/150-fix-setupterm.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/avoid_warning_about_tkinter.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/cgi_py.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/fix_for_using_different_libdir.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/h2py-pr13032.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/host_include_contamination.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/python-3.3-multilib.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/remove_sqlite_rpath.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/setuptweaks.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/shutil-follow-symlink-fix.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3/sitecustomize.py
> > >> create mode 100644 meta/recipes-devtools/python/python3/sys_platform_is_now_always_linux2.patch
> > >> create mode 100644 meta/recipes-devtools/python/python3_3.3.0.bb
> > > 
> > > When testing this on another host I got:
> > > 
> > > ERROR: This autoconf log indicates errors, it looked at host include
> > > and/or library paths while determining system capabilities.
> > > Rerun configure task after fixing this. The path was
> > > '/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/python3/3.3.2-r0.0/Python-3.3.2'
> > > ERROR: Function failed: do_qa_configure
> > > ERROR: Logfile of failure stored in:
> > > /OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/python3/3.3.2-r0.0/temp/log.do_configure.13003
> > > ERROR: Task 58
> > > (/OE/shr-core/openembedded-core/meta/recipes-devtools/python/python3_3.3.2.bb,
> > > do_configure) failed with exit code '1'
> > > 
> > > 
> > > configure:6972: x86_64-oe-linux-gcc  -m64 -DNDEBUG -fno-inline
> > > --sysroot=/OE/shr-core/tmp-eglibc/sysroots/qemux86-64 -c -O2 -pipe -g
> > > -feliminate-unused-debug-types  -I/usr/include/ncursesw conftest.c >&5
> > > cc1: warning: include location "/usr/include/ncursesw" is unsafe for
> > > cross-compilation [-Wpoison-system-directories]
> > > conftest.c:63:19: fatal error: conio.h: No such file or directory
> > > #include <conio.h>
> > >                   ^
> > > compilation terminated.
> > 
> > I think you might have been testing older pull tree since. Try it with todays tree
> > I believe this issue was fixed some time ago already.
> 
> You're right I was missing that commit for some reason.
> 
> > 
> > > 
> > > 
> > > and from test-dependencies.sh run there is undeterministic lzma
> > > dependency:
> > > 
> > > WARN: packages/armv5te-oe-linux-gnueabi/python3/python3-misc/latest lost dependency on  liblzma
> > > 
> > 
> > I have aded a patch on top of pull tree to fix it.
> 
> python3_3.3.2.bb: Add liblzma to RDEPENDS for python3-misc
> 
> doesn't look like right fix, something in python3-misc is linked to
> liblzma
> 
> DEBUG: calculating shlib requirements for python3-misc
> DEBUG: python3-misc: Dependency libpython3.3m.so.1.0 requires package libpython3
> DEBUG: python3-misc: Dependency libc.so.6 requires package eglibc
> DEBUG: python3-misc: Dependency liblzma.so.5 requires package liblzma
> DEBUG: python3-misc: Dependency libbz2.so.0 requires package libbz2
> DEBUG: python3-misc: Dependency libcrypt.so.1 requires package eglibc
> 
> so you should add it to DEPENDS not RDEPENDS (Adding it to RDEPENDS
> hides this message from test-dependencies.sh, but support for lzma in
> python3-misc would stay nondeterministic).

That something is python lzmamodule packaged in python3-misc :)

setup.py:
        # LZMA compression support.
        if self.compiler.find_library_file(lib_dirs, 'lzma'):
            exts.append( Extension('_lzma', ['_lzmamodule.c'],
                                   libraries = ['lzma']) )
        else:
            missing.append('_lzma')

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130827/21a396c7/attachment-0002.sig>


More information about the Openembedded-core mailing list