Control: tag -1 confirmed

On Mon, 09 Sep 2024 10:57:39 +0300 Martin-Éric Racine 
<martin-eric.rac...@iki.fi> wrote:
> It appears that test-patches makes incorrect guesses for the target 
> architecture:
> 
> $ debian/bin/test-patches  306803.patch 
[...]
>   File "/home/perkelix/linux-6.10.6/debian/bin/debian_linux/config_v2.py", 
> line 543, in flavours
>     debianarch_flavour=debianarch_flavour[flavour.name],
>                        ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
> KeyError: 'pae'
> make: *** [debian/rules:149: debian/control-real] Virhe 1
> 
> 
> By the looks of it, it truncates anything after the last dash of the running 
> kernel,
> which results in it trying to configure for flavor=pae instead of the expected
> flavor=686-pae.

This is annoyingly difficult to get right, as older kernel release
strings with an ABI number that needs to be stripped off while newer
kernel release strings with no ABI number but may have a number at the
start of the flavour.  Having said that, I don't see us ever having an
ABI number as high as 686 so that could be special-cased.

Until this is fixed you can use the -f option to explicitly specify the
flavour to build.

Ben.

-- 
Ben Hutchings
A free society is one where it is safe to be unpopular.
                                                      - Adlai Stevenson

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to