[Pkg-osg-devel] Embedded zlib

Alberto Luaces aluaces at udc.es
Fri Jan 28 16:48:14 UTC 2011


Hi,

every day Debian packaging tools amuse me a little bit more. This time,
lintian caught an embedded zlib library into the zip plugin. Indeed, the
unzip.{h,cpp} files contain the code. I have disabled this plugin at the
moment.

The not so easy part is how to get rid of those files. unzip.{h,cpp} not
only hold zlib, but some additional code for accesing files into a zip
archive, which was the main reason they were added to the plugin. The
plugin just calls three functions of the embedded library --- OpenZip,
UnzipItem and CloseZip ---. The problem is to find some available code
that does the same but depends on the external zlib.

So far I have found some code, "minizip", in the contrib directory of
zlib source. It owns a pair of files unzip.{h,c} whose content is
different from the ones currently in OSG, but they seem to offer the
same functionality --- they have unzOpen, unzClose... ---. I think we
could send a solution implemented in terms of those files to upstream.

But I wanted to know first your opinion in case you have worked with
zlib some more than me, that is almost no time.

-- 
Regards,

Alberto



More information about the Pkg-osg-devel mailing list