[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Your message dated Sun, 4 Aug 2024 23:03:58 +0200
with message-id <20240804210358.tf766nvdfjj6mn6j@shell.thinkmo.de>
and subject line Re: Bug#1077922: regression: `debian/rules debian/control-real` results in: TypeError: 'BinaryPackage' object is not subscriptable
has caused the Debian Bug report #1077922,
regarding regression: `debian/rules debian/control-real` results in: TypeError: 'BinaryPackage' object is not subscriptable
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1077922: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077922
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
On Sun, Aug 04, 2024 at 05:05:46PM +0200, Johannes Schauer Marin Rodrigues wrote:
> 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:

This error show not up while building the mentioned version.  You are
building a modified package, please don't write bug reports for that
with versions that don't match the package you have.

Bastian

-- 
Punishment becomes ineffective after a certain point.  Men become insensitive.
		-- Eneg, "Patterns of Force", stardate 2534.7

--- End Message ---

Reply to: