[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#379455: Python Policy suggests dependencies that prevent the replacement of real packages by virtual ones



Package: python-defaults
Severity: important
Tags: patch

        Hi,

 As explained on debian-python@ in the attached message...

 Here's a patch.

   Bye,
-- 
Loïc Minier <lool@dooz.org>
--- Begin Message ---
        Hi,

 Python Policy 3.2 states:

 3.2 Programs Using a Particular Python Version

 """A program which requires a specific version of Python must begin with
 #!/usr/bin/pythonX.Y (or #!/usr/bin/env pythonX.Y). It must also
 specify a dependency on pythonX.Y and on any pythonX.Y-foo package
 providing necessary modules. It should not depend on any python-foo
 package, unless it requires a specific version of the package (since
 virtual packages cannot be versioned). If this is the case, it should
 depend on both the virtual package and the main package (e.g. Depends:
 python2.4-foo, python-foo (>= 1.0))."""


 Consider gnome-osd which depended on python2.4-pyorbit-omg before
 pyorbit was transitioned.  Now pyorbit only ships python-pyorbit-omg
 which Provides python2.4-pyorbit-omg, but users with gnome-osd
 installed -- and hence python2.4-pyorbit-omg as a real package
 installed -- won't get python-pyorbit-omg.

 Shouldn't such packages Depend on "python-pyorbit-omg,
 python2.4-pyorbit-omg", even if they don't need a particular version of
 python-pyorbit-omg (contrarily to what 3.2 §2 requests)?

   Bye,
-- 
Loïc Minier <lool@dooz.org>

--- End Message ---
diff -urN python-defaults-2.4.3-5/debian/changelog python-defaults-2.4.3-6/debian/changelog
--- python-defaults-2.4.3-5/debian/changelog	2006-06-16 18:15:25.000000000 +0200
+++ python-defaults-2.4.3-6/debian/changelog	2006-07-23 19:59:50.000000000 +0200
@@ -1,3 +1,11 @@
+python-defaults (2.4.3-6) unstable; urgency=low
+
+  * Recommend depending on "pythonX.X-foo, python-foo" instead of recommending
+    to only depend on "pythonX.X-foo" when a particular version is needed to
+    permit upgrades from real packages to virtual ones. (Closes: XXXXXX)
+
+ -- Loic Minier <lool@dooz.org>  Sun, 23 Jul 2006 19:58:17 +0200
+
 python-defaults (2.4.3-5) experimental; urgency=low
 
   * Tighten dependencies between packages built from this source.
diff -urN python-defaults-2.4.3-5/debian/python-policy.sgml python-defaults-2.4.3-6/debian/python-policy.sgml
--- python-defaults-2.4.3-5/debian/python-policy.sgml	2006-06-13 01:28:48.000000000 +0200
+++ python-defaults-2.4.3-6/debian/python-policy.sgml	2006-07-23 19:58:03.000000000 +0200
@@ -451,13 +451,11 @@
 	  must also specify a dependency on
 	  <package>python<var>X</var>.<var>Y</var></package> and on
 	  any <package>python<var>X</var>.<var>Y</var>-foo</package>
-	  package providing necessary modules. It should not depend on
-	  any <package>python-foo</package> package, unless it
-	  requires a specific version of the package (since virtual
-	  packages cannot be versioned). If this is the case, it
-	  should depend on both the virtual package and the main
-	  package (e.g. <tt>Depends: python2.4-foo, python-foo (>=
-	  1.0)</tt>).
+	  package providing necessary modules.  It should also depend on
+	  the corresponding <package>python-foo</package> packages, to
+	  ease upgrades from real to virtual packages; this is also the
+	  only way to depend on a particular version of the package
+	  (since virtual packages cannot be versioned).
 	</p>
 	<p>
 	  The notes on installation directories and bytecompilation

Reply to: