[Pkg-hpijs-devel] Bug#637268: hplip: please replace deprecated python-support with dh_python2

Steve Langasek steve.langasek at canonical.com
Wed Aug 10 00:52:58 UTC 2011


Package: hplip
Version: 3.11.5-2
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

Hi folks,

python-support is now officially deprecated:

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

In Ubuntu, we are removing python-support from our CDs for the Ubuntu 11.10
release.  As part of that work, we have converted hplip to dh_python2
according to these guidelines:

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

Please consider applying the attached patch in Debian, so to complete the
migration there as well.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
=== modified file 'debian/control'
--- debian/control	2011-07-16 20:24:28 +0000
+++ debian/control	2011-08-09 22:46:06 +0000
@@ -6,10 +6,10 @@
 Build-Depends: libcups2-dev, libcupsimage2-dev, libsane-dev, libsnmp-dev, libjpeg-dev, libusb-dev (>= 0.1.8), 
  debhelper (>= 5.0.37.2), autotools-dev, dpatch (>= 2), autoconf, automake, libtool, cups (>= 1.4.0) | cupsddk,
  patch (>= 2.5.9-3bpo1), findutils (>= 4.2.28), 
- python-dev, python-all-dev, python-qt4, pyqt4-dev-tools, python-support (>= 0.3),
+ python-dev, python-all-dev (>= 2.6.6-3~), python-qt4, pyqt4-dev-tools,
  python-dbus (>= 0.80), python-qt4-dbus, libdbus-1-dev, libudev-dev [!hurd-i386 !kfreebsd-amd64 !kfreebsd-i386], policykit-1,
  fdupes, lsb-release, pyppd
-XS-Python-Version: >= 2.5
+X-Python-Version: >= 2.5
 Standards-Version: 3.8.4
 Homepage: http://hplipopensource.com/hplip-web/index.html
 Vcs-Svn: svn://svn.debian.org/pkg-hpijs/hplip/trunk/
@@ -27,7 +28,6 @@
 Suggests: hplip-gui, hplip-doc, python-notify, system-config-printer
 Conflicts: hpijs (<< 2.1), hplip-dbg (<< 3.10.5-1ubuntu1), hplip-base, hplip-gui (<< 2.8.10), hpoj
 Replaces: hplip-data (<< 0.9.3), hplip-base, hplip-gui (<< 2.8.10)
-XB-Python-Version: ${python:Versions}
 Description: HP Linux Printing and Imaging System (HPLIP)
  The HP Linux Printing and Imaging System provides full support for
  printing on most HP SFP (single function peripheral) inkjets and many

=== removed file 'debian/pycompat'
--- debian/pycompat	2006-09-15 18:00:07 +0000
+++ debian/pycompat	1970-01-01 00:00:00 +0000
@@ -1 +0,0 @@
-2

=== modified file 'debian/rules'
--- debian/rules	2011-07-24 20:50:00 +0000
+++ debian/rules	2011-08-10 00:25:44 +0000
@@ -373,7 +373,7 @@
 	dh_compress -i
 	dh_fixperms -i
 #	dh_perl -i
-	dh_pysupport -i
+	dh_python2 -i /usr/share/hplip
 #	dh_makeshlibs -i
 	dh_installdeb -i
 	dh_shlibdeps -i --dpkg-shlibdeps-params=--ignore-missing-info
@@ -422,7 +422,7 @@
 	dh_compress -a
 	dh_fixperms -a
 	dh_makeshlibs -a
-	dh_pysupport -a
+	dh_python2 -a --no-guessing-versions
 	dh_installdeb -a
 	dh_shlibdeps -a --dpkg-shlibdeps-params=--ignore-missing-info
 	dh_gencontrol -a -- \



More information about the Pkg-hpijs-devel mailing list