Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 859430 - media-libs/libwebp-1.2.3[png] does not support reading png files
Summary: media-libs/libwebp-1.2.3[png] does not support reading png files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-19 23:55 UTC by redneb
Modified: 2022-07-20 00:05 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 redneb 2022-07-19 23:55:07 UTC
With media-libs/libwebp-1.2.3, you cannot read png files even if the png USE flag is enabled. For example:

$ cwebp test.png -o test.webp
PNG support not compiled. Please install the libpng development package before building.
Error! Could not process file test.png
Error! Cannot read input picture file 'test.png'

and `ldd /usr/bin/cwebp | grep libpng` returns nothing. If I downgrade to media-libs/libwebp-1.2.2, then everything works just fine, e.g.:

$ ldd /usr/bin/cwebp | grep libpng
	libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007f705c9a3000)
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-19 23:58:31 UTC
Thanks for the easy reproducer. I could've sworn I checked for libpng linkage but I obviously made a mistake somewhere as I don't see it now.

On it.
Comment 2 Larry the Git Cow gentoo-dev 2022-07-20 00:05:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=007e54fcfd0d8d1c3a29e16db246490066181d09

commit 007e54fcfd0d8d1c3a29e16db246490066181d09
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-20 00:04:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-20 00:05:15 +0000

    media-libs/libwebp: fix libpng linkage
    
    Was being thrown away w/ -Wl,--as-needed b/c lost the -D, but
    also fix ./configure output too.
    
    Closes: https://bugs.gentoo.org/859430
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libwebp-1.2.3-libpng-pkg-config.patch    | 32 ++++++----------------
 ...ibwebp-1.2.3.ebuild => libwebp-1.2.3-r1.ebuild} |  0
 2 files changed, 9 insertions(+), 23 deletions(-)