Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #83311

Bug#1077922: regression: `debian/rules debian/control-real` results in: TypeError: 'BinaryPackage' object is not subscriptable

From Johannes Schauer Marin Rodrigues <josch@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1077922: regression: `debian/rules debian/control-real` results in: TypeError: 'BinaryPackage' object is not subscriptable
Date 2024-08-04 17:10 +0200
Message-ID <J7L1T-2Ggj-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Source: linux
Version: 6.10-1~exp1
Severity: normal

Hi,

in our Debian packaging for the MNT Reform hardware family we add a
`debian/templates/extra.control.in` which you can see at the end of this
email. Since version 6.10-1~exp1 in experimental, running `debian/rules
debian/control-real` results in the following backtrace:

PYTHONHASHSEED=0 debian/bin/gencontrol.py
Traceback (most recent call last):
  File "/home/josch/deb/linux/debian/bin/gencontrol.py", line 645, in <module>
    Gencontrol()()
  File "/home/josch/deb/linux/debian/bin/debian_linux/gencontrol.py", line 386, in __call__
    self.do_extra()
  File "/home/josch/deb/linux/debian/bin/debian_linux/gencontrol.py", line 457, in do_extra
    arches = package['Architecture']
             ~~~~~~~^^^^^^^^^^^^^^^^
TypeError: 'BinaryPackage' object is not subscriptable
make: *** [debian/rules:149: debian/control-real] Error 1

Bisecting the Debian linux git reveals that this is due to commit
1f3a3d27318a99feef7ffcdb4e302d164250af64 and "git tag --contains" confirms that
this commit first appeared in `debian/6.10-1_exp1`.

Maybe this is intentional and I have to change something in my
`extra.control.in` or maybe this is a regression?

Thanks!

cheers, josch




Package: linux-image-arm64
Architecture: arm64
Meta-Rules-Target: meta
Build-Profiles: <!pkg.linux.nokernel !pkg.linux.nometa>
Depends: linux-image-mnt-reform-arm64 (= ${binary:Version}), ${misc:Depends}
Section: oldlibs
Description: Linux for 64-bit ARMv8 machines (MNT Reform) (meta-meta-package)
 This meta-meta-package depends on the linux-image-mnt-reform-arm64
 meta-package for use on MNT Reform 2, MNT Pocket Reform and Reform Next to
 ensure a smooth transition after changing the kernel flavour name in 6.8.9.
 .
 This is an empty transitional package and can be safely removed as its
 functionality is provided by the linux-image-mnt-reform-arm64 package instead.

Package: linux-headers-arm64
Architecture: arm64
Meta-Rules-Target: meta
Build-Profiles: <!pkg.linux.nokernel !pkg.linux.nometa !pkg.linux.quick>
Depends: linux-headers-mnt-reform-arm64 (= ${binary:Version}), ${misc:Depends}
Section: oldlibs
Description: Linux for 64-bit ARMv8 machines (MNT Reform) (meta-meta-package)
 This meta-meta-package depends on the linux-headers-mnt-reform-arm64
 meta-package for use on MNT Reform 2, MNT Pocket Reform and Reform Next to
 ensure a smooth transition after changing the kernel flavour name in 6.8.9.
 .
 This is an empty transitional package and can be safely removed as its
 functionality is provided by the linux-headers-mnt-reform-arm64 package
 instead.

Back to linux.debian.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1077922: regression: `debian/rules debian/control-real` results in: TypeError: 'BinaryPackage' object is not subscriptable Johannes Schauer Marin Rodrigues <josch@debian.org> - 2024-08-04 17:10 +0200
  Bug#1077922: marked as done (regression: `debian/rules  debian/control-real` results in: TypeError: 'BinaryPackage' object is not  subscriptable) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-08-04 23:10 +0200

csiph-web