Debian Bug report logs -
#555361
hplip: Embedded code copy of python-pexpect
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>:
Bug#555361; Package hplip.
(Mon, 09 Nov 2009 12:07:47 GMT) (full text, mbox, link).
Acknowledgement sent
to ubanus@users.sf.net:
New Bug report received and forwarded. Copy sent to Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>.
(Mon, 09 Nov 2009 12:07:47 GMT) (full text, mbox, link).
Message #5 received at maintonly@bugs.debian.org (full text, mbox, reply):
Package: hplip
Version: 3.9.8-1
Severity: normal
Usertags: embedded-code-copy
Hello,
Your binary package embeds a copy of the Python pexpect module. This
is violation of Debian Policy 4.13:
"Debian packages should not make use of these convenience copies
unless the included package is explicitly intended to be used in this
way. If the included code is already in the Debian archive in the
form of a library, the Debian packaging should ensure that binary
packages reference the libraries already in Debian and the
convenience copy is not used."
Please modify your package to use the system-wide module provided by
the python-pexpect package.
Information forwarded
to Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>:
Bug#555361; Package hplip.
(Sun, 29 Nov 2009 05:33:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Mark Purcell <msp@debian.org>:
Extra info received and forwarded to maintainer. Copy sent to Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>.
(Sun, 29 Nov 2009 05:33:03 GMT) (full text, mbox, link).
Message #10 received at 555361-maintonly@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Monday 09 November 2009 23:02:57 ubanus@users.sf.net wrote:
> Please modify your package to use the system-wide module provided by
> the python-pexpect package.
Ubanus,
Thanks for the report.
Btw, do you have some advice on how best to modify the package?
Any examples where this has been fixed in other packages with python-pexpect?
Thanks,
Mark
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>:
Bug#555361; Package hplip.
(Sun, 29 Nov 2009 10:06:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Jakub Wilk <ubanus@users.sf.net>:
Extra info received and forwarded to list. Copy sent to Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>.
(Sun, 29 Nov 2009 10:06:04 GMT) (full text, mbox, link).
Message #17 received at 555361@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
* Mark Purcell <msp@debian.org>, 2009-11-29, 16:26:
>> Please modify your package to use the system-wide module provided by
>> the python-pexpect package.
>
>Btw, do you have some advice on how best to modify the package?
You should:
1. Assure that copy of pexpect.py bundled in the package is either
unmodified or the package does not rely on any non-standard behaviour.
(This doesn't seem to be the issue for hplip, it uses pexpect in a very
basic way.)
2. Check how the package imports pexpect and possibly fix the imports.
("import pexpect", "import pexpect as ...", "from pexpect import ..."
are OK.)
3. Add appropriate Depends: or Recommends: header(s).
4. Don't let the embedded pexpect.py be installed into binary packages
(either by fixing *.install files or debian/rules).
5. Last but not least, test the package thoroughly.
Hope that helps,
--
Jakub Wilk
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>:
Bug#555361; Package hplip.
(Sun, 29 Nov 2009 10:27:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Mark Purcell <msp@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>.
(Sun, 29 Nov 2009 10:27:07 GMT) (full text, mbox, link).
Message #22 received at 555361@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Sunday 29 November 2009 21:03:07 Jakub Wilk wrote:
> * Mark Purcell <msp@debian.org>, 2009-11-29, 16:26:
> >> Please modify your package to use the system-wide module provided by
> >> the python-pexpect package.
> >
> >Btw, do you have some advice on how best to modify the package?
>
> 1. Assure that copy of pexpect.py bundled in the package is either
> unmodified or the package does not rely on any non-standard behaviour.
> (This doesn't seem to be the issue for hplip, it uses pexpect in a very
> basic way.)
Jakub,
hplip ships pexpect from 2006, current system version in Debian is 2008, there is a bit of difference between the two. But as you say hplip appears to use in a standard manner.
> 2. Check how the package imports pexpect and possibly fix the imports.
> ("import pexpect", "import pexpect as ...", "from pexpect import ..."
> are OK.)
import pexpect in two places:
base/tui.py:import pexpect
base/utils.py:import pexpect
tui.py looks like:
# Std Lib
import sys
import re
# Local
from g import *
import pexpect
import utils
Do I need to move the "import pexpect" statement up to the Std Lib stanza or will it just look for the system version automatically?
> 3. Add appropriate Depends: or Recommends: header(s).
done
> 4. Don't let the embedded pexpect.py be installed into binary packages
> (either by fixing *.install files or debian/rules).
So if I don't install the obsolete hplip pexpect.py the python will automatically pick up the system version with the standard import stanza above?
> 5. Last but not least, test the package thoroughly.
Thanks!
Mark
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>:
Bug#555361; Package hplip.
(Sun, 29 Nov 2009 10:48:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Jakub Wilk <ubanus@users.sf.net>:
Extra info received and forwarded to list. Copy sent to Debian HPIJS and HPLIP maintainers <pkg-hpijs-devel@lists.alioth.debian.org>.
(Sun, 29 Nov 2009 10:48:04 GMT) (full text, mbox, link).
Message #27 received at 555361@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
* Mark Purcell <msp@debian.org>, 2009-11-29, 21:22:
>import pexpect in two places:
>
>base/tui.py:import pexpect
>base/utils.py:import pexpect
>
>tui.py looks like:
># Std Lib
>import sys
>import re
>
># Local
>from g import *
>import pexpect
>import utils
>
>Do I need to move the "import pexpect" statement up to the Std Lib
>stanza or will it just look for the system version automatically?
No, no need to move anything.
>So if I don't install the obsolete hplip pexpect.py the python will
>automatically pick up the system version with the standard import
>stanza above?
That's right.
--
Jakub Wilk
[signature.asc (application/pgp-signature, inline)]
Changed Bug submitter to 'Jakub Wilk <jwilk@debian.org>' from 'ubanus@users.sf.net'
Request was from Jakub Wilk <jwilk@debian.org>
to control@bugs.debian.org.
(Mon, 01 Feb 2010 11:36:22 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Jan 4 11:30:45 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.