| Message ID | 20261125160821.3028875-6-tgamblin@baylibre.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | add hyperfine recipe, improve ptest-cargo.bbclass | expand |
diff --git a/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb b/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb index 6e88270075..a6fd4cea28 100644 --- a/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb +++ b/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb @@ -87,7 +87,7 @@ do_install_ptest:append() { # the api tests look for the required files in rsvg folder, so simulate it # with a symlink that points to the current folder ln -s . ${D}${PTEST_PATH}/rsvg - ln -s ptest ${D}${PTEST_PATH}/../rsvg + ln -snf ptest ${D}${PTEST_PATH}/../rsvg } PACKAGES =+ "librsvg-gtk rsvg"
do_install_ptest:append() for librsvg was creating a link for 'ptest' outside of PTEST_PATH, so it wasn't being removed during cleanup and would remain present on rebuild. This created a self-referencing link, leading to errors like: | 1509: follow_symlinks=follow_symlinks) | 1510: | 1511:def get_terminal_size(fallback=(80, 24)): | 1512: """Get the size of the terminal window. |Exception: OSError: [Errno 40] Too many levels of symbolic links: '/home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/image/usr/lib/librsvg/ptest/ptest' | |ERROR: Logfile of failure stored in: /home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/temp/log.do_install_ptest_base.2703564 |ERROR: Task (/home/tgamblin/workspace/ypbuilds/riscv-maint/layers/openembedded-core/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb:do_install_ptest_base) failed with exit code '1' Treat the link name as a normal file if it's a directory ('-n'; i.e. don't follow the link) and force-overwrite it ('-f') so that the link gets recreated on subsequent runs. AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> --- meta/recipes-gnome/librsvg/librsvg_2.63.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)