[Kolab-devel] [pkg-kolab] Bug#730600: Bug#730600: libkolab(xml): New upstream version available

Sune Vuorela sune at debian.dk
Tue Jul 1 11:35:19 CEST 2014


On Tuesday 01 July 2014 08:43:11 Mike Gabriel wrote:
> Hi Diane,
> 
> On  So 29 Jun 2014 20:12:23 CEST, Diane Trout wrote:
> > I mentioned the libcalendaring thing in #debian-qt-kde, Sune Vuorela
> > (svuorela) listed these as his requirements for libcalendaring getting
> > into
> > Debian.
> > 
> > 1) libcalendaring-* doesn't have a single symbol in common with kdepimlibs
> > *and*
> > 2) there are two versions of libkolab(-xml) that doesn't conflict and
> > 3) these versions of libkolab(-xml) doesn't share symbols, then I can
> > start
> > withdraw my objections
> > 
> > Diane
> 
> Thanks for discussing this with Sune. He is one of the best persons to
> consult on KDE stuff in Debian.
> 
> However, the demands make me choke a bit.

It should be quite easy just to add a namespace LibCalendaring { ... } around 
all the .h files provided by libcalendaring and a using namespace 
LibCalendaring in the cpp files.

For the the libkolab(-xml) files, it should also just be a matter of adding 
ifdef'ed namespace LibCalendaring { ... } around all the classes, and a 
ifdef'ed using namespace LibCalendaring in the .cpp files, if built against 
libcalendaring, and ensure it is built with different filenames when built 
against libcalendaring.

That way, there are no symbol clashes and no file clashes, and you can have a 
kolab test server on your laptop together with kontact and be sure that it 
doesn't blow up in your face.

(replace the namespace LibCalendaring with whatever you find is a better name)

/Sune


More information about the devel mailing list