[Pkg-hpijs-devel] Bug#519966: hplip-data package contains .pyc files because of wrong dh_python
Steve Langasek
steve.langasek at canonical.com
Mon Mar 16 13:48:44 UTC 2009
Package: hplip-data
Version: 3.9.2-1
Severity: serious
Justification: python policy 2.6
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch jaunty
Running 'debsums -s' on my system, I found a large number of checksum
mismatches for files under /usr/share/hplip. The reason for this is that
hplip-data incorrectly ships a number of .pyc files within the package,
which has been a violation of python packaging policy as long as there has
been a python packaging policy.
The debian/rules for some reason calls dh_pysupport for the Architecture:
any packages, when hplip-data, containing the .py files, is an arch: all
package. The attached patch fixes this so that the .py files are actually
registered with python-support.
The hplip.preinst code to remove all .pyc and .pyo files on upgrade of the
*hplip* package is probably also unnecessary with this change. (Even if
it's not unnecessary, it is wrong. The hplip package shouldn't be doing
anything with .pyc files originating with another binary package.)
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hplip-wrong-python.patch
Type: text/x-diff
Size: 2035 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-hpijs-devel/attachments/20090316/2f43322a/attachment.patch
More information about the Pkg-hpijs-devel
mailing list