[Pkg-mailman-hackers] Bug#637398: mailman: Switch to dh_python2

Barry Warsaw barry at python.org
Wed Aug 10 22:55:40 UTC 2011


Package: mailman
Version: 1:2.1.14-1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

python-support is now officially deprecated in Debian:

http://article.gmane.org/gmane.linux.debian.devel.python/6948

In Ubuntu, we are removing python-support from our CDs.  As part of this work,
I have converted the mailman package to use dh_python2 according to these
guidelines:

http://wiki.debian.org/Python/TransitionToDHPython2

Cheers.

*** /tmp/tmpoaI53I
In Ubuntu, the attached patch was applied to achieve the following:


  * Switch to dh_python2. (LP: #788514)


Thanks for considering the patch.


- -- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric'), (100, 'oneiric-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-8-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJOQwxsAAoJEBJutWOnSwa/jnAP/0HMpAL1WEOcc1YqRQSLtBO9
X4K3hDoLqXw6QY8qsdkjVM3639NGalJBeshB8pclksncnQVd1JwRPUJU/podgEo2
6qtNqhpGh+v4oofaJu9Yu07Ydp7gbPFChTmbAv6I0TTuRhy40Iwf9FMFNRk75KB4
DCsy/0zm6h9nLxv914DMkNeGoHs8FA8qTx5s37QdIpAm7yxCLPJQVew49RFah+Xo
FaiGkjkfpKBXViMo4pvWoCIEPUZ4D8ZZ7AnqizNug3E4xVCMRwcg64E6oKSxIF1e
aoc7Fk7ts+6zP2qcSWQNyW3XSXal3o0i+fqdC5u5frkUkIMGzly2TTGRcretH3gR
5hhNvvupFxJKk/lHHyYu/7oKvDLtNbq9VLg1p0XY8P0pmgo6JPKwSW4mepyuSDh6
6EkK73uHfhnJqi8qesjb1Q0+4O0ZLDv6ovZ6uLyVDSNviTF8admlml/zBAVEtLiG
iCYU1DdLf7p6U09O1mqeC3gbY7/APWhR9dBPrJ1ipBeqHBdRw59+3aQHVERhwLD1
2kg6U6dnlg/CCNeCnrhgj/oqnVpxwZ2oGN0zdNaou3A00soFvYLIHvkPxwosJbuk
rq1XkFCPdid+Pwdds7miQIhE3YO0rmGTMbAecw/UNe2ooyZ+FgORWjFKMLiFXYqe
Ne25HEPxzVfS4h+swD6D
=QP4+
-----END PGP SIGNATURE-----
-------------- next part --------------
=== modified file 'debian/changelog'

=== modified file 'debian/control'
--- debian/control	2010-07-27 22:56:03 +0000
+++ debian/control	2011-08-10 22:42:38 +0000
@@ -5,12 +5,12 @@
 Uploaders: Lionel Elie Mamane <lmamane at debian.org>,
  Thijs Kinkhorst <thijs at debian.org>,
  Hector Garcia <hector at debian.org>
-Build-Depends: debhelper (>= 7), autoconf, python-dev, python-support
+Build-Depends: debhelper (>= 7), autoconf, python-dev (>= 2.6.6-3~)
 Standards-Version: 3.9.1
 Homepage: http://www.list.org/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-mailman/trunk
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-mailman/trunk
-XS-Python-Version: current
+X-Python-Version: >= 2.4
 
 Package: mailman
 Architecture: any
@@ -19,7 +19,6 @@
  logrotate, cron, ucf, pwgen, lsb-base,
  exim4 | mail-transport-agent, apache2 | httpd
 Suggests: spamassassin, lynx, listadmin
-XB-Python-Version: ${python:Versions}
 Description: Powerful, web-based mailing list manager
  The GNU Mailing List Manager, which manages email discussion lists
  much like Majordomo and Smartmail. Unlike most similar products,

=== removed file 'debian/pyversions'
--- debian/pyversions	2009-03-14 14:18:16 +0000
+++ debian/pyversions	1970-01-01 00:00:00 +0000
@@ -1 +0,0 @@
-2.4-

=== modified file 'debian/rules'
--- debian/rules	2010-07-27 22:56:03 +0000
+++ debian/rules	2011-08-10 22:42:58 +0000
@@ -178,7 +178,7 @@
 	chmod 0644 debian/mailman/usr/lib/$(package)/cron/{crontab.in,paths.py}
 
 #	Python Policy
-	dh_pysupport -a `find debian/mailman/usr/lib/mailman/Mailman/ -type d`
+	dh_python2 -a `find debian/mailman/usr/lib/mailman/Mailman/ -type d`
 
 	install -d debian/mailman/usr/share/python/runtime.d
 	install debian/mailman.rtupdate debian/mailman/usr/share/python/runtime.d



More information about the Pkg-mailman-hackers mailing list