Comment 20 for bug 309684

Revision history for this message
Luka Renko (lure) wrote : Re: Please sync exiv2-0.18 from Debian Experimental

I put together package, but for some reason it did not compile with 0.18 in PPA - need to investigate these further:
http://launchpadlibrarian.net/22891119/buildlog_ubuntu-jaunty-amd64.pyexiv2_0.1.2-4build2~ppa~lure1_FAILEDTOBUILD.txt.gz

For transition, it would be helpful if pyexiv2 would be still supporting 0.17 version. Would it be possible to make it conditionally compile 0.17 or 0.18 Thumbnail code?
Koffice2/Krita does exactly this, by checking:

#if EXIV2_MAJOR_VERSION == 0 && EXIV2_MINOR_VERSION <= 17
    Exiv2::DataBuf rawData = exifData.copy();
    ioDevice->write((const char*) rawData.pData_, rawData.size_);
#else
    Exiv2::Blob rawData;
    Exiv2::ExifParser::encode( rawData, Exiv2::littleEndian, exifData );
    ioDevice->write((const char*) &*rawData.begin(), rawData.size() );
#endif

That way, it would be possible to use pyexiv2 with both.