Skip to contentSkip to conversation

package/gdk-pixbuf: fix test compilation (don't build the test suite)

PATCH In review Thomas Devoogdt 2 participants 2 messages Sep 13, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gdk-pixbuf: fix test compilation (don't build the test suite)

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.
```
---
 .../0001-meson-add-build_tests-option.patch   | 53 +++++++++++++++++++
 package/gdk-pixbuf/gdk-pixbuf.mk              |  2 +
 2 files changed, 55 insertions(+)
 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
new file mode 100644
index 0000000000..8a87518d13
@@ -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 +2 -0
index 57e8bbd511..3ce0470540 100644
@@ -19,11 +19,13 @@ HOST_GDK_PIXBUF_DEPENDENCIES = host-libpng host-pkgconf host-libglib2
 
 GDK_PIXBUF_CONF_OPTS = \
 	-Dgio_sniffing=false \
+	-Dtests=false \
 	-Dinstalled_tests=false \
 	-Dman=false
 
 HOST_GDK_PIXBUF_CONF_OPTS = \
 	-Dgio_sniffing=false \
+	-Dtests=false \
 	-Dinstalled_tests=false \
 	-Dintrospection=disabled \
 	-Drelocatable=true \
Signature · 6 lines
2.37.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Devoogdt <[email protected]> writes:

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

What tree is this against? We are already using 2.42.9 (since the merge of next to master after the 2022.08 release).

Patches should be against current master.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot