Patchwork [4/4] fontconfig: enable 64 bit file support

login
register
mail settings
Submitter Saul Wold
Date June 6, 2014, 12:09 a.m.
Message ID <1402013345-24930-5-git-send-email-sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/73353/
State Accepted
Commit 5a49a24d35794fcf9e3895469a67db992a52305e
Headers show

Comments

Saul Wold - June 6, 2014, 12:09 a.m.
When running 32bit code on a large filessytem with 64bit inodes, the
fontcache was not being created correctly because an EOVERFLOW was being
returned from the fstat when reading the 64 inode on a 32bit system.

The fontcache is created at rootfs time on the host system via qemu.

[YOCTO #6338]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb
index 797b321..4fa58ab 100644
--- a/meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb
+++ b/meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb
@@ -38,5 +38,7 @@  DEBIAN_NOAUTONAME_fontconfig-utils = "1"
 inherit autotools pkgconfig
 
 EXTRA_OECONF = " --disable-docs --with-default-fonts=${datadir}/fonts"
+TARGET_CPPFLAGS += "-D_FILE_OFFSET_BITS=64"
+
 
 BBCLASSEXTEND = "native"