Skip to contentSkip to conversation

Fix Python large file file support on 32-bit systems

PATCH New Paul Eggleton 1 participant 2 messages Oct 14, 2014

lore
Share & tools
lore
#0 lore raw

cover Fix Python large file file support on 32-bit systems

The following change since commit fcbd1b19383daf5e160a864df1418130da01be28:

build-appliance-image: Update to dizzy head revision (2014-10-11 08:11:11 +0100)

is available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib paule/python-largefile
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/python-largefile

Paul Eggleton (1):
python: force off_t size to 8 to enable large file support

 meta/recipes-devtools/python/python_2.7.3.bb | 3 +++
 1 file changed, 3 insertions(+)
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 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].

---
 meta/recipes-devtools/python/python_2.7.3.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/python/python_2.7.3.bb +3 -0
index d93bc64..cc92ebc 100644
@@ -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"
Signature · 1 line
1.9.3