librsvg: don't try to run target code at build time
PATCH 1/2 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.
--- .../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
meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch new file +40 -0
@@ -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] +Signed-off-by: Ross Burton <[email protected]> +--- + gdk-pixbuf-loader/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/gdk-pixbuf-loader/Makefile.am b/gdk-pixbuf-loader/Makefile.am +index 44df9c6c..fb417d24 100644 +--- a/gdk-pixbuf-loader/Makefile.am ++++ b/gdk-pixbuf-loader/Makefile.am +@@ -30,6 +30,7 @@ if PLATFORM_WIN32 + libpixbufloader_svg_la_LDFLAGS += -no-undefined + endif + ++if !CROSS_COMPILING + noinst_PROGRAMS = rsvg-loader + + rsvg_loader_SOURCES = \ +@@ -52,6 +53,7 @@ EXTRA_rsvg_loader_DEPENDENCIES = libpixbufloader-svg.la gdk-pixbuf-loaders + + gdk-pixbuf-loaders: Makefile + $(AM_V_GEN) ( $(GDK_PIXBUF_QUERYLOADERS) ./libpixbufloader-svg.la && GDK_PIXBUF_MODULEDIR=$(gdk_pixbuf_moduledir) $(GDK_PIXBUF_QUERYLOADERS)) > gdk-pixbuf.loaders 2>/dev/null ++endif + + if CROSS_COMPILING + RUN_QUERY_LOADER_TEST=false +-- +2.34.1 +
meta/recipes-gnome/librsvg/librsvg_2.57.1.bb +1 -0
@@ -21,6 +21,7 @@ require ${BPN}-crates.inc SRC_URI += " \ file://0001-Makefile.am-pass-rust-target-to-cargo-also-when-not-.patch \ + file://disable-rsvg-loader-test.patch \ " SRC_URI[archive.sha256sum] = "074671a3ed6fbcd67cae2a40e539107f4f097ca8a4ab1a894c05e2524ff340ef"
Signature · 1 line
2.34.1
PATCH 2/2 librsvg: upgrade to 2.57.3
This is the latest point release in the 2.57.3 stable series.
Version 2.57.3
==============
- #1062 - Limit numOctaves in feTurbulence to avoid unbounded CPU consumption.
- #1064 - Don't panic when a :lang selector has an argument that is not a language-range (Lukáš Tyrychtr).
Version 2.57.2
==============
- #1059 - Don't panic when rendering feOffset with a too-large offset.
- #1060 - Don't panic when a decoded image has dimensions of zero.
---
...Makefile.am-pass-rust-target-to-cargo-also-when-not-.patch | 4 ++--
.../librsvg/{librsvg_2.57.1.bb => librsvg_2.57.3.bb} | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
rename meta/recipes-gnome/librsvg/{librsvg_2.57.1.bb => librsvg_2.57.3.bb} (97%)meta/recipes-gnome/librsvg/librsvg/0001-Makefile.am-pass-rust-target-to-cargo-also-when-not-.patch +2 -2
@@ -1,4 +1,4 @@ -From d0f4f5b3ae900b9d092407e29b5372d93910c18c Mon Sep 17 00:00:00 2001 +From eee6c251bceb235912887a54c58a2fc2d4450216 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <[email protected]> Date: Tue, 21 Sep 2021 16:27:14 +0200 Subject: [PATCH] Makefile.am: pass rust target to cargo also when not cross
@@ -28,7 +28,7 @@ index 2a89954..4e296d3 100644 CARGO_VERBOSE = $(cargo_verbose_$(V)) cargo_verbose_ = $(cargo_verbose_$(AM_DEFAULT_VERBOSITY)) diff --git a/configure.ac b/configure.ac -index 42215cf..2499c96 100644 +index 480e27e..587c4db 100644 --- a/configure.ac +++ b/configure.ac @@ -292,9 +292,7 @@ AC_ARG_VAR(RUST_TARGET, [Set rust target (default=$host)])
meta/recipes-gnome/librsvg/librsvg_2.57.3.bb renamed from meta/recipes-gnome/librsvg/librsvg_2.57.1.bb +1 -1
@@ -24,7 +24,7 @@ SRC_URI += " \ file://disable-rsvg-loader-test.patch \ " -SRC_URI[archive.sha256sum] = "074671a3ed6fbcd67cae2a40e539107f4f097ca8a4ab1a894c05e2524ff340ef" +SRC_URI[archive.sha256sum] = "1b2267082c0b77ef93b15747a5c754584eb5886baf2d5a08011cde0659c2c479" UPSTREAM_CHECK_REGEX = "librsvg-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"
Signature · 1 line
2.34.1
Hi Ross,
Quoted 19 lines · Ross Burton via lists.openembedded.org
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.patchmeta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch new file +2
-0@@ -0,0 +1,40 @@ +From df94cfa4a637c229fef32c349b5c2dfee2dca3fc Mon Sep 17 00:00:00 2001 +From: Ross Burton <[email protected]>
meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch line 12
Quoted 10 lines
meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch new file +10
-0+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
Quoted 25 lines · Quentin Schulz
Hi Ross,
Quoted 21 lines · Ross Burton via lists.openembedded.org
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.patchmeta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch new file +6
-0@@ -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
Quoted 8 lines
meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch line 12
Quoted 6 lines
meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch new file +6
-0+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?
I shall let you know when the upgrade to the Meson release is done :)
Ross