#1081195 devscripts: test-patches KeyError: 'pae'

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Martin-Éric Racine
Date:
2026-01-10 11:06:21 UTC
Severity:
normal
Tags:
#1081195#5
Date:
2024-09-09 07:57:39 UTC
From:
To:
It appears that test-patches makes incorrect guesses for the target architecture:

$ debian/bin/test-patches  306803.patch
PYTHONHASHSEED=0 debian/bin/gencontrol.py
Traceback (most recent call last):
  File "/home/perkelix/linux-6.10.6/debian/bin/gencontrol.py", line 643, in <module>
    Gencontrol()()
  File "/home/perkelix/linux-6.10.6/debian/bin/debian_linux/gencontrol.py", line 385, in __call__
    self.do_main()
  File "/home/perkelix/linux-6.10.6/debian/bin/debian_linux/gencontrol.py", line 404, in do_main
    self.do_main_recurse(self.config, vars, makeflags)
  File "/home/perkelix/linux-6.10.6/debian/bin/debian_linux/gencontrol.py", line 447, in do_main_recurse
    self.do_arch(arch, vars.copy(), makeflags.copy())
  File "/home/perkelix/linux-6.10.6/debian/bin/debian_linux/gencontrol.py", line 515, in do_arch
    self.do_arch_recurse(config, vars, makeflags)
  File "/home/perkelix/linux-6.10.6/debian/bin/debian_linux/gencontrol.py", line 549, in do_arch_recurse
    self.do_featureset(featureset, vars.copy(), makeflags.copy())
  File "/home/perkelix/linux-6.10.6/debian/bin/debian_linux/gencontrol.py", line 564, in do_featureset
    self.do_featureset_recurse(config, vars, makeflags)
  File "/home/perkelix/linux-6.10.6/debian/bin/debian_linux/gencontrol.py", line 596, in do_featureset_recurse
    for flavour in config.flavours:
                   ^^^^^^^^^^^^^^^
  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.

Martin-Éric

- -- Package-specific info:

- --- /etc/devscripts.conf ---
Empty.

- --- ~/.devscripts ---
export DEBSIGN_KEYID=C89002C77A8BEC6A4E6D7390AE1F8277C4B4D7B6

