Bug#897358: python-pjproject breaks package system in multiarch setting

Francois Gouget fgouget at free.fr
Tue May 1 15:48:56 BST 2018


Package: python-pjproject
Version: 2.7.2~dfsg-1
Severity: critical
Justification: breaks unrelated software

Dear Maintainer,

python-pjproject is marked as Multi-Arch: same but its postinst and preinst 
scripts call pycompile and pyclean without specifying the package architecture. As 
a result if python-pjproject is installed for more than one architecture the 
package name is ambiguous, causing the postinst and prerm scripts fail.

This then prevents any package from being installed or removed, thus breaking the 
packaging system permanently.


The solution is to replace the following line in 
/var/lib/dpkg/info/python-pjproject:*.postinst

	pycompile -p python-pjproject
with
	pycompile -p python-pjproject:$DPKG_MAINTSCRIPT_ARCH 

And the following line in /var/lib/dpkg/info/python-pjproject:*.prerm

	pyclean -p python-pjproject
    else
        dpkg -L python-pjproject | grep '\.py$' | while read file

with

        pyclean -p python-pjproject:$DPKG_MAINTSCRIPT_ARCH
    else
        dpkg -L python-pjproject:$DPKG_MAINTSCRIPT_ARCH | grep '\.py$' | while read file


See also bug #770625 which shows how this same bug was fixed in gir1.2-ibus-1.0.


-- 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 python-pjproject:amd64 depends on:
ii  libc6      2.27-3
ii  libpj2     2.7.2~dfsg-1
ii  libpjsip2  2.7.2~dfsg-1
ii  libpjsua2  2.7.2~dfsg-1

python-pjproject:amd64 recommends no packages.

python-pjproject:amd64 suggests no packages.

-- no debconf information



More information about the Pkg-voip-maintainers mailing list