diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-06-27 17:23:21 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-08-26 05:18:44 -0700 |
| commit | a1bf21188062fdf2b20e9ea2d48192c2dd519c54 (patch) | |
| tree | ed19c853f81ad94903d5f963141e6d07b84b2fbb /meta | |
| parent | 43997a8cf88e3b1edf138e3cd5ff42603bb1b6bf (diff) | |
| download | poky-a1bf21188062fdf2b20e9ea2d48192c2dd519c54.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: 310e9387a7a89b8a2a01ecc9fe889ede16622d66)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 78667e67a77df39c2af417e56ebf480962ff2e42)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-gnome/librsvg/librsvg/disable-rsvg-loader-test.patch | 40 | ||||
| -rw-r--r-- | meta/recipes-gnome/librsvg/librsvg_2.57.1.bb | 1 |
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 @@ | |||
| 1 | From df94cfa4a637c229fef32c349b5c2dfee2dca3fc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ross Burton <ross.burton@arm.com> | ||
| 3 | Date: Thu, 27 Jun 2024 17:09:11 +0100 | ||
| 4 | Subject: [PATCH] Don't build rsvg-loader in cross builds | ||
| 5 | |||
| 6 | This binary is a non-installed test binary that isn't any use in cross builds, and | ||
| 7 | causes problems because it generates a gdk-pixbuf loader cache at build time using | ||
| 8 | a mix of host and target libraries. | ||
| 9 | |||
| 10 | As we don't install the binary, we can just not build it. | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [upstream has moved to Meson] | ||
| 13 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 14 | --- | ||
| 15 | gdk-pixbuf-loader/Makefile.am | 2 ++ | ||
| 16 | 1 file changed, 2 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/gdk-pixbuf-loader/Makefile.am b/gdk-pixbuf-loader/Makefile.am | ||
| 19 | index 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 | -- | ||
| 39 | 2.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 | ||
| 22 | SRC_URI += " \ | 22 | SRC_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 | ||
| 26 | SRC_URI[archive.sha256sum] = "074671a3ed6fbcd67cae2a40e539107f4f097ca8a4ab1a894c05e2524ff340ef" | 27 | SRC_URI[archive.sha256sum] = "074671a3ed6fbcd67cae2a40e539107f4f097ca8a4ab1a894c05e2524ff340ef" |
