Compare commits

...

2 Commits

Author SHA1 Message Date
Markus Volk
e7514f45ef Merge pull request 'python3: move python link to its own python3-as-python package' (#15) from ludovic_jo/meta-wayland:master into master
Reviewed-on: https://codeberg.org/flk/meta-wayland/pulls/15
2025-04-24 03:07:12 +00:00
Ludovic Jozeau
68de893fbf
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 <ludovic.jozeau@scle.fr>
2025-04-23 13:12:05 +02:00

View File

@ -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"