package/gdk-pixbuf: fix test compilation (disable tests)
PATCH 1/1 package/gdk-pixbuf: fix test compilation (disable tests)
Not needed + breaks compilation on some platforms.
Patch is part of 2.42.9, so can be dropped with the next minor/major bump.
https://github.com/GNOME/gdk-pixbuf/commit/801eef111df624f4377baed9a90c94b6a2d4340c
``` [179/246] Generating tests/resources.c with a custom command FAILED: tests/resources.c /buildroot/output/host/bin/python3 /buildroot/output/build/host-gdk-pixbuf-2.42.8/build-aux/gen-resources.py --glib-compile-resources=/buildroot/output/host/bin/glib-compile-resources --pixdata=/buildroot/output/build/host-gdk-pixbuf-2.42.8/build/gdk-pixbuf/gdk-pixbuf-pixdata --loaders=/buildroot/output/build/host-gdk-pixbuf-2.42.8/build/gdk-pixbuf/loaders.cache --sourcedir=/buildroot/output/build/host-gdk-pixbuf-2.42.8/tests --source ../tests/resources.gresource.xml tests/resources.c failed to load "/buildroot/output/build/host-gdk-pixbuf-2.42.8/tests/icc-profile.png": Couldn?t recognize the image file format for file ?/buildroot/output/build/host-gdk-pixbuf-2.42.8/tests/icc-profile.png? ../tests/resources.gresource.xml: Child process exited with code 1. ```
Signed-off-by Thomas Devoogdt <[email protected]>
--- .../0001-meson-add-build_tests-option.patch | 53 +++++++++++++++++++ package/gdk-pixbuf/gdk-pixbuf.mk | 6 ++- 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 package/gdk-pixbuf/0001-meson-add-build_tests-option.patch
package/gdk-pixbuf/0001-meson-add-build_tests-option.patch new file +53 -0
@@ -0,0 +1,53 @@ +From 5554eeeec41c5b39b0041fa18b27a39fbc3e2b6a Mon Sep 17 00:00:00 2001 +From: Jason Francis <[email protected]> +Date: Tue, 10 May 2022 11:53:15 -0400 +Subject: [PATCH] meson: add build_tests option + +(cherry picked from commit 801eef111df624f4377baed9a90c94b6a2d4340c) +Signed-off-by: Thomas Devoogdt <[email protected]> +--- + meson.build | 5 ++++- + meson_options.txt | 4 ++++ + 2 files changed, 8 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index fe4bfaad4..db9a390e8 100644 +--- a/meson.build ++++ b/meson.build +@@ -414,7 +414,9 @@ subdir('gdk-pixbuf') + subdir('po') + + if not meson.is_cross_build() +- subdir('tests') ++ if get_option('tests') ++ subdir('tests') ++ endif + subdir('thumbnailer') + endif + +@@ -446,6 +448,7 @@ summary('Introspection', build_gir, section: 'Build') + summary('Documentation', build_docs, section: 'Build') + summary('Manual pages', get_option('man'), section: 'Build') + summary('Relocatable', get_option('relocatable'), section: 'Build') ++summary('Build tests', get_option('tests'), section: 'Build') + summary('Installed tests', get_option('installed_tests'), section: 'Build') + + summary('prefix', gdk_pixbuf_prefix, section: 'Directories') +diff --git a/meson_options.txt b/meson_options.txt +index c12179c5e..0ea94eb47 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -41,6 +41,10 @@ option('native_windows_loaders', + description: 'Use Windows system components to handle BMP, EMF, GIF, ICO, JPEG, TIFF and WMF images, overriding jpeg and tiff. To build this into gdk-pixbuf, pass in windows" with the other loaders to build in or use "all" with the builtin_loaders option', + type: 'boolean', + value: false) ++option('tests', ++ description: 'Build the test suite', ++ type: 'boolean', ++ value: true) + option('installed_tests', + description: 'Install the test suite', + type: 'boolean', +-- +2.37.2 +
package/gdk-pixbuf/gdk-pixbuf.mk +4 -2
@@ -20,14 +20,16 @@ HOST_GDK_PIXBUF_DEPENDENCIES = host-libpng host-pkgconf host-libglib2 GDK_PIXBUF_CONF_OPTS = \ -Dgio_sniffing=false \ -Dinstalled_tests=false \ - -Dman=false + -Dman=false \ + -Dtests=false HOST_GDK_PIXBUF_CONF_OPTS = \ -Dgio_sniffing=false \ -Dinstalled_tests=false \ -Dintrospection=disabled \ -Drelocatable=true \ - -Dman=false + -Dman=false \ + -Dtests=false ifeq ($(BR2_STATIC_LIBS),y) GDK_PIXBUF_CONF_OPTS += -Dbuiltin_loaders=all
Signature · 6 lines
2.37.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot