@@ -65,6 +65,12 @@ FONTCONFIG_CACHE_DIR ?= "${localstatedir}/cache/fontconfig"
# /usr/share/fonts is already included by default (you can change it with --with-default-fonts)
FONTCONFIG_FONT_DIRS ?= "no"
-EXTRA_OEMESON = " -Ddoc=disabled -Ddefault-fonts-dirs=${datadir}/fonts -Dcache-dir=${FONTCONFIG_CACHE_DIR} -Dadditional-fonts-dirs=${FONTCONFIG_FONT_DIRS}"
+EXTRA_OEMESON = "\
+ -Dadditional-fonts-dirs=${FONTCONFIG_FONT_DIRS} \
+ -Dcache-dir=${FONTCONFIG_CACHE_DIR} \
+ -Ddefault-fonts-dirs=${datadir}/fonts \
+ -Ddoc=disabled \
+ -Dtests=disabled \
+"
BBCLASSEXTEND = "native nativesdk"
The tests require json-c library which is not explicit in build dependencies: ../sources/fontconfig-2.17.1/test/test-conf.c:27:10: fatal error: json.h: No such file or directory 27 | #include <json.h> The tests are not used so just disable them. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> --- meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) v2: disabled tests completely as suggested by Alex v1: https://lists.openembedded.org/g/openembedded-core/topic/patch_fontconfig_disable/115409591