summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-06-27 17:23:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-01 13:56:02 +0100
commit6a20e23ad98a4af05946b3af8ce63ba0e9aeff2e (patch)
tree3645bbdda2ba46b2e0b62c765277b47767ff4679 /meta/recipes-gnome
parent4b160cb6806f1abd9598ad26c888c3e4dabbf557 (diff)
downloadpoky-6a20e23ad98a4af05946b3af8ce63ba0e9aeff2e.tar.gz
librsvg: don't try to run target code at build time
The rsvg-loader test binary isn't installed but building it causes a mix of build host and target code to be executed. As we don't install the test, don't build it. (From OE-Core rev: 78667e67a77df39c2af417e56ebf480962ff2e42) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome')
-rw-r--r--meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch40
-rw-r--r--meta/recipes-gnome/librsvg/librsvg_2.57.1.bb1
2 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch b/meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch
new file mode 100644
index 0000000000..e56772a7e2
--- /dev/null
+++ b/meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch
@@ -0,0 +1,40 @@
1From df94cfa4a637c229fef32c349b5c2dfee2dca3fc Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Thu, 27 Jun 2024 17:09:11 +0100
4Subject: [PATCH] Don't build rsvg-loader in cross builds
5
6This binary is a non-installed test binary that isn't any use in cross builds, and
7causes problems because it generates a gdk-pixbuf loader cache at build time using
8a mix of host and target libraries.
9
10As we don't install the binary, we can just not build it.
11
12Upstream-Status: Inappropriate [upstream has moved to Meson]
13Signed-off-by: Ross Burton <ross.burton@arm.com>
14---
15 gdk-pixbuf-loader/Makefile.am | 2 ++
16 1 file changed, 2 insertions(+)
17
18diff --git a/gdk-pixbuf-loader/Makefile.am b/gdk-pixbuf-loader/Makefile.am
19index 44df9c6c..fb417d24 100644
20--- a/gdk-pixbuf-loader/Makefile.am
21+++ b/gdk-pixbuf-loader/Makefile.am
22@@ -30,6 +30,7 @@ if PLATFORM_WIN32
23 libpixbufloader_svg_la_LDFLAGS += -no-undefined
24 endif
25
26+if !CROSS_COMPILING
27 noinst_PROGRAMS = rsvg-loader
28
29 rsvg_loader_SOURCES = \
30@@ -52,6 +53,7 @@ EXTRA_rsvg_loader_DEPENDENCIES = libpixbufloader-svg.la gdk-pixbuf-loaders
31
32 gdk-pixbuf-loaders: Makefile
33 $(AM_V_GEN) ( $(GDK_PIXBUF_QUERYLOADERS) ./libpixbufloader-svg.la && GDK_PIXBUF_MODULEDIR=$(gdk_pixbuf_moduledir) $(GDK_PIXBUF_QUERYLOADERS)) > gdk-pixbuf.loaders 2>/dev/null
34+endif
35
36 if CROSS_COMPILING
37 RUN_QUERY_LOADER_TEST=false
38--
392.34.1
40
diff --git a/meta/recipes-gnome/librsvg/librsvg_2.57.1.bb b/meta/recipes-gnome/librsvg/librsvg_2.57.1.bb
index 4b52d4062b..ceaf1dfc00 100644
--- a/meta/recipes-gnome/librsvg/librsvg_2.57.1.bb
+++ b/meta/recipes-gnome/librsvg/librsvg_2.57.1.bb
@@ -21,6 +21,7 @@ require ${BPN}-crates.inc
21 21
22SRC_URI += " \ 22SRC_URI += " \
23 file://0001-Makefile.am-pass-rust-target-to-cargo-also-when-not-.patch \ 23 file://0001-Makefile.am-pass-rust-target-to-cargo-also-when-not-.patch \
24 file://disable-rsvg-loader-test.patch \
24 " 25 "
25 26
26SRC_URI[archive.sha256sum] = "074671a3ed6fbcd67cae2a40e539107f4f097ca8a4ab1a894c05e2524ff340ef" 27SRC_URI[archive.sha256sum] = "074671a3ed6fbcd67cae2a40e539107f4f097ca8a4ab1a894c05e2524ff340ef"