From d7cbcfb9ebd673201402a31f410a9946ff2aadd1 Mon Sep 17 00:00:00 2001 From: Ludovic Jozeau Date: Wed, 23 Apr 2025 13:12:05 +0200 Subject: [PATCH] python3: move python link to its own python3-as-python package the FILES is overriden in the python anonymous function for dynamic packages (python3-core) causing the following error: ```log ERROR: python3-3.12.8-r0 do_package: QA Issue: python3: Files/directories were installed but not shipped in any package: /usr/bin/python Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. python3: 1 installed and not shipped files. [installed-vs-shipped] ERROR: python3-3.12.8-r0 do_package: Fatal QA errors were found, failing task. ``` it is safer to make a new package split and add a RRECOMMENDS to python-core on it fixes: https://codeberg.org/flk/meta-wayland/issues/14 Signed-off-by: Ludovic Jozeau --- recipes-devtools/python/python3_%.bbappend | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-devtools/python/python3_%.bbappend b/recipes-devtools/python/python3_%.bbappend index 76f1f38..1216b98 100644 --- a/recipes-devtools/python/python3_%.bbappend +++ b/recipes-devtools/python/python3_%.bbappend @@ -2,5 +2,7 @@ do_install:append:class-target() { ln -sf ${bindir}/python3 ${D}${bindir}/python } -FILES:${PN}-core:class-target += "${bindir}/python" +PACKAGES:prepend:class-target = "${PN}-as-python " +FILES:${PN}-as-python = "${bindir}/python" +RRECOMMENDS:${PN}-core:append:class-target = " ${PN}-as-python"