Ubuntu 22.04.2 LTS. I'm trying to execute bitbake <image> from a Jenkins job. Build fails with Error:
ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories: Your Python 3 is not a full install. Please install the module distutils.sysconfig (see the Getting Started guide for further information). I tried to install distutils module (tried approaches from here) but got dependency issues that was not able to fix, so as alternative solution I want to disable the sanity check
This is how sanity.conf looks currently:
# Sanity checks for common user misconfigurations # # See sanity.bbclass # # Expert users can confirm their sanity with "touch conf/sanity.conf" BB_MIN_VERSION = "1.46.0" SANITY_ABIFILE = "${TMPDIR}/abi_version" SANITY_VERSION ?= "1" LOCALCONF_VERSION ?= "1" LAYER_CONF_VERSION ?= "7" SITE_CONF_VERSION ?= "1" INHERIT += "sanity" So how to update sanity.conf to disable sanity checker?
glib, at least. If you want to experiment, you can comment out these lines to get a bit further. But generally solving those dependency issues you mentioned would be more beneficial.INHERIT:remove = "sanity"sed -i -e 's/INHERIT += "sanity"/INHERIT:remove = "sanity"/g' /path/to/conf/sanity.conf(line for lines replacement) to Jenkins job config and at least build is started with no errors. You can add your comment as answer