Message ID | 20250924103729.111501-1-mikko.rapeli@linaro.org |
---|---|
State | New |
Headers | show |
Series | fontconfig: disable tests on native builds | expand |
On Wed, 24 Sept 2025 at 12:38, Mikko Rapeli via lists.openembedded.org
<mikko.rapeli=linaro.org@lists.openembedded.org> wrote:
> +EXTRA_OEMESON:append:class-native = " -Dtests=disabled"
This should be unconditional to avoid non-deterministic configuration
in target builds.
Alex
diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb index 22bdfb139c..54a4c33e62 100644 --- a/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb +++ b/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb @@ -66,5 +66,6 @@ FONTCONFIG_CACHE_DIR ?= "${localstatedir}/cache/fontconfig" 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:append:class-native = " -Dtests=disabled" BBCLASSEXTEND = "native nativesdk"
The tests require json library which is not 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 will not be run in native build so just disable them. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> --- meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb | 1 + 1 file changed, 1 insertion(+)