[meta-lts-mixins][scarthgap/rust][PATCH 10/35] librsvg: move symlink file for ptest in package librsvg-ptest

Scott Murray <[email protected]> Fri, 31 Jul 2026 07:32:40 -0400
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <8b3b5c89d316cbd6ca3fdc99b3a9261943092a99.1785496469.git.scott.murray@konsulko.com>
From: Changqing Li <[email protected]>

In order to make ptest can find needed data, a symlink is created:
/usr/lib64/librsvg/rsvg -> ptest

package this symlink file in package librsvd-ptest, this can avoid
there is a dead link when ptest-pkgs is not installed.

Signed-off-by: Changqing Li <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
(adapted from oe-core commit 512a71ea5d41bdca5cbf78fd65f5dcd218076b27)
Signed-off-by: Scott Murray <[email protected]>
---
 recipes-gnome/librsvg/librsvg_2.61.3.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-gnome/librsvg/librsvg_2.61.3.bb b/recipes-gnome/librsvg/librsvg_2.61.3.bb
index a12ffc3..419d5cc 100644
--- a/recipes-gnome/librsvg/librsvg_2.61.3.bb
+++ b/recipes-gnome/librsvg/librsvg_2.61.3.bb
@@ -103,6 +103,7 @@ FILES:rsvg = "${bindir}/rsvg* \
 	      ${datadir}/themes"
 FILES:librsvg-gtk = "${libdir}/gdk-pixbuf-2.0/*/*/*.so \
                      ${datadir}/thumbnailers/librsvg.thumbnailer"
+FILES:${PN}-ptest += "${libdir}/${BPN}/rsvg"
 RRECOMMENDS:librsvg-gtk = "gdk-pixbuf-bin"
 
 PIXBUF_PACKAGES = "librsvg-gtk"
-- 
2.55.0