Hi Ross,

The problem is that unlike other packages, glibc-locale and glibc are two 
recipes, and glibc-locale is specially handled via IMAGE_LINGUAS.

Regarding this glibc-locale issue, the rootfs generation logic is correct. Use 
the case I mentioned in commit message as an example, lib32-glibc-locale should 
not be installed. The rootfs logic ensures that and is correct. So maybe the 
glob command's logic is correct according to its original design, but it needs 
to be adjusted a little bit to fit the rootfs generation. Glibc-locale is the 
special case to handle.

I'm not sure if users will use this glob command manually, because they'll have 
to first construct a file to serve as an input. And that file is expected to 
contain actual package names. If they don't have some script to do that, 
they'll need to look at the deploy/rpm directory to construct the input file 
correctly.

I'm OK with any alternative solution. 

Regards,
Qi

-----Original Message-----
From: Ross Burton <ross.bur...@arm.com> 
Sent: Wednesday, January 8, 2025 8:24 PM
To: Chen, Qi <qi.c...@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core][PATCH] oe-pkgdata-util: avoid glibc-locale being mapped 
out by glibc packages

On 19 Dec 2024, at 09:23, Chen Qi via lists.openembedded.org 
<Qi.Chen=windriver....@lists.openembedded.org> wrote:
> 
> From: Chen Qi <qi.c...@windriver.com>
> 
> oe-pkgdata-util's glob command will output different results depending 
> on whether glibc-locale is built or not. This in turn results in 
> do_rootfs error when multilib is enabled.

The glob command is generically useful and not an implementation detail of the 
rootfs generation, so it shouldn’t be filtering the list of packages.  I’d 
absolutely expect the output to change depending on what packages were built, 
and if this is breaking rootfs generation then the rootfs generation logic 
needs to handle this case.

Ross 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#209611): 
https://lists.openembedded.org/g/openembedded-core/message/209611
Mute This Topic: https://lists.openembedded.org/mt/110195359/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to