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)
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.
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(-)