Re: Bug#385909: pyversions: command not found
On Mon, Sep 04, 2006 at 09:16:59AM +0200, Raphael Hertzog wrote: > On Mon, 04 Sep 2006, Steve Langasek wrote: > > > Pyversions is mainly used at build-time and not at installation time. > > > Whatever requires pyversions (and in this case python-gnome2) should be > > > depending on the first version of python that provides it (and now the > > > good question: how do you do that while still using ${python:Depends}?). > > > > By depending on python (>= 2.3.5-6), ${python:Depends}, which will duplicate > > a dependency but still work? > > Yes and generate an annoying lintian warning. :) Or by making dh_python (or whatever we'll end up using) check if an adequate dependency is already there and not generate a duplicate one. Which would then have to fail if the other dependency conflicts with what dh_python does think it should be. :) Seriously, this might be useful for the little library that Raphael proposed for the shared dependency generation. Regards Floris -- Debian GNU/Linux -- The Power of Freedom www.debian.org | www.gnu.org | www.kernel.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#385909: pyversions: command not found
Le dimanche 03 septembre 2006 à 18:48 -0500, Steve Langasek a écrit : > On Sun, Sep 03, 2006 at 11:38:19PM +0200, Julien Danjou wrote: > > Suggested packages: > > python-doc python-profiler > > The following NEW packages will be installed: > > python-minimal > > The following packages will be upgraded: > > python > > 1 upgraded, 1 newly installed, 0 to remove and 212 not upgraded. > > 221 not fully installed or removed. > > Need to get 0B/152kB of archives. > > After unpacking 119kB of additional disk space will be used. > > (Reading database ... 142617 files and directories currently installed.) > > Preparing to replace python 2.3.5-5 (using .../python_2.4.3-11_all.deb) > > running python pre-rtupdate hooks for python2.4... > > /usr/share/python/runtime.d/python-gnome2.rtupdate: line 4: pyversions: > > command not found > > Whoops, apparently there's a whole in python policy, packages which use > pyversions (which is pretty much anything doing bytecompiling, right?) need > a dependency on python (>= 2.3.5-6)... No, python-gnome2 already depends on python-support which has this requirement. I think this is rather a bug in python. The preinst calls the hooks, while the pyversions.py script is held in python-minimal, and there is no Pre-Depends: on python-minimal. -- .''`. Josselin Mouette/\./\ : :' : [EMAIL PROTECTED] `. `'[EMAIL PROTECTED] `- Debian GNU/Linux -- The power of freedom
Re: Bug#385909: pyversions: command not found
On Mon, 04 Sep 2006, Steve Langasek wrote: > > Pyversions is mainly used at build-time and not at installation time. > > Whatever requires pyversions (and in this case python-gnome2) should be > > depending on the first version of python that provides it (and now the > > good question: how do you do that while still using ${python:Depends}?). > > By depending on python (>= 2.3.5-6), ${python:Depends}, which will duplicate > a dependency but still work? Yes and generate an annoying lintian warning. :) Cheers, -- Raphaël Hertzog Premier livre français sur Debian GNU/Linux : http://www.ouaza.com/livre/admin-debian/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#385909: pyversions: command not found
On Mon, Sep 04, 2006 at 08:41:55AM +0200, Raphael Hertzog wrote: > On Sun, 03 Sep 2006, Steve Langasek wrote: > > On Sun, Sep 03, 2006 at 11:38:19PM +0200, Julien Danjou wrote: > > > Suggested packages: > > > python-doc python-profiler > > > The following NEW packages will be installed: > > > python-minimal > > > The following packages will be upgraded: > > > python > > > 1 upgraded, 1 newly installed, 0 to remove and 212 not upgraded. > > > 221 not fully installed or removed. > > > Need to get 0B/152kB of archives. > > > After unpacking 119kB of additional disk space will be used. > > > (Reading database ... 142617 files and directories currently installed.) > > > Preparing to replace python 2.3.5-5 (using .../python_2.4.3-11_all.deb) > > > running python pre-rtupdate hooks for python2.4... > > > /usr/share/python/runtime.d/python-gnome2.rtupdate: line 4: pyversions: > > > command not found > > Whoops, apparently there's a whole in python policy, packages which use hole > > pyversions (which is pretty much anything doing bytecompiling, right?) need > > a dependency on python (>= 2.3.5-6)... > Pyversions is mainly used at build-time and not at installation time. > Whatever requires pyversions (and in this case python-gnome2) should be > depending on the first version of python that provides it (and now the > good question: how do you do that while still using ${python:Depends}?). By depending on python (>= 2.3.5-6), ${python:Depends}, which will duplicate a dependency but still work? -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#385909: pyversions: command not found
On Sun, 03 Sep 2006, Steve Langasek wrote: > On Sun, Sep 03, 2006 at 11:38:19PM +0200, Julien Danjou wrote: > > Suggested packages: > > python-doc python-profiler > > The following NEW packages will be installed: > > python-minimal > > The following packages will be upgraded: > > python > > 1 upgraded, 1 newly installed, 0 to remove and 212 not upgraded. > > 221 not fully installed or removed. > > Need to get 0B/152kB of archives. > > After unpacking 119kB of additional disk space will be used. > > (Reading database ... 142617 files and directories currently installed.) > > Preparing to replace python 2.3.5-5 (using .../python_2.4.3-11_all.deb) > > running python pre-rtupdate hooks for python2.4... > > /usr/share/python/runtime.d/python-gnome2.rtupdate: line 4: pyversions: > > command not found > > Whoops, apparently there's a whole in python policy, packages which use > pyversions (which is pretty much anything doing bytecompiling, right?) need > a dependency on python (>= 2.3.5-6)... Pyversions is mainly used at build-time and not at installation time. Whatever requires pyversions (and in this case python-gnome2) should be depending on the first version of python that provides it (and now the good question: how do you do that while still using ${python:Depends}?). Cheers, -- Raphaël Hertzog Premier livre français sur Debian GNU/Linux : http://www.ouaza.com/livre/admin-debian/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug#385909: pyversions: command not found
On Sun, Sep 03, 2006 at 11:38:19PM +0200, Julien Danjou wrote: > Suggested packages: > python-doc python-profiler > The following NEW packages will be installed: > python-minimal > The following packages will be upgraded: > python > 1 upgraded, 1 newly installed, 0 to remove and 212 not upgraded. > 221 not fully installed or removed. > Need to get 0B/152kB of archives. > After unpacking 119kB of additional disk space will be used. > (Reading database ... 142617 files and directories currently installed.) > Preparing to replace python 2.3.5-5 (using .../python_2.4.3-11_all.deb) > running python pre-rtupdate hooks for python2.4... > /usr/share/python/runtime.d/python-gnome2.rtupdate: line 4: pyversions: > command not found Whoops, apparently there's a whole in python policy, packages which use pyversions (which is pretty much anything doing bytecompiling, right?) need a dependency on python (>= 2.3.5-6)... -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ signature.asc Description: Digital signature