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

Bug 326599

Summary: www-plugins/gnash-0.8.{5,6} fails to build with media-libs/libpng-1.4
Product: Gentoo Linux Reporter: Serhij S. Stasyuk <stas>
Component: New packagesAssignee: Romain Perier (RETIRED) <mrpouet>
Severity: normal CC: chithanh
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 305095    
Attachments: www-plugins/gnash/files/gnash-0.8.5-libpng14.patch

Description Serhij S. Stasyuk 2010-07-02 10:27:57 UTC
gnash-0.8.5 uses deprecated function from libpng12, png_set_gray_1_2_4_to_8, which was removed in libpng14.

Reproducible: Always

Steps to Reproduce:
Comment 1 Serhij S. Stasyuk 2010-07-02 10:31:51 UTC
Created attachment 237235 [details, diff]

Just replace png_set_gray_1_2_4_to_8 with png_set_expand_gray_1_2_4_to_8 in libbase/GnashImagePng.cpp
Comment 2 Serhij S. Stasyuk 2010-07-02 10:34:55 UTC
Created attachment 237237 [details, diff]

Add www-plugins/gnash/files/gnash-0.8.5-libpng14.patch to used patches.
Comment 3 Samuli Suominen gentoo-dev 2010-07-02 10:37:48 UTC
I don't know why you are using 0.8.5, but the problem is same for 0.8.7... fixing summary.
Comment 4 Samuli Suominen gentoo-dev 2010-07-02 10:44:16 UTC
(In reply to comment #3)
> I don't know why you are using 0.8.5, but the problem is same for 0.8.7...
> fixing summary.

Or rather the faulty code is present in all of 0.8.5, 0.8.6, 0.8.7 but only 0.8.5's ebuild is passing --enable-png and thus the only ebuild hitting this bug.
Comment 5 Samuli Suominen gentoo-dev 2010-07-02 11:02:12 UTC
ah no, 0.8.7 had the fix already (unnecessarily with #ifdef's though, upstream failed).

fixed properly for 0.8.5 and 0.8.6:

+  02 Jul 2010; Samuli Suominen <>
+  +files/gnash-0.8.x-libpng14.patch, gnash-0.8.5.ebuild, gnash-0.8.6.ebuild:
+  Fix building with libpng14 wrt #326599 by Serhij S. Stasyuk.
Comment 6 Serhij S. Stasyuk 2010-07-02 11:17:01 UTC
Thanks for quick response.