- -- System Information:
Debian Release: trixie/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 6.10.6-686-pae (SMP w/1 CPU thread; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages devscripts depends on:
ii  dpkg-dev              1.22.11
ii  file                  1:5.45-3
ii  gnupg                 2.2.43-8
ii  gpgv                  2.2.43-8+b1
ii  libfile-dirlist-perl  0.05-3
ii  libfile-homedir-perl  1.006-2
ii  libfile-touch-perl    0.12-2
ii  libfile-which-perl    1.27-2
ii  libipc-run-perl       20231003.0-2
ii  libmoo-perl           2.005005-1
ii  libwww-perl           6.77-1
ii  patchutils            0.4.2-1
ii  perl                  5.38.2-5
ii  python3               3.12.5-1
ii  sensible-utils        0.0.24
ii  wdiff                 1.2.2-6

Versions of packages devscripts recommends:
ii  apt                         2.9.8
ii  curl                        8.9.1-2
pn  dctrl-tools                 <none>
pn  debian-keyring              <none>
pn  dput | dupload              <none>
pn  equivs                      <none>
pn  libdistro-info-perl         <none>
ii  libdpkg-perl                1.22.11
ii  libencode-locale-perl       1.05-3
pn  libgit-wrapper-perl         <none>
pn  libgitlab-api-v4-perl       <none>
ii  libjson-perl                4.10000-1
pn  liblist-compare-perl        <none>
ii  liblwp-protocol-https-perl  6.14-1
pn  libsoap-lite-perl           <none>
pn  libstring-shellquote-perl   <none>
ii  libtry-tiny-perl            0.32-1
ii  liburi-perl                 5.28-1
pn  licensecheck                <none>
pn  lintian                     <none>
ii  man-db                      2.13.0-1
ii  patch                       2.7.6-7
pn  pristine-tar                <none>
ii  python3-apt                 2.9.0+b1
ii  python3-debian              0.1.49
pn  python3-magic               <none>
ii  python3-requests            2.32.3+dfsg-1
pn  python3-unidiff             <none>
pn  python3-xdg                 <none>
pn  strace                      <none>
pn  unzip                       <none>
ii  wget                        1.24.5-2
ii  xz-utils                    5.6.2-2

Versions of packages devscripts suggests:
pn  adequate                     <none>
pn  at                           <none>
pn  autopkgtest                  <none>
pn  bls-standalone               <none>
ii  bsd-mailx [mailx]            8.1.2-0.20220412cvs-1
ii  build-essential              12.10
pn  check-all-the-things         <none>
pn  cvs-buildpackage             <none>
ii  debhelper                    13.20
pn  diffoscope                   <none>
pn  disorderfs                   <none>
pn  dose-extra                   <none>
pn  duck                         <none>
pn  elpa-devscripts              <none>
pn  faketime                     <none>
pn  gnuplot                      <none>
pn  how-can-i-help               <none>
ii  libauthen-sasl-perl          2.1700-1
pn  libdbd-pg-perl               <none>
pn  libfile-desktopentry-perl    <none>
pn  libterm-size-perl            <none>
ii  libtimedate-perl             2.3300-2
pn  libyaml-syck-perl            <none>
pn  mmdebstrap                   <none>
pn  mutt                         <none>
ii  openssh-client [ssh-client]  1:9.8p1-8
pn  piuparts                     <none>
pn  postgresql-client            <none>
pn  pristine-lfs                 <none>
ii  quilt                        0.68-1
pn  ratt                         <none>
pn  reprotest                    <none>
pn  svn-buildpackage             <none>
pn  w3m                          <none>

- -- no debconf information
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEyJACx3qL7GpObXOQrh+Cd8S017YFAmbeqnAACgkQrh+Cd8S0
17ZANg//c3xmAF0EVK4Yu4fFHyWmeQxfLfcl/9kADQuJipEF28utgRazfQb9RanJ
e9p8LBEbbK8xOgj5EVHc+QD0tICDWkkTrzQ9nJg/dxEPpeDI1R7mZnv6Hgz17R4c
x9iuogCiVffiX+I2rC+9NnnNW79AgbROZuBoivX/ytpWBrHztxtBK9Ycx2XU4sZa
/LMjYf2TL6R5tafJNoWGhEX8BeT+wL2/mJO/mkxA9Ez4isz1PAsdAcC+e9qt5XSR
REgTFE5TwslBkTDmOnPaIvlj8mNQgVcwRBLk389OIcWdwFnIRrsRcPcKiJEWEkvn
+NVWayfIZbZ3WQZZ9T5QZiKtbxwCzu5LNRmYQ7rNsx2EwAlOfZwq3heNwMqZQqu4
0fxmvZqNXU04AhRy2xWtRqm3d8KzT4mV8demD+JvzmvrU4emjBbVDhhJO2g3sxoo
2VDrF2Gj0SC9JbCDyS3f4hpEIqCtfZBummIzfZfMbKfr6ErnLzamN9IGDQdmwFcT
WVnfC0pEWGcN0UA7pjgtznZ53IrXTb+pzaU2/N0PEV9wSQyjBcHg/NfAIiFUtwI5
PyTUqBa6NDD108fKnqOWnEl3Zm1oI4D1n6ewq48TS8vvH320JBxN4SQQjesTDvcN
f3NNgCY1yJTsyv5PAzhyfpoiYcgCY/Pf48x4r+wUF6v/+bZQ8Og=
=zDbt
-----END PGP SIGNATURE-----

#1081195#16
Date:
2024-09-09 21:53:54 UTC
From:
To:
Control: tag -1 confirmed
[...]

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.

#1081195#23
Date:
2026-01-10 10:10:54 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.

#1081195#28
Date:
2026-01-10 10:10:54 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.