Bug#1125014: dies on unknown architecture in .dsc
Paul Gevers
elbrus at debian.org
Thu Jan 8 13:18:23 GMT 2026
Control: reassign -1 python3-debian
Control: affects -1 autopkgtest
Hi,
On 1/8/26 13:06, Christoph Berg wrote:
> I've just had autopkgtest die on unstable/ppc64el and forky/ppc64el.
> I'm not sure which package changed here, but I think autopkgtest (or
> python3-debian?) shouldn't die if a previously-supported architecture
> is listed in a source package stanza.
Agree. Looking at the stack trace, it's indeed python3-debian that's
crashing here. (leaving the rest of the message for the maintainers of
python3-debian).
However, I'm not seeing the failures in the history of ci.d.n, is this
on your own infra? Which version of python3-debian are you running
there? I'm also surprised you report it on ppc64el, there's no arch
specific code involved here, or am I wrong?
Paul
> apt-cache showsrc postgresql-hll
> postgresql-18-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> -> autopkgtest dies:
> File "/usr/lib/python3/dist-packages/debian/_arch_table.py", line 152, in _dpkg_arch_to_tuple
> return self._arch2table[dpkg_arch]
> ~~~~~~~~~~~~~~~~^^^^^^^^^^^
> KeyError: 'kfreebsd-amd64'
>
> 11:42:38 + apt-cache showsrc postgresql-hll
> 11:42:38 Package: postgresql-hll
> 11:42:38 Format: 3.0 (quilt)
> 11:42:38 Binary: postgresql-10-hll, postgresql-11-hll, postgresql-12-hll, postgresql-13-hll, postgresql-14-hll, postgresql-15-hll, postgresql-16-hll, postgresql-17-hll, postgresql-18-hll
> 11:42:38 Architecture: alpha amd64 arm64 ia64 kfreebsd-amd64 loong64 mips64el ppc64el riscv64
> 11:42:38 Version: 2.19-1.pgdg+1
> 11:42:38 Maintainer: Debian PostgreSQL Maintainers <team+postgresql at tracker.debian.org>
> 11:42:38 Uploaders: Christoph Berg <myon at debian.org>,
> 11:42:38 Homepage: https://github.com/citusdata/postgresql-hll
> 11:42:38 Standards-Version: 4.7.2
> 11:42:38 Vcs-Browser: https://salsa.debian.org/postgresql/postgresql-hll
> 11:42:38 Vcs-Git: https://salsa.debian.org/postgresql/postgresql-hll.git
> 11:42:38 Testsuite: autopkgtest
> 11:42:38 Testsuite-Triggers: postgresql-common-dev
> 11:42:38 Build-Depends: debhelper-compat (= 13), postgresql-all <!nocheck>, postgresql-server-dev-all
> 11:42:38 Package-List:
> 11:42:38 postgresql-10-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> 11:42:38 postgresql-11-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> 11:42:38 postgresql-12-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> 11:42:38 postgresql-13-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> 11:42:38 postgresql-14-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> 11:42:38 postgresql-15-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> 11:42:38 postgresql-16-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> 11:42:38 postgresql-17-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> 11:42:38 postgresql-18-hll deb database optional arch=alpha,amd64,arm64,ia64,kfreebsd-amd64,loong64,mips64el,ppc64el,riscv64
> 11:42:38 Priority: optional
> 11:42:38 Section: database
> 11:42:38 Directory: pool/main/p/postgresql-hll
> 11:42:38 Files:
> 11:42:38 eacf4b3847de3a185d6e2ae79dd59678 2475 postgresql-hll_2.19-1.pgdg+1.dsc
> 11:42:38 f6bc5624bab1c3b9c9f8c2f8aa2fcdf0 2756222 postgresql-hll_2.19.orig.tar.gz
> 11:42:38 a8a6204e4e4fd60682895fe481ef832b 3696 postgresql-hll_2.19-1.pgdg+1.debian.tar.xz
> 11:42:38 Checksums-Sha1:
> 11:42:38 dc682335d9d60ac57b5dd87ef908b3d6eb84ea7c 2475 postgresql-hll_2.19-1.pgdg+1.dsc
> 11:42:38 ce3ec8a76996cb02cf19fd3faf0f3e2843f00ad1 2756222 postgresql-hll_2.19.orig.tar.gz
> 11:42:38 15fe407beb4a100bd149c9a2c8f6cac15dcdb45e 3696 postgresql-hll_2.19-1.pgdg+1.debian.tar.xz
> 11:42:38 Checksums-Sha256:
> 11:42:38 2ace26c6382efe811abb7d005aa8b2779fdcb02e1d9e9ae394cc76c3da1e4a9d 2475 postgresql-hll_2.19-1.pgdg+1.dsc
> 11:42:38 d63d56522145f2d737e0d056c9cfdfe3e8b61008c12ca4c45bde7d9b942f9c46 2756222 postgresql-hll_2.19.orig.tar.gz
> 11:42:38 d6183d59ead33b69c2212e1633483b2511e9c835694db09455121208839059ee 3696 postgresql-hll_2.19-1.pgdg+1.debian.tar.xz
> 11:42:38
> 11:42:38 + autopkgtest --user buildd --timeout-copy=900 postgresql-hll -- null
> 11:42:38 autopkgtest [10:42:35]: starting date and time: 2026-01-08 10:42:35+0000
> 11:42:38 autopkgtest [10:42:35]: version 5.53
> 11:42:38 autopkgtest [10:42:35]: host postgresql-debian-12-p10-xxlarge; command line: /usr/bin/autopkgtest --user buildd --timeout-copy=900 postgresql-hll -- null
> 11:42:38 autopkgtest [10:42:35]: testbed dpkg architecture: ppc64el
> 11:42:38 autopkgtest [10:42:35]: testbed apt version: 3.1.13
> 11:42:38 autopkgtest [10:42:35]: @@@@@@@@@@@@@@@@@@@@ test bed setup
> 11:42:38 autopkgtest [10:42:35]: testbed release detected to be: sid
> 11:42:38 autopkgtest [10:42:36]: testbed running kernel: Linux 6.12.57+deb13-powerpc64le #1 SMP Debian 6.12.57-1 (2025-11-05)
> 11:42:38 autopkgtest [10:42:36]: @@@@@@@@@@@@@@@@@@@@ apt-source postgresql-hll
> 11:42:38 Get:1 https://apt.postgresql.org/pub/repos/apt sid-pgdg-testing/main postgresql-hll 2.19-1.pgdg+1 (dsc) [2,475 B]
> 11:42:38 Get:2 https://apt.postgresql.org/pub/repos/apt sid-pgdg-testing/main postgresql-hll 2.19-1.pgdg+1 (tar) [2,756 kB]
> 11:42:39 Get:3 https://apt.postgresql.org/pub/repos/apt sid-pgdg-testing/main postgresql-hll 2.19-1.pgdg+1 (diff) [3,696 B]
> 11:42:39 dpkg-source: warning: extracting unsigned source package (postgresql-hll_2.19-1.pgdg+1.dsc)
> autopkgtest [10:42:38]: testing package postgresql-hll version 2.19-1.pgdg+1
> autopkgtest [10:42:38]: ERROR: unexpected error:
> Traceback (most recent call last):
> File "/usr/bin/autopkgtest", line 993, in main
> process_actions()
> ~~~~~~~~~~~~~~~^^
> File "/usr/bin/autopkgtest", line 904, in process_actions
> tests_tree = build_source(kind, arg, built_binaries)
> File "/usr/bin/autopkgtest", line 705, in build_source
> (tests, _) = testdesc.parse_debian_source(
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> srcdir=pkg_root,
> ^^^^^^^^^^^^^^^^
> ...<5 lines>...
> ignore_restrictions=opts.ignore_restrictions,
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> )
> ^
> File "/usr/share/autopkgtest/lib/testdesc.py", line 735, in parse_debian_source
> (depends, package_under_test_depends) = _expand_test_depends(
> ~~~~~~~~~~~~~~~~~~~~^
> test_names[0],
> ^^^^^^^^^^^^^^
> ...<3 lines>...
> test_arch_is_foreign,
> ^^^^^^^^^^^^^^^^^^^^^
> )
> ^
> File "/usr/share/autopkgtest/lib/testdesc.py", line 480, in _expand_test_depends
> (my_packages, my_packages_for_test_arch) = _debian_packages_from_source(
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> srcdir,
> ^^^^^^^
> test_arch,
> ^^^^^^^^^^
> test_arch_is_foreign,
> ^^^^^^^^^^^^^^^^^^^^^
> )
> ^
> File "/usr/share/autopkgtest/lib/testdesc.py", line 376, in _debian_packages_from_source
> if _architecture_is_concerned(test_arch, arch_list):
> ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/share/autopkgtest/lib/testdesc.py", line 332, in _architecture_is_concerned
> return dpkg_arch_table.architecture_is_concerned(
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> architecture,
> ^^^^^^^^^^^^^
> architecture_restrictions,
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
> )
> ^
> File "/usr/lib/python3/dist-packages/debian/_arch_table.py", line 349, in architecture_is_concerned
> dpkg_wildcard = self._dpkg_wildcard_to_tuple(arch_restriction_positive)
> File "/usr/lib/python3/dist-packages/debian/_arch_table.py", line 143, in _dpkg_wildcard_to_tuple
> result = self._dpkg_arch_to_tuple(arch)
> File "/usr/lib/python3/dist-packages/debian/_arch_table.py", line 152, in _dpkg_arch_to_tuple
> return self._arch2table[dpkg_arch]
> ~~~~~~~~~~~~~~~~^^^^^^^^^^^
> KeyError: 'kfreebsd-amd64'
> autopkgtest exit status is 20
>
> (I fixed it by replacing the explicit architecture list in postgresql-hll with
> "B-D: architecture-is-little-endian", so this isn't a pressing problem.)
>
> Christoph
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 585 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-python-debian-maint/attachments/20260108/123c4dc1/attachment.sig>
More information about the pkg-python-debian-maint
mailing list