[Python-modules-team] Bug#679819: Dropping Provides field broke depending software (python-avogadro)

Scott Kitterman debian at kitterman.com
Mon Jul 2 00:13:30 UTC 2012


That's a bug in the policy I failed to notice.  It should be restricted to 
packages that build modules only for the non-default version of Python which 
Avogadro doesn't.  One or the other package needs to be changed.  I agree with 
that.

python-avogadro is the only package in the archive that depends on python2.7-
qt4.  I think it makes more sense to fix it there than in python-qt4 and depend 
on a bug in poilcy, but since that's what it says, I'll fix it in python-qt4 if 
you prefer.

Note that XS-Python-Version: current is long deprecated and has never been 
supported by dh_python2, so that part of your package isn't doing anything.

Here's all that's needed:

diff -Nru avogadro-1.0.3/debian/changelog avogadro-1.0.3/debian/changelog
--- avogadro-1.0.3/debian/changelog     2012-06-06 16:55:16.000000000 -0400
+++ avogadro-1.0.3/debian/changelog     2012-07-01 20:10:16.000000000 -0400
@@ -1,3 +1,11 @@
+avogadro (1.0.3-6) unstable; urgency=low
+
+  * Drop semi-obsolete use of version specify python packages to restore
+    installability (python-qt4 stopped providing one of the required packages
+    (Closes: #679819)
+
+ -- ...  Sun, 01 Jul 2012 20:08:53 -0400
+
 avogadro (1.0.3-5) unstable; urgency=low
 
   * debian/control (Uploaders): Removed Jordan Mantha. Thanks for your work.
diff -Nru avogadro-1.0.3/debian/control avogadro-1.0.3/debian/control
--- avogadro-1.0.3/debian/control       2012-06-06 16:50:23.000000000 -0400
+++ avogadro-1.0.3/debian/control       2012-07-01 20:08:49.000000000 -0400
@@ -99,6 +99,9 @@
 Priority: extra
 XB-Python-Version: ${python:Versions}
 Depends: ${misc:Depends},
+         python-numpy,
+         python-qt4,
+         python-sip,
          ${pyavo:Depends},
          ${python:Depends},
          ${shlibs:Depends},
diff -Nru avogadro-1.0.3/debian/rules avogadro-1.0.3/debian/rules
--- avogadro-1.0.3/debian/rules 2012-05-04 10:42:44.000000000 -0400
+++ avogadro-1.0.3/debian/rules 2012-07-01 20:07:32.000000000 -0400
@@ -31,6 +31,3 @@
        dh_numpy -ppython-avogadro
        dh_sip
 
-override_dh_gencontrol:
-       dh_gencontrol -- -V'pyavo:Depends=python$(PYTHON_VERSION)-numpy, 
python$(PYTHON_VERSION)-qt4, python$(PYTHON_VERSION)-sip'
-

You'll find that it makes absolutely no difference about what packages are 
pulled in when it's installed.  If you'd be willing to fix it this way, I'll 
take on talking to the release team about it.





More information about the Python-modules-team mailing list