Re: [yocto] I got an error stating that "python3-pytest contains reference to the build host HOME directory" when attempting the Yocto Project Quick Build. What do I do?

Alexander Kanavin <[email protected]> Sat, 27 Jun 2026 07:38:57 +0200
Newsgroups org.yoctoproject.lists.yocto
Message-ID <CANNYZj9uYQ6mCyjAtpZos2poV872YvFPd=T08FCMWTS5G36ykQ@mail.gmail.com>
On Sat, 27 Jun 2026 at 02:44, 99thornroad via lists.yoctoproject.org
<[email protected]> wrote:
> ERROR: python3-pytest-9.1.0-r0 do_package_qa: QA Issue: File /usr/lib/python3.14/site-packages/_pytest/main.py in package python3-pytest contains reference to the build host HOME directory [buildpaths]
> ERROR: python3-pytest-9.1.0-r0 do_package_qa: QA Issue: File /usr/lib/python3.14/site-packages/_pytest/assertion/rewrite.py in package python3-pytest contains reference to the build host HOME directory [buildpaths]
> ERROR: python3-pytest-9.1.0-r0 do_package_qa: QA Issue: File /usr/lib/python3.14/site-packages/_pytest/__pycache__/main.cpython-314.pyc in package python3-pytest contains reference to the build host HOME directory [buildpaths]
> ERROR: python3-pytest-9.1.0-r0 do_package_qa: Fatal QA errors were found, failing task.
> ERROR: Logfile of failure stored in: /home/user/asteroid/bitbake-builds/poky-master/build/tmp/work/x86-64-v3-poky-linux/python3-pytest/9.1.0/temp/log.do_package_qa.1216269
> ERROR: Task (/home/user/asteroid/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/python/python3-pytest_9.1.0.bb:do_package_qa) failed with exit code '1'
>
> What should I do to fix this?
> I am Using Debian 13.5.

This is unfortunately a false positive in the QA, as pytest upstream
hardcodes '/home/user' into the installed files.

You can work around it by adding to conf/local.conf:

INSANE_SKIP:pn-python3-pytest = "buildpaths"

but we need to add ability to specify exceptions in the QA test.

Alex