diff mbox series

[v2] fontconfig: disable tests

Message ID 20250924113214.122362-1-mikko.rapeli@linaro.org
State Accepted, archived
Commit 0d039d959c51f3402631014139c4d6208416b1b7
Headers show
Series [v2] fontconfig: disable tests | expand

Commit Message

Mikko Rapeli Sept. 24, 2025, 11:32 a.m. UTC
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
diff mbox series

Patch

diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb
index 22bdfb139c..de2642bdd1 100644
--- a/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb
+++ b/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb
@@ -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"