[pkg-boost-devel] Boost.Python: providing libs for both Python 2.4 and 2.5.

Dominic Hargreaves dom at earth.li
Mon Mar 24 17:52:47 UTC 2008


On Fri, Mar 21, 2008 at 12:18:17PM -0500, Steve M. Robbins wrote:

> I wrote about three weeks ago [1] that I'm trying to get Boost's
> Python extension helper library building with multiple Python
> versions.  Several very helpful suggestions were made, for which I am
> grateful.
> 
> I have been plugging away, very slowly, ever since.  I'm hoping to
> upload it later today and I'd appreciate have some second opinions on
> what I've done.
> 
> I settled on creating libraries with suffix "-py24" and "-py25" using
> the available Boost mechanism of "--buildid" since that ensures the
> SONAME also has "-py24" or "-py25".  The shared library files thus
> coexist peacefully.

Hi,

I see you've now uploaded this, and it seems to fix my problem building
the mapnik python bindings[1]. Thanks!

However, it looks to be like the shlibs file needs updating. My
python-mapnik package is linked against the py25 library:

dom at callisto:~$ ldd /usr/lib/python2.5/site-packages/mapnik/_mapnik.so|grep boost_python
        libboost_python-gcc42-mt-1_34_1-py25.so.1.34.1 => /usr/lib/libboost_python-gcc42-mt-1_34_1-py25.so.1.34.1 (0xb7b2c000)

yet my package still has a Depends line (generated from shlibdeps) of
libboost-python1.34.1 (>= 1.34.1-2.1)

which I don't think is going to work, since that library only appeared
in libboost-python1.34.1 1.34.1-8. Hence upgrades will potentially
break.

Have I done something wrong, or is this analysis correct and the shlibs
file needs updating? If that latter, let me know if a report in the
BTS[2] would be (more) useful.

Thanks,
Dominic.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468770

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)



More information about the pkg-boost-devel mailing list