[Pkg-freevo-maint] converting freevo to python-support

Sandro Tosi morph at debian.org
Mon Feb 1 23:37:30 UTC 2010


Hello Andrea,

On Sun, Jan 31, 2010 at 20:16, A Mennucc <mennucc1 at debian.org> wrote:
> Sandro Tosi ha scritto:
>>>
>>> it is due to 'python-central' , that is a tool (Debian specific)
>>> that installs and de-installs python stuff
>>>
>>> unfortunately it is buggy
>>
>> Sadly, we know python-central is broken, but luckily we have an
>> alternative: python-support!
>
> hi, I tried to convert freevo to use python-support, but it does not work.
> The converted version is in the latest SVN. It fails to load some modules.
> May you give it a look? I probably do not understand some fine points in
> python modules management...

I've giving it a look. I would be helpful, just as a starting point,
if you can detail what modules are not loading after switching to
python-support. For what I can see the switched version doesn't have
these files:

31d26
< ./usr/share/pyshared/freevo/audio/plugins/__init__.py
57d51
< ./usr/share/pyshared/freevo/dialog/plugins/__init__.py
140d133
< ./usr/share/pyshared/freevo/image/plugins/__init__.py
142d134
< ./usr/share/pyshared/freevo/__init__.py
236d227
< ./usr/share/pyshared/freevo/skins/main/__init__.py
251,252d241
< ./usr/share/pyshared/freevo/skins/plugins/
< ./usr/share/pyshared/freevo/skins/plugins/__init__.py
271d259
< ./usr/share/pyshared/freevo/tv/plugins/dvbstreamer/__init__.py
281d268
< ./usr/share/pyshared/freevo/tv/plugins/__init__.py

(so importing those modules will fail). That's because those
__init__.py files are empty, and so python-support removes it (there
are cases when you don't want them: more bin pkgs sharing the same
namespace, so no __init__.py in any of those packages). if you need
them, just add a comment in those files and they'll be installed and
the modules will be available again.

For a "live" example of how to do it, you can look at picard_0.11-2.1;
an exact of debian/rules:

build-stamp%:
       ....
       echo "# let it installed by recent python-support" >
picard/plugins/__init__.py
       ....

clean:
       ....
       > picard/plugins/__init__.py
       ....


There are also several lintian warnings you might want to address (it
makes the package easier to review :) ).

Also, since I pass there by, you might want to remove the installation
of linda overrides: linda has gone since a couple of years (at least)
:) .

Hope this help, and let me know if you'll succeed :)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi



More information about the Pkg-freevo-maint mailing list