tag 629087 patch thanks > Because of "2.6" hardcoded in debian/pyversions, this package will > become uninstallable once we switch default Python version to 2.7.
Miro looks compatible with Python 2.7, and the current build system is easily tweaked to build for all supported python versions (patch attached, adds about 10% to the binary package size) Upstream claims compatibility with >= 2.6. Since natty, Ubuntu has modified this package to use python 2.7, and I don't see any bug reports that look caused by it: https://bugs.launchpad.net/ubuntu/+source/miro I've had a quick play with the attached patch, and it seems to work fine with Python 2.7 for me. SR -- Stefano Rivera http://tumbleweed.org.za/ H: +27 21 465 6908 C: +27 72 419 8559 UCT: x3127
diff -Nru miro-4.0.1.1/debian/changelog miro-4.0.1.1/debian/changelog --- miro-4.0.1.1/debian/changelog 2011-06-09 22:32:11.000000000 +0200 +++ miro-4.0.1.1/debian/changelog 2011-06-24 15:36:36.000000000 +0200 @@ -1,3 +1,14 @@ +miro (4.0.1.1-1.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Build for Python >= 2.6: + - Drop deprecated pycompat. + - Replace pyversions with XS-Python-Version >= 2.6. + - Build-depend on python-all-dev instead of python2.6-dev. + - Un-version shebangs. + + -- Stefano Rivera <stefa...@debian.org> Fri, 24 Jun 2011 15:05:08 +0200 + miro (4.0.1.1-1) unstable; urgency=low * New upstream release (Closes: #627800). diff -Nru miro-4.0.1.1/debian/control miro-4.0.1.1/debian/control --- miro-4.0.1.1/debian/control 2011-06-07 23:40:00.000000000 +0200 +++ miro-4.0.1.1/debian/control 2011-06-24 15:23:22.000000000 +0200 @@ -4,7 +4,7 @@ Maintainer: Uwe Hermann <u...@debian.org> Build-Depends: cdbs (>= 0.4.43), debhelper (>= 7.0.50~), - python2.6-dev, + python-all-dev, python-support (>= 0.6), python-pyrex (>= 0.9.6.4), python-gtk2-dev, @@ -13,6 +13,7 @@ pkg-config, Standards-Version: 3.9.2 Homepage: http://www.getmiro.com +XS-Python-Version: >= 2.6 Package: miro Architecture: any diff -Nru miro-4.0.1.1/debian/pycompat miro-4.0.1.1/debian/pycompat --- miro-4.0.1.1/debian/pycompat 2011-06-07 23:40:00.000000000 +0200 +++ miro-4.0.1.1/debian/pycompat 1970-01-01 02:00:00.000000000 +0200 @@ -1 +0,0 @@ -2 diff -Nru miro-4.0.1.1/debian/pyversions miro-4.0.1.1/debian/pyversions --- miro-4.0.1.1/debian/pyversions 2011-06-07 23:40:00.000000000 +0200 +++ miro-4.0.1.1/debian/pyversions 1970-01-01 02:00:00.000000000 +0200 @@ -1 +0,0 @@ -2.6 diff -Nru miro-4.0.1.1/debian/rules miro-4.0.1.1/debian/rules --- miro-4.0.1.1/debian/rules 2011-06-07 23:40:00.000000000 +0200 +++ miro-4.0.1.1/debian/rules 2011-06-24 15:26:35.000000000 +0200 @@ -35,6 +35,10 @@ @# Remove unneeded files from the miro deb. rm -rf debian/miro/usr/share/pyshared/miro/test +binary-post-install/miro:: + @# Fixup shebangs. + sed -i -e '1 s,#!.*python.*,#! /usr/bin/python,' debian/miro/usr/bin/* + binary-post-install/miro-data:: @# Remove unneeded files from the miro-data deb. rm -rf debian/miro-data/usr/share/miro/resources/testdata