Bug#559378: bzr-hg: Incorrect versioned dependency on ‘mercurial’

2009-12-04 Thread peter green


Architecture: all
-Depends: bzr (= 1.13), bzr ( 2.1~), mercurial (= 1.3.1), 
${python:Depends}, ${misc:Depends}
+Depends: bzr (= 1.13), bzr ( 2.1~), mercurial (== 1.3.1), 
${python:Depends}, ${misc:Depends}
Suggests: bzr-gtk


That patch is no good for two reasons

Firstly there has never been a version 1.3.1 of the debian package only 
1.3.1-1, so that dependency could never be satisfied.

Secondly debian packages need to actually be installable with the versions of 
thier dependencies currently in the archive.


It seems upstream have recently marked 1.4 and 1.4.1 as suported in trunk, I 
dunno if said changes can be safely applied to the version currently in debian 
though (i'm just doing some flyby investigation of rc bugs)




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#559378: bzr-hg: Incorrect versioned dependency on ‘mercurial’

2009-12-04 Thread Ben Finney
On 04-Dec-2009, peter green wrote:
 Firstly there has never been a version 1.3.1 of the debian package
 only 1.3.1-1, so that dependency could never be satisfied.

Okay.

 Secondly debian packages need to actually be installable with the
 versions of thier dependencies currently in the archive.

The point, though, is that the program in the package *does not work*,
for anyone, with any version of the ‘mercurial’ package except 1.3.1.

That's exactly what the package's ‘Depends’ field should reflect, to
tell the Debian packaging system to stop two incompatible packages
from being simultaneously installed.

So, whatever constraints the ‘bzr-hg’ plug-in has on the versions of
Mercurial it works with, those constraints need to be reflected in the
‘bzr-hg’ package's ‘Depends’ field; and that field should be updated
when the constraints in a new ‘bzr-hg’ version are updated.

-- 
 \德不孤、必有鄰。 (The virtuous are not abandoned, they shall |
  `\ surely have neighbours.) —孔夫子 Confucius, 551 BCE – 479 BCE |
_o__)  |
Ben Finney b...@benfinney.id.au


signature.asc
Description: Digital signature


Bug#559378: bzr-hg: Incorrect versioned dependency on ‘mercurial’

2009-12-03 Thread Ben Finney
Package: bzr-hg
Version: 0.1-2
Severity: grave
Tags: patch
Justification: renders package unusable

The ‘bzr-hg’ plug-in has a strict constraint on the versions of
Mercurial it will support. In fact, it supports exactly one version:

=
$ grep hg_compatible_versions ./info.py 
hg_compatible_versions = [1.3.1]
=

The Debian packaging has the wrong dependency for the ‘mercurial’
package; it allows a different version (in this case, version ‘1.4-1’
which is the current version in Squeeze) to be installed, which then
causes the ‘bzr-hg’ plug-in to always fail:

=
$ bzr info /
bzr: ERROR: Unable to import library mercurial: bzr-hg: Mercurial version 1.4 
not supported.
=


The Debian packaging needs to reflect the same dependency constraints.
The following patch addresses this:

=== modified file 'debian/control'
--- debian/control  2009-10-13 13:45:50 +
+++ debian/control  2009-12-04 00:05:16 +
@@ -12,7 +12,7 @@

 Package: bzr-hg
 Architecture: all
-Depends: bzr (= 1.13), bzr ( 2.1~), mercurial (= 1.3.1), 
${python:Depends}, ${misc:Depends}
+Depends: bzr (= 1.13), bzr ( 2.1~), mercurial (== 1.3.1), 
${python:Depends}, ${misc:Depends}
 Suggests: bzr-gtk
 XB-Python-Version: ${python:Versions}
 Description: Bazaar plugin providing Mercurial integration



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (900, 'stable')
Architecture: powerpc (ppc64)

Kernel: Linux 2.6.30-2-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bzr-hg depends on:
ii  bzr   2.0.2-1easy to use distributed version co
ii  mercurial 1.4-1  scalable distributed version contr
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.13 register and build utility for Pyt

bzr-hg recommends no packages.

Versions of packages bzr-hg suggests:
ii  bzr-gtk   0.97.0-1   provides graphical interfaces to B

-- no debconf information

-- 
 \“The World is not dangerous because of those who do harm but |
  `\  because of those who look at it without doing anything.” |
_o__) —Albert Einstein |
Ben Finney b...@benfinney.id.au


signature.asc
Description: Digital signature