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-10-14 10:20:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-18 16:14:03 +0200
commitf95d3fce42fe1021d6fb373b6d7b6fe1e84a752b (patch)
tree87ff709ae07857cb983a8e3a6aa41f53702260ba /meta/recipes-devtools/python/python_2.7.3.bb
parent9c218a319e006b8edf2f1ef9eada9b5611b85e12 (diff)
downloadpoky-f95d3fce42fe1021d6fb373b6d7b6fe1e84a752b.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 rev: a8216030ee6c65531de8fbf3eed878a345a94edc) 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 d93bc64dbf..cc92ebc6a4 100644
--- a/meta/recipes-devtools/python/python_2.7.3.bb
+++ b/meta/recipes-devtools/python/python_2.7.3.bb
@@ -49,6 +49,9 @@ inherit autotools multilib_header python-dir pythonnative
49TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__" 49TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"
50TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__" 50TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__"
51 51
52# The following is a hack until we drop ac_cv_sizeof_off_t from site files
53EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'ac_cv_sizeof_off_t=8', '', d)}"
54
52do_configure_prepend() { 55do_configure_prepend() {
53 rm -f ${S}/Makefile.orig 56 rm -f ${S}/Makefile.orig
54 autoreconf -Wcross --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf" 57 autoreconf -Wcross --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf"