Hi Ross,

On 6/27/24 7:23 PM, Ross Burton via lists.openembedded.org wrote:
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.

Signed-off-by: Ross Burton <[email protected]>
---
  .../librsvg/disable-rsvg-loader-test.patch    | 40 +++++++++++++++++++
  meta/recipes-gnome/librsvg/librsvg_2.57.1.bb  |  1 +
  2 files changed, 41 insertions(+)
  create mode 100644 
meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch

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 00000000000..e56772a7e2f
--- /dev/null
+++ b/meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch
@@ -0,0 +1,40 @@
+From df94cfa4a637c229fef32c349b5c2dfee2dca3fc Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Thu, 27 Jun 2024 17:09:11 +0100
+Subject: [PATCH] Don't build rsvg-loader in cross builds
+
+This binary is a non-installed test binary that isn't any use in cross builds, 
and
+causes problems because it generates a gdk-pixbuf loader cache at build time 
using
+a mix of host and target libraries.
+
+As we don't install the binary, we can just not build it.
+
+Upstream-Status: Inappropriate [upstream has moved to Meson]

Will we have the same issue once we bump librsvg to a version that uses Meson? If yes, it would be a good opportunity to fix it now in Meson too so that we can benefit from the moment we migrate to the Meson-able release?

Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201282): 
https://lists.openembedded.org/g/openembedded-core/message/201282
Mute This Topic: https://lists.openembedded.org/mt/106913110/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to