From: "Yoann Congal" <yoann.congal@smile.fr>
To: <mathieu.dubois-briand@bootlin.com>,
"Paul Barker" <paul@pbarker.dev>,
<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] sanity: Require tar 1.35 or later on rhel9-alike distros
Date: Fri, 03 Apr 2026 19:07:58 +0200 [thread overview]
Message-ID: <DHJOO3S7NQMS.D0NB9IPZPFV0@smile.fr> (raw)
In-Reply-To: <DHJO8L8EC2Z9.1N02J4E6QUEGC@bootlin.com>
On Fri Apr 3, 2026 at 6:47 PM CEST, Mathieu Dubois-Briand via lists.openembedded.org wrote:
> On Fri Apr 3, 2026 at 1:54 PM CEST, Paul Barker wrote:
>> 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.
>>
>> That error message is likely to confuse users, and the fix is not
>> obvious. So, error out if tar 1.34 or earlier is present on affected
>> distros and recommend upgrading or using the buildtools tarball.
>>
>> Signed-off-by: Paul Barker <paul@pbarker.dev>
>
> Hi Paul,
>
> So now, this is failing on several workers. Aren't we using buildtools
> on rocky9 / stream9?
You're thinking of "[PATCH yocto-autobuilder-helper] config.json: Use buildtools on RHEL9 derivatives"
https://lore.kernel.org/yocto-patches/20260331-rhel9-v1-1-e5c2cf815386@pbarker.dev/T/#u
... not merged, yet.
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/3369
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/4/builds/3536
>
> Thanks,
> Mathieu
--
Yoann Congal
Smile ECS
next prev parent reply other threads:[~2026-04-03 17:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-03 11:54 [PATCH] sanity: Require tar 1.35 or later on rhel9-alike distros Paul Barker
2026-04-03 12:06 ` [OE-core] " Quentin Schulz
2026-04-03 12:30 ` Paul Barker
2026-04-03 12:56 ` Quentin Schulz
2026-04-03 13:06 ` Paul Barker
2026-04-03 13:27 ` Quentin Schulz
2026-04-03 16:47 ` Mathieu Dubois-Briand
2026-04-03 17:07 ` Yoann Congal [this message]
2026-04-04 5:55 ` Mathieu Dubois-Briand
2026-04-05 14:15 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DHJOO3S7NQMS.D0NB9IPZPFV0@smile.fr \
--to=yoann.congal@smile.fr \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=paul@pbarker.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox