[Pkg-xen-devel] [patch] Packages ocaml libraries

Ian Campbell ijc at hellion.org.uk
Fri Oct 28 11:47:01 UTC 2011


On Wed, 2011-10-26 at 17:52 +0200, Bastian Blank wrote:
> On Wed, Oct 26, 2011 at 04:28:37PM +0100, Ian Campbell wrote:
> > On Wed, 2011-10-26 at 17:16 +0200, Bastian Blank wrote:
> > > Ask upstream why they insist on breaking the interfaces with every
> > > version.
> > We started the libxl project in part to add a library interface for all
> > toolstacks which can have a stable API which we can support long term.
> > We do not want to commit to maintaining a stable API for some of the
> > other lower level libs such as libxenctrl though but libxl is intended
> > to abstract this.
> 
> Thats a beginning. However it should not export stuff from libxenctrl
> and libxenstore then (by including the header in libxl.h).

I don't think we do (at least not any more). I certainly remember fixing
the xs.h one myself. Oh, wait, only in unstable -- good news is that 4.2
will be better ;-)

> However my problem is more with stuff like libxenstore, that is tighly
> coupled with xenstored.

That might be an area where we can try to do better in the future, that
stuff is relatively stable (in the sense of unchanging) these days.

Hrm, it's actually a bit tricky/subtle since as well as the usual ABI
related stuff we need the SONAME to somehow reflect the protocol used
for speaking to xenstored. I suspect that whatever scheme we chose to do
this (e.g. adding a protocol revision to the ABI) would end up
effectively making xenstored and libxenstore a matched pair, which is
pretty much the status quo. I suppose it would prevent strange and
tricky to debug errors if you got mismatch though.

Ian.
-- 
Ian Campbell
Current Noise: Nile - Churning The Maelstrom

Whatever doesn't succeed in two months and a half in California will
never succeed.
		-- Rev. Henry Durant, founder of the University of California




More information about the Pkg-xen-devel mailing list