From 6f9dab80db9e5f3deb2c21cd1518343a145cf0f9 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Thu, 11 Apr 2013 09:58:05 +0200 Subject: [PATCH] - add files for python pkg. --- .../python/setup_py_skip_cross_import_check.patch | 27 ++++++++++++++++++++++ meta-tizen-ivi/recipes-tizen/vconf/vconf.inc | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta-tizen-ivi/recipes-tizen/python/python/setup_py_skip_cross_import_check.patch diff --git a/meta-tizen-ivi/recipes-tizen/python/python/setup_py_skip_cross_import_check.patch b/meta-tizen-ivi/recipes-tizen/python/python/setup_py_skip_cross_import_check.patch new file mode 100644 index 0000000..6ccdb94 --- /dev/null +++ b/meta-tizen-ivi/recipes-tizen/python/python/setup_py_skip_cross_import_check.patch @@ -0,0 +1,27 @@ +This patch skips over the 'import check' setup.py does when building +extensions. This generally won't work when cross-compiling. + +Upstream-Status: Inappropriate [embedded-specific] + +Signed-off-by: Tom Zanussi + +Index: Python-2.7.2/setup.py +=================================================================== +--- Python-2.7.2.orig/setup.py 2011-11-04 16:46:34.553796410 -0500 ++++ Python-2.7.2/setup.py 2011-11-04 16:59:49.692802313 -0500 +@@ -287,6 +287,15 @@ + (ext.name, sys.exc_info()[1])) + self.failed.append(ext.name) + return ++ ++ # If we're cross-compiling, we want to skip the import check ++ # i.e. we shouldn't be dynamically loading target shared libs ++ if os.environ.get('CROSS_COMPILE') is not None: ++ self.announce( ++ 'WARNING: skipping import check for cross-compiled "%s"' % ++ ext.name) ++ return ++ + # Workaround for Mac OS X: The Carbon-based modules cannot be + # reliably imported into a command-line Python + if 'Carbon' in ext.extra_link_args: diff --git a/meta-tizen-ivi/recipes-tizen/vconf/vconf.inc b/meta-tizen-ivi/recipes-tizen/vconf/vconf.inc index 1832ef7..47075e7 100644 --- a/meta-tizen-ivi/recipes-tizen/vconf/vconf.inc +++ b/meta-tizen-ivi/recipes-tizen/vconf/vconf.inc @@ -1,7 +1,7 @@ DESCRIPTION = "Configuration system library" HOMEPAGE = "http://nohomepage.org" SECTION = "System/Libraries" -LICENSE = "Apache License, Version 2.0" +LICENSE = "Apache" PROVIDES = "" -- 2.7.4