coreos-doc: use python3-native instead of python3 from the host

This fix the recipes by ihneriting the python3native class. DEPENDS
was also fix, as we need the native version of the needed package
and not the one from the target. It was previously only building
because bitbake use by default the host python3 and on my computer
I was having all the deps locally installed.
This commit is contained in:
Samuel Dolt 2022-10-20 13:05:45 +02:00
parent 8220408791
commit 3b30978021
2 changed files with 17 additions and 4 deletions

View File

@ -3,11 +3,24 @@ SECTION = "devtool"
LICENSE = "CLOSED"
PV = "0.0.1+git${METADATA_REVISION}"
# The documentation is embedded inside the CoreOS repository structure, so we
# use externsrc to built it
inherit externalsrc
EXTERNALSRC := "${COREOS_ROOT}/documentation"
# This recipe only produce an HTML output, so we need to tell bitbake that it's
# doesn't depends on the target architecture
inherit allarch
EXTERNALSRC := "${COREOS_ROOT}/documentation"
DEPENDS += "python3-sphinx python3-sphinx-rtd-theme"
# By default bitbake has the host native python3 in the path, not the one built
# by bitbake, but we can change that by ihneriting python3native
inherit python3native
# This recipes doesn't need a compiler, so we prevent the base.bbclass to add
# the default set of deps by settings the following variable to 1:
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS += "python3-sphinx-native python3-sphinx-rtd-theme-native"
do_compile() {
python3 -m sphinx.cmd.build -b html ${S} ${B}