Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930111 - media-libs/tiff-4.6.0[zlib]: automagic dependency on app-arch/libdeflate
Summary: media-libs/tiff-4.6.0[zlib]: automagic dependency on app-arch/libdeflate
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-04-16 13:15 UTC by Alfred Wingate
Modified: 2024-06-12 03:59 UTC (History)
1 user (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 Alfred Wingate 2024-04-16 13:15:49 UTC
tiff builds against libdeflate if its available and if zlib is enabled. This can be explicitly set or be a use flag.

https://gitlab.com/libtiff/libtiff/-/blob/v4.6.0/CMakeLists.txt?ref_type=tags#L202
https://gitlab.com/libtiff/libtiff/-/blob/v4.6.0/cmake/DeflateCodec.cmake#L39

>>> package: app-arch/libdeflate-1.19
 *  - /usr/lib64/libdeflate.so.0
 *      used by /usr/lib64/libtiff.so.6.0.2 (media-libs/tiff-4.6.0)
Comment 1 Alfred Wingate 2024-04-17 04:21:12 UTC
checking for
        glib-2.0 >= 2.4
        libxml-2.0
        ... yes
checking for
        gtk+-3.0 >= 3.10
        gdk-pixbuf-2.0
        ... no
configure: error: Package requirements (
        gtk+-3.0 >= 3.10
        gdk-pixbuf-2.0
        ) were not met:

Package 'libdeflate', required by 'libtiff-4', not found

This can also lead to breakage in reverse dependencies of tiff if libdeflate is depcleaned.
Comment 2 Larry the Git Cow gentoo-dev 2024-05-02 04:32:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10d7d10e2d77be6513acedb5dec42e467ec16629

commit 10d7d10e2d77be6513acedb5dec42e467ec16629
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2024-05-01 09:28:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-02 04:31:26 +0000

    media-libs/tiff: disable libdeflate explicitly
    
    * Adding support would require adding multilib support in libdeflate.
    
    Bug: https://bugs.gentoo.org/930111
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/36500
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/tiff/tiff-4.6.0-r1.ebuild | 82 ++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)
Comment 3 foufou33 2024-06-12 03:59:09 UTC
I think the same goes with media-libs/tiff-compat.

I hit this while rebuilding mutter from source (different USE flags from binary available binary package) on a machine that didn't have libdeflate installed while the build host had it installed. The link seems to be x11-libs/gdk-pixbuf (depends media-libs/tiff).