[mp3togo] deb package bug

sim sim at puddle.ca
Mon May 29 07:03:28 PDT 2006


On Mon, May 29, 2006 at 01:26:36PM +0100, Sam Liddicott wrote:
> 1. Thanks for mp3togo with Amarok support - top stuff

You're welcome, I'm glad you find it useful.

> 2. bug in debian dependancies;
> 
> instead of depending on
> 
> python<2.4
> 
> it should depend on
> 
> python<2.4 || python2.3 || python2.2

The actual line in the control file is this:
Depends: ${python:Depends}, python-pyvorbis, python-id3, mpg321, vorbis-tools

mp3togo uses the new CDBS, or the Common Debian Build System. CDBS
automates most of the packaging chores, the rules file is reduced to six
lines, and helps to ensure policy compliance. 

Quoting the Debian Python policy manual:

"""1.3.1 Interpreter Name

Python scripts depending on the default Python version (see Main
package, Section 1.2) or not depending on a specific Python version
should use python (unversioned) as the interpreter name.

Python scripts that only work with a specific Python version must
explicitely use the versioned interpreter name (pythonX.Y). """

"""2.4 Dependencies

Packaged modules available for the default Python version as described
in Support Only The Default Version, Section 2.2.1 must depend on
"python (>= X.Y), python (<< X.Y+1)". If they require other modules to
work, they must depend on the corresponding python-foo. They must not
depend on any pythonX.Y-foo.

Packaged modules available for one particular version of Python must
depend on the corresponding pythonX.Y package instead. If they need
other modules, they must depend on the corresponding pythonX.Y-foo
packages, and must not depend on any python-foo."""


CDBS automaticaly generates the control file depends line as follows:
Depends: python (>= 2.3), python (<< 2.4), python-pyvorbis, python-id3, mpg321, vorbis-tools

 
> This fits common ways of installing multiple python ans my ubuntu 
> installation.
 
The Debian package on the website is exactly that; a Debian package.
Judging from my server logs, it has been downloaded more times by Ubuntu
users, however the package is targeted for Debian. 

I've been a long time Debian user. This is my first Debian package, I am
by no means an expert. My goal is to get the package into the main
distribution and that requires policy compliance.

I'm not an Ubuntu user and know very little about the OS. I'm happy that
Ubuntu users have found my program to be useful. If I can make changes
to the package that are Debian neutral and help Ubuntu, I gladly will. 

I'd also be happy to host an Ubuntu specific package, but creating one
is beyond the scope of my skills.

> Also the interpreter line (line 1) we need a cunning way to specify the 
> right python, perhaps the install scriptlet should fix this up? Or some 
> generic python head which feeds the main body to the right python?
 
mp3togo makes use of generators, so requires at least the default
Debian version 2.3, aside from that, there is nothing particularly
version specific. It is reported to run on 2.4 with no problems.

> Sam

Thanks for your interest Sam, I hope my Debian-centrism is not too
inconvenient for you. 


-- 
sim






More information about the mp3togo mailing list