Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 907699

Summary: media-libs/libjpeg-turbo has no option for libjpeg v7 or v8 API/ABI emulation
Product: Gentoo Linux Reporter: Byron Lathi <bslathi19>
Component: Current packagesAssignee: Codec Project <codec>
Status: UNCONFIRMED ---    
Severity: minor CC: floppym, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Byron Lathi 2023-06-02 11:50:58 UTC
Some pieces of software (Efinity IDE https://www.efinixinc.com/products-efinity.html) require libjpeg-7 or -8 compatibility, which libjpeg-turbo does not provide by default. Adding DWITH_JPEG7=1 or-DWITH_JPEG8=1 cmake flags is needed to build in this support. Perhaps this could be added as a USE flag?
Comment 1 Mike Gilbert gentoo-dev 2023-06-13 19:35:29 UTC
I don't think implementing this as a USE flag on libjpeg-turbo is a good idea. Changing said USE flag would break compatibility for reverse deps, and would require them to be at least be rebuilt. Some reverse deps might not even be compatible with the libjpeg 7/8 API.

It might make more sense to provide a slotted package that can install libjpeg.so.62, libjpeg.so.70, and libjpeg.so.80 concurrently to support pre-built binary packages like Efinity.
Comment 2 Byron Lathi 2023-06-14 02:02:20 UTC
(In reply to Mike Gilbert from comment #1)
> I don't think implementing this as a USE flag on libjpeg-turbo is a good
> idea. Changing said USE flag would break compatibility for reverse deps, and
> would require them to be at least be rebuilt. Some reverse deps might not
> even be compatible with the libjpeg 7/8 API.
> 
> It might make more sense to provide a slotted package that can install
> libjpeg.so.62, libjpeg.so.70, and libjpeg.so.80 concurrently to support
> pre-built binary packages like Efinity.

That makes sense, that’s pretty much how I am doing it now. I have the regular package installed and then compiled a separate version with the needed flags that I symlink into the install directory.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-06-14 06:02:09 UTC
Just please use separate packages, not slots.  Slots are a recipe for disaster.