summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python_2.7.3.bb
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-11-05 21:08:50 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-06 11:40:38 +0000
commit19dc8bf950ae2dcca3e8165eaf122d3c1cb7006e (patch)
treeac546641ff6993ba5c1bfafcccaf84d50f848d90 /meta/recipes-devtools/python/python_2.7.3.bb
parent6c576a4ac85307a5c851bee91a567cae3ea5a43b (diff)
downloadpoky-19dc8bf950ae2dcca3e8165eaf122d3c1cb7006e.tar.gz
python: force off_t size to 8 to enable large file support
If DISTRO_FEATURES contains "largefile", force the size of off_t to 8 as a workaround for having ac_cv_sizeof_off_t=4 on 32-bit systems. In future we will likely drop the value from the site file, but for now this is a slightly safer fix. Fixes [YOCTO #6813]. (From OE-Core master rev: a8216030ee6c65531de8fbf3eed878a345a94edc) (From OE-Core rev: 94483eff5d0858ef1b5a8850268aa6a7bc6e6463) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python_2.7.3.bb')
-rw-r--r--meta/recipes-devtools/python/python_2.7.3.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python_2.7.3.bb b/meta/recipes-devtools/python/python_2.7.3.bb
index 0d641720f1..5270df9041 100644
--- a/meta/recipes-devtools/python/python_2.7.3.bb
+++ b/meta/recipes-devtools/python/python_2.7.3.bb
@@ -47,6 +47,9 @@ inherit autotools multilib_header python-dir pythonnative
47TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__" 47TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"
48TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__" 48TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__"
49 49
50# The following is a hack until we drop ac_cv_sizeof_off_t from site files
51EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'ac_cv_sizeof_off_t=8', '', d)}"
52
50do_configure_prepend() { 53do_configure_prepend() {
51 rm -f ${S}/Makefile.orig 54 rm -f ${S}/Makefile.orig
52 autoreconf -Wcross --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf" 55 autoreconf -Wcross --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf"