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

Bug#897363: gir1.2-ibus-1.0:amd64: Unqualified gir1.2-ibus-1.0 package name in prerm



Package: gir1.2-ibus-1.0
Version: 1.5.18-1
Severity: normal

Dear Maintainer,

The prerm script contains the following:

else
        dpkg -L gir1.2-ibus-1.0 | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'

Should this line be run when more than one architecture of gir1.2-ibus-1.0 is 
installed, it would fail because the package name lacks the architecture 
specifier. This would then break the whole packaging system.

Fortunately I expect that this line cannot be run because gir1.2-ibus-1.0 depends 
on python3 which depends on python3-minimal which provides /usr/bin/py3clean.
This is also why this bug is not critical.

So one option would be to remove this line and the whole py3clean check.
If not, then the dpkg call should be changed to:

        dpkg -L gir1.2-ibus-1.0:$DPKG_MAINTSCRIPT_ARCH | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gir1.2-ibus-1.0:amd64 depends on:
ii  gir1.2-glib-2.0  1.56.1-1
ii  libibus-1.0-5    1.5.18-1
ii  python3          3.6.4-1

gir1.2-ibus-1.0:amd64 recommends no packages.

gir1.2-ibus-1.0:amd64 suggests no packages.

-- no debconf information


Reply to: