Package: httpcode
Version: 0.5-1
Severity: important
Tags: patch

This package has what looks like an obvious and crippling library
dependency bug:

 $ sudo apt-get install httpcode
 [...]
 $ hc 404
 Traceback (most recent call last):
   File "/usr/bin/hc", line 5, in <module>
     from pkg_resources import load_entry_point
 ImportError: No module named pkg_resources
 $ sudo apt-get install python-pkg-resources
 [...]
 $ hc 200
 Status code 200
 Message: OK
 Code explanation: Request fulfilled, document follows

My patch manually adds the required module package to the Depends:
line, but I Am Not A Pythonist; the correct solution might have
something to do with ${python:Depends} and/or dh_pywhatever.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (50, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages httpcode depends on:
ii  python           2.7.2-10
ii  python-colorama  0.2.4-1
ii  python2.6        2.6.7-4
ii  python2.7        2.7.2-8

httpcode recommends no packages.

httpcode suggests no packages.

-- no debconf information
-- 
JBR
Ankh kak! (Ancient Egyptian blessing)
diff -ru httpcode-0.5.pristine/debian/control httpcode-0.5/debian/control
--- httpcode-0.5.pristine/debian/control	2012-03-08 23:11:52.000000000 +0000
+++ httpcode-0.5/debian/control	2012-03-12 17:31:07.471392472 +0000
@@ -10,7 +10,7 @@
 
 Package: httpcode
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-colorama 
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-colorama, python-pkg-resources
 Description: Explains the meaning of an HTTP status code on the command line 
  httpcode is a little utility that explains the meaning of an HTTP
  status code on the command line.

Reply via email to