Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907699 - media-libs/libjpeg-turbo has no option for libjpeg v7 or v8 API/ABI emulation
Summary: media-libs/libjpeg-turbo has no option for libjpeg v7 or v8 API/ABI emulation
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-02 11:50 UTC by Byron Lathi
Modified: 2023-06-14 06:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.