[pkg-boost-devel] Bug#483977: Bug#483977: libboost1.35-dev: dependency problem with asio
Simon Richter
Simon.Richter at hogyros.de
Wed Jun 4 00:30:05 UTC 2008
Hi,
> I'm not sure there's a bug here, but I'd like the asio maintainer to
> comment. Now that asio is released with Boost, will further
> maintenance be done within boost or on the asio.sourceforge.net site?
Yes.
As long as Christopher ships an independent ASIO library that uses the
asio namespace, we should provide something that follows this interface,
simply because applications may depend on it.
I am thinking about replacing all the public header files with stubs
that include the ASIO headers from Boost, and use "using namespace" to
forward all the names, but I'm not sure whether that will actually work.
> If the latter, the question becomes how to use libasio-dev together
> with Boost's -dev package that also includes asio. Building with two
> asio libraries together seems fraught with danger, IMHO.
No, that is safe -- programs attempting to mix both in the same event
loop will fail to compile, and programs using two event loops in
different threads should work normally.
> This started with 1.35.0; the unversioned libboost-dev (Boost 1.34.1)
> will vanish when it is no longer used as a build-dep. Hopefully this
> will happen around the time 1.36 hits the archive so that we don't
> have to maintain more than 2 Boost versions. :-)
Can we get a virtual package then?
> > ... or should libasio-dev depend on libboost-dev | libboost1.35-dev ?
> > ... so please reassign this report..
> I suspect that would also be a mistake. If you have both libasio-dev
> and libboost1.35-dev installed, you have two independent copies of
> asio. Unless one is *extremely* vigilant about include directories,
> you'd end up mixing the two.
Boost's ASIO should be below /usr/include/boost, so that ought to be
safe.
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20080604/de4e22f2/attachment.pgp
More information about the pkg-boost-devel
mailing list