From: Paul Eggleton Date: Tue, 14 Oct 2014 09:20:24 +0000 (+0100) Subject: python: force off_t size to 8 to enable large file support X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~32208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8216030ee6c65531de8fbf3eed878a345a94edc;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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]. Signed-off-by: Paul Eggleton Signed-off-by: Ross Burton --- diff --git a/meta/recipes-devtools/python/python_2.7.3.bb b/meta/recipes-devtools/python/python_2.7.3.bb index d93bc64dbf0..cc92ebc6a41 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 TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__" TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__" +# The following is a hack until we drop ac_cv_sizeof_off_t from site files +EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'ac_cv_sizeof_off_t=8', '', d)}" + do_configure_prepend() { rm -f ${S}/Makefile.orig autoreconf -Wcross --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf"