2007/10/8, Josselin Mouette <[EMAIL PROTECTED]>:
> Le lundi 08 octobre 2007 à 09:12 +0200, Joop Stakenborg a écrit :
> > > Furthermore, _Hamlib.so links to libpython, which brings an undesired
> > > dependency on python2.4; please don't do this.
> >
> > So how do I prevent _Hamlib.so to link against libpython2.4.so.1.0
> > specifically?
>
> There must be a -lpython2.4 added specifically in the build process.
>

I am sorry, still don't get it. Using ldd I see the following:
$ ldd /usr/share/python-support/python-libhamlib2/_Hamlib.so
        libpython2.4.so.1.0 => /usr/lib/libpython2.4.so.1.0 (0xb7d9f000)

Adding -lpython2.4 won't help, because we do dynamic linking. We still
end up with python2.4 dependencies. The "Python binding" section in
bindings/Makefile adds the following rules:

PYTHON_LDFLAGS = -L/usr/lib/python2.4/config -lpython2.4

Which looks okay to me. We can only achieve what you want by doing
static linking, am I right?

> > Should I build against both python2.4 and python2.5 and
> > distribute 2 separate packages?
>
> No, you should do that and distribute them in the same package, but if
> they link to libpython you're going to end up having a dependency on
> both python2.4 and python2.5.
>
> > > Finally, it would be nice to switch to a multi-build system so that your
> > > package is already built for python 2.5.
> >
> > I don't understand what you are trying to say. What is a multi-build system?
>
> It is a system in which you build the module once for each available
> python version, like most python extensions are doing currently.
>

This is a task for upstream. Currently they have decided to build
against python2.4, which is okay for me, it is also the default in
Debian. I don't have the knowledge to do a multi-build, neither has
upstream. Unless you can provide patches, which I can commit to
upstream CVS.


Thanks for explaining so far!

> Cheers,
> --
>  .''`.           Josselin Mouette        /\./\
> : :' :           [EMAIL PROTECTED]
> `. `'                        [EMAIL PROTECTED]
>   `-  Debian GNU/Linux -- The power of freedom
>
>


Regards,
Joop
-- 
Linux for your hamradio desktop
_______________________________
  http://www.qsl.net/pg4i/linux

Reply via email to