On Thu, Oct 28, 2010 at 10:57:51PM +0200, Pavel Nemec wrote: > > > > Hm, from first link I see, that I should create new method. No > > > problem. Will try. > > So I tried. I created method > g_y2ccjast > > but It was stored in compiled file as > 0001491e T _Z10g_y2ccjastv > > as I do not know how to compile it with precise name I gaved it up.
The g_y2cc... symbol must be an object of the Y2ComponentCreator type. > > There might be a way around that, but I'd rather remove this > > senseless restriction in an online update. Can you patch > > YUIComponentCreator::createInternal and proceed? > > Did that. Actually worked. Oh, good. > However. > My library is placed in ~/.yast2/servers/libjast.so > and for sure I created link into > > ~/.yast2/plugin/libpy2jast.so.2 > > Strace showed, that those places are tried :) > > But at the end > I got: > [ui] YUIPlugin.cc(YUIPlugin):69 Could not load UI plugin "jast": > /usr/lib/YaST2/plugin/libpy2jast.so.2: cannot open shared object file: No > such > file or directory > > Which I had to say didn`t expected. > > After creating of symbolic link I was finally able to call my constructor. > > So. What I can to do run it without patching YUIComponentCreator ? Well, I would have to dig around a bit. It would help if I could try it on your actual code. Can I get a snapshot or a repository? We can also meet on irc://irc.freenode.org/#yast -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
pgpMAGheldzh7.pgp
Description: PGP signature
