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?
As detailed in the comments, it is not recommended to disable sanity checks unless you are ready to face errors and fix them on your own.
In your local.conf
or any other suitable .conf
file in your environment, add:
INHERIT:remove = "sanity"