Re: [yocto-patches] [yocto-autobuilder-helper][PATCH] scripts/yocto-supported-distros: fix an incorrect regular expression for stream

"Antonin Godard" <[email protected]>
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <[email protected]>
Hi,

On Mon Apr 6, 2026 at 10:49 AM CEST, Paul Barker wrote:
> On Thu, 2026-03-26 at 17:22 +0100, Antonin Godard via
> lists.yoctoproject.org wrote:
>> The lsb string for CentOS Stream is actually centosstream-*, not
>> centos-*. It was thus not detecting centosstream entries in
>> SANITY_TESTED_DISTROS.
>> 
>> This was preventing the script from outputting the docs-formatted CentOS
>> strings.
>> 
>> Reported-by: Yoann Congal <[email protected]>
>> Signed-off-by: Antonin Godard <[email protected]>
>> ---
>>  scripts/yocto-supported-distros | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/scripts/yocto-supported-distros b/scripts/yocto-supported-distros
>> index 11b05b7..f1dac04 100755
>> --- a/scripts/yocto-supported-distros
>> +++ b/scripts/yocto-supported-distros
>> @@ -83,7 +83,7 @@ INPUT_REGEXES = {
>>      },
>>      "centosstream": {
>>          "ab": re.compile(r"^stream(\d+)"),
>> -        "lsb": re.compile(r"^stream-(\d+)"),
>> +        "lsb": re.compile(r"^centosstream-(\d+)"),
>
> Hi Antonin,
>
> Where do you see centosstream-* reported?
>
> On the stream9-vk-1 autobuilder worker and on a local centos stream 9
> instance I see "centos-9":
>
>     $ ( source /etc/os-release && echo $ID-$VERSION_ID )
>     centos-9
>
> We currently have "centosstream-9" listed as a supported distro, but if
> I build on stream9-vk-1 I see:
>
>     WARNING: Host distribution "centos-9" has not been validated with
>     this version of the build system; you may possibly experience
>     unexpected failures. It is recommended that you use a tested
>     distribution.
>
> So, I sent a patch for meta-yocto [1]. We should try to resolve which
> one is correct.
>
> [1]: https://lore.kernel.org/poky/[email protected]/T/

I'm a bit confused, why was this not a problem on whinlatter and scarthgap then?
Both of them have either centosstream-8 or centosstream-9 as their lsb string in
poky.conf.

https://git.yoctoproject.org/meta-yocto/tree/meta-poky/conf/distro/poky.conf?h=whinlatter
https://git.yoctoproject.org/meta-yocto/tree/meta-poky/conf/distro/poky.conf?h=scarthgap

Even CentOS Stream 8 images report centos-8 (with a local docker image):

$ docker run --rm -it quay.io/centos/centos:stream8 bash
[root@c33732bb804a /]# cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"

Should we backport your change to both of these branches?

Antonin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.