[yocto-autobuilder-helper][scarthgap][PATCH] config.json: Use buildtools on RHEL9 derivatives
Yoann Congal <[email protected]> Wed, 24 Jun 2026 16:24:29 +0200
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <[email protected]> |
From: Paul Barker <[email protected]> tar 1.34 (and possibly earlier versions) is unable to extract tarballs containing read-only files with xattrs. This was fixed upstream, but it's unlikely at this point that the fix will be backported to RHEL9 related distros (CentOS Stream 9, AlmaLinux 9, Rocky Linux 9). The issue affects these distros specifically because they have selinux enabled by default and this uses xattrs. The specific failure we've seen is with the /usr/lib/udev/hwdb.bin file installed by the systemd recipe - this file is chmod 0444. This leads to the following error, typically during do_image_wic (shortened and split to make it readable): subprocess.CalledProcessError: Command 'tar --xattrs --xattrs-include='*' -cf - -S -C .../tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/rootfs -p . | tar --xattrs --xattrs-include='*' -xf - -C .../tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/tmp-wic/rootfs2' returned non-zero exit status 2. To work around this, we will need to use the buildtools tarball on affected systems. Fixes [YOCTO #16143]. Signed-off-by: Paul Barker <[email protected]> Signed-off-by: Richard Purdie <[email protected]> (cherry picked from commit ae74094f8aeae21dcc2510cd0d854b70cfe2192f) [YC: Also, by upgrading python3, this patch fixes: | ERROR: Unable to parse /srv/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oe/data.py | Traceback (most recent call last): | File "/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oe/data.py", line 8, in <module> | import oe.maketype | File "<frozen importlib._bootstrap>", line 1004, in _find_and_load | File "<frozen importlib._bootstrap>", line 158, in __enter__ | File "<frozen importlib._bootstrap>", line 110, in acquire | KeyError: 140127001167424 From https://autobuilder.yoctoproject.org/valkyrie/?#/builders/40/builds/3981 See upstream issue: https://github.com/python/cpython/issues/91351] Signed-off-by: Yoann Congal <[email protected]> --- config.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.json b/config.json index 86a6ada..64c7495 100644 --- a/config.json +++ b/config.json @@ -1932,6 +1932,9 @@ "alma8*" : "${BUILDTOOLS_URL}", "rocky8*" : "${BUILDTOOLS_URL}", "stream8*" : "${BUILDTOOLS_URL}", + "alma9*" : "${BUILDTOOLS_URL}", + "rocky9*" : "${BUILDTOOLS_URL}", + "stream9*" : "${BUILDTOOLS_URL}", "opensuse154*" : "${BUILDTOOLS_URL}", "opensuse155*" : "${BUILDTOOLS_URL}", "perf-alma8*" : "${BUILDTOOLS_URL}",