[Digikam-devel] [Kde-graphics-devel] libjpeg 8 requirement considered harmful
Pau Garcia i Quiles
pgquiles at elpauer.org
Sat Jan 19 21:44:07 GMT 2013
The proper solution for these cases is Fedora shipping two runtime versions
of libjpeg, like Debian and others do. This "problem" is caused by Fedora's
policy requiring all packages in the distribution to use a single library
version, and that version being an old one, not a new one (yes, using
libjpeg-turbo is the same as using libjpeg 6.2: an old version).
How has Fedora solved the problem for other libraries?
On Fri, Jan 18, 2013 at 6:52 PM, Kevin Kofler <kevin.kofler at chello.at>wrote:
> as you have probably noticed, libkdcraw started requiring libjpeg ≥ 8 for
> of its functionality as of 4.10. Unfortunately, this is a problem for
> and will remain a problem for Fedora for the foreseeable future.
> To explain why, let's discuss some history:
> * IJG libjpeg, as released by IJG, is not optimized, making it very slow
> some real-time applications, such as VNC. Therefore, the authors of
> developed a speed-optimized fork of libjpeg, called libjpeg-turbo:
> Initially, this was shipped as a bundled library, but because 1. we
> dislike bundled libraries in Fedora and 2. we want all applications to
> from the speed optimizations, since 2010 (Fedora 14), Fedora ships this
> libjpeg-turbo fork instead of IJG libjpeg:
> * libjpeg-turbo is API/ABI-compatible with IJG libjpeg 6.2 (which, by the
> is also the version in the LSB and the one binary-only software (still)
> to expect).
> * IJG libjpeg, on the other hand, started making API and ABI changes to
> code to support some new features. While libjpeg-turbo has some support for
> the IJG lijpeg 8 ABI, libjpeg-turbo's upstream considers the additions and
> changes unnecessary and useless (mainly because JPEG files using the new
> features cannot be read with older libjpeg implementations!), will not
> guarantee that any added functionality actually works (only ABI
> and strongly recommends against enabling the new ABI:
> * In Fedora, we had initially planned to enable the IJG libjpeg 8 ABI for
> upcoming Fedora 19:
> but with the release of IJG libjpeg 9, the topic came up again, and
> the above-cited discussion with upstream) it was decided to drop that
> In other words: FEDORA WILL ONLY SHIP A libjpeg-6.2-COMPATIBLE ABI FOR THE
> FORESEEABLE FUTURE.
> That said, adding new functions is not ABI-incompatible and can and will be
> done where it makes sense (to libjpeg-turbo upstream). For example, the new
> jpeg_mem_src() function will be present in next libjpeg-turbo release.
> send any requests for new functions directly to the upstream libjpeg-turbo
> So the questions are:
> * Why does libkdcraw require version ≥ 8 of libjpeg?
> * What functionality from the new version does it actually require?
> * Can it be made to work with libjpeg-turbo? If yes, how much work would
> be? (I'm willing to do the work if it isn't too much.)
> * If you need (a) specific new function(s) (now or in the future), would
> it be
> possible to test for that/those function(s) specifically instead of the
> ABI version?
> Kind regards,
> Kevin Kofler
> Kde-graphics-devel mailing list
> Kde-graphics-devel at kde.org
Pau Garcia i Quiles
(Due to my workload, I may need 10 days to answer)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Digikam-devel