diff mbox series

insane.bbclass: Avoid buildpaths QA reporting on HOME if its in TMPDIR

Message ID 20261103194836.3765498-1-pkj@axis.com
State New
Headers show
Series insane.bbclass: Avoid buildpaths QA reporting on HOME if its in TMPDIR | expand

Commit Message

Peter Kjellerstedt Nov. 3, 2026, 7:48 p.m. UTC
Since TMPDIR is typically under HOME, there is no reason to report on
HOME if that is the case, and TMPDIR has already been reported.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/classes-global/insane.bbclass | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 721088a8f5..350e1f83c2 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -443,6 +443,7 @@  def package_qa_check_buildpaths(path, name, d, elf):
         if tmpdir in file_content:
             path = package_qa_clean_path(path, d, name)
             oe.qa.handle_error("buildpaths", "File %s in package %s contains reference to TMPDIR" % (path, name), d)
+            buildpaths_skip.append(tmpdir.decode())
         if homedir and homedir in file_content and not any(path.startswith(homedir.decode()) for path in buildpaths_skip):
             path = package_qa_clean_path(path, d, name)
             oe.qa.handle_error("buildpaths", "File %s in package %s contains a reference to the build host HOME directory. If upstream hardcodes a directory path that matches your home, you can set OEQA_BUILDPATHS_SKIP = \"%s\" in the recipe." % (path, name, homedir.decode()), d)