Source: libjpeg-turbo
Version: 1:2.1.5-3
Severity: wishlist
Control: block -1 by 1089018 1089019 1089020 1089021
Please build libjpeg-turbo with the libjpeg 8 API instead of 6.2. This
involves passing -DWITH_JPEG8=1 to dh_auto_configure and renaming
libjpeg62-turbo-dev and libjpeg62-turbo.
Ubuntu's libjpeg-turbo packaging has been using the 8 API since 2011
and packages seem to build fine with it. Ubuntu's library name is
libjpeg-turbo8 so I suggest using that unless LIntian complains about
it.
Also, Ubuntu's packaging does this. I think that means that we are
treating this library as if it is the actual libjpeg-dev 8c so that
things built against libjpeg-turbo would also work if the original
libjpeg is installed instead of libjpeg-turbo unless the package is
using API exclusive to libjpeg-turbo.
override_dh_makeshlibs:
: # keep the original libjpeg symbol version
dh_makeshlibs -- -v8c
: # ... and mark libjpeg-turbo only symbols with a different
version
sed -i "$$(for i in $$(cat debian/libjpeg-turbo-only.symbols);
do echo "/^ $$i/s/8c$$/8c-2ubuntu5~/;"; done)" debian/libjpeg-
turbo8/DEBIAN/symbols
Only a few packages Build-Depend against libjpeg62-turbo-dev; the rest
use libjpeg-dev. I filed blocking bugs for those few packages.
The number of packages that build with libjpeg-dev is high so perhaps
this transition would be better after Debian 13 Trixie is released.
Thank you,
Jeremy Bícha