Package: getmail4
Version: 4.6.2-1
Followup-For: Bug #290637

I don't know why, but I got warnings like 

/usr/lib/python2.3/optparse.py:668: FutureWarning: %u/%o/%x/%X of
negative int will return a signed string in Python 2.4 and up
  return ("<%s at 0x%x: %r>"

upon every run of getmail4.

The attache patch fixed the problem for me, but since I know close to
nothing python specific about packaging, this will not be the correct
solution for the Debian package.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (700, 'unstable'), (500, 'testing'), (300, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-1-k7
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-15)

Versions of packages getmail4 depends on:
ii  python                        2.3.5-11   An interactive high-level object-o
ii  python-support                0.3.8      automated rebuilding support for p

getmail4 recommends no packages.

-- no debconf information

-- 
Dr. Johannes Ranke                 [EMAIL PROTECTED]
UFT Bremen, Leobenerstr. 1         +49 421 218 8971 
D-28359 Bremen                     http://www.uft.uni-bremen.de/chemie/ranke
diff -u debian.orig/control debian/control
--- debian.orig/control 2006-07-06 18:02:35.000000000 +0200
+++ debian/control      2006-07-06 18:02:51.000000000 +0200
@@ -9,7 +9,7 @@
 
 Package: getmail4
 Architecture: all
-Depends: ${python:Depends}
+Depends: python2.4
 Conflicts: getmail
 XB-Python-Version: ${python:Versions}
 Description: mail retriever with support for POP3, IMAP4 and SDPS
Gemeinsame Unterverzeichnisse: debian.orig/getmail4 und debian/getmail4.
Gemeinsame Unterverzeichnisse: debian.orig/patches und debian/patches.
diff -u debian.orig/rules debian/rules
--- debian.orig/rules   2006-07-06 17:59:56.000000000 +0200
+++ debian/rules        2006-07-06 17:57:10.000000000 +0200
@@ -17,6 +17,6 @@
 
 binary-predeb/getmail4::
        # Change #!/usr/bin/env python to #!/usr/bin/python
-       find debian/getmail4/usr/bin -type f -name getmail\* -exec sed -i -e 
's|#!.*python.*|#!/usr/bin/python|g' {} \;
+       find debian/getmail4/usr/bin -type f -name getmail\* -exec sed -i -e 
's|#!.*python.*|#!/usr/bin/python2.4|g' {} \;
        # Fix permissions
        find debian/getmail4/usr/share/python-support/getmail4/ -type f -name 
\*.py -exec chmod 644 {} \;

Reply via email to