Le jeudi 04 octobre 2007 à 15:28 +0200, Uwe Hermann a écrit : > On Thu, Oct 04, 2007 at 01:31:47PM +0200, Josselin Mouette wrote: > > Package: democracyplayer > > Version: 0.9.6-2 > > Severity: important > > > > Hi, > > > > democracyplayer is built with debian/pyversions being "2.4". If the > > supported versions start with 2.4, you need to set "2.4-" instead, so > > that later versions are supported. > > > > If only version 2.4 is supported (which is unlikely), please use > > /usr/bin/python2.4 in the binary and use "dh_pysupport -V 2.4". > > Yep, only 2.4 is supported at the moment, there were massive problems > when I tried building/running it with 2.5.
OK, then I'm afraid you need to make a few more changes to the package before the python 2.5 migration. Currently, the package is using /usr/bin/python and a number of public modules. When the default python version changes, the package will stop being installable as it can only work with version 2.4. > Why the 'dh_pysupport -V 2.4'? Isn't that equivalent to using '2.4' > in the debian/pyversions file? It's subtly different. The debian/pyversions file is about public modules; setting "2.4" in it tells python-support that the package uses /usr/bin/python and only supports version 2.4 of the interpreter. Hence the "Depends: python (<< 2.5)" that you are obtaining. (We are forcing public modules to be available for the default python version.) Using "dh_pysupport -V 2.4" tells python-support that the package is using /usr/bin/python2.4 instead of /usr/bin/python. It doesn't change how dependencies are computed for scripts (it looks for python2.4 in the shebang), but it changes the behavior for *private* modules. In this case, they will always be considered as modules for 2.4, even when the default python version moves to 2.5. There will be a dependency on python2.4 instead of python (>= 2.4, << 2.5), and the package will remain installable. So, to sum up, I think these are the required steps for your package: * move all modules from /usr/lib/python2.4/site-packages to a private directory: /usr/share/democracyplayer * patch /usr/bin/democracyplayer to set the shebang to python2.4 * also patch it with sys.path.append("/usr/share/democracyplayer") * call dh_pysupport -V2.4 Feel free to ask if you need some help or a complete patch. Cheers, -- .''`. Josselin Mouette /\./\ : :' : [EMAIL PROTECTED] `. `' [EMAIL PROTECTED] `- Debian GNU/Linux -- The power of freedom
signature.asc
Description: Ceci est une partie de message numériquement signée