Package: python-dingus
Version: 0.1-1
Severity: serious
Tags: patch
Justification: Policy 3.5

The code in ‘python-dingus’ uses features not available before Python
2.5. So when installing on a Debian Squeeze system, the following
error occurs:

=====
Processing triggers for python-support ...
Compiling /usr/lib/pymodules/python2.4/dingus.py ...
  File "/usr/lib/pymodules/python2.4/dingus.py", line 103
    name = 'dingus_%i' % id(self) if name is None else name
                                   ^
SyntaxError: invalid syntax
=====

Debian Policy 2.5 says:

     Every package must specify the dependency information about other
     packages that are required for the first to work correctly.

The package needs to be changed so that its declared dependencies
match its actual dependencies.

This can be done by patching the source to use only code that work in
Python >= 2.4 (the earliest in Squeeze); or by having the package
declare a dependency on Python >= 2.5.

The following patch will cause ‘python-support’ to add the latter
dependency. You may want to get the package reviewed by the
‘debian-python’ team to find other packaging issues.

=== added file 'debian/pyversions'
--- debian/pyversions   1970-01-01 00:00:00 +0000
+++ debian/pyversions   2009-11-05 22:29:33 +0000
@@ -0,0 +1,1 @@
+2.5-


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (900, 'stable')
Architecture: powerpc (ppc64)

Kernel: Linux 2.6.30-2-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-dingus depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-support                1.0.4      automated rebuilding support for P

python-dingus recommends no packages.

python-dingus suggests no packages.

-- no debconf information

-- 
 \     “Nature is trying very hard to make us succeed, but nature does |
  `\       not depend on us. We are not the only experiment.” —Richard |
_o__)                                   Buckminster Fuller, 1978-04-30 |
Ben Finney <b...@benfinney.id.au>

Attachment: signature.asc
Description: Digital signature

Reply via email to