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

Bug 321115

Summary: The patch in media-libs/gd-2.0.35-r1 ebuild to support png png14 misses one config test/gd builds but is incomplete
Product: Gentoo Linux Reporter: Michael MacDonald <mars>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mars
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael MacDonald 2010-05-22 21:22:54 UTC
The ebuild includes a sed-script to fix the build for libpng-1.4; there is one test in the config file that is not fixed, though; that test is still referencing libpng-1.2 and so fails.  This leads to a gd library that still builds successfully but only partially supports .png; this causes downstream .ebuilds like graphviz to fail.

This config check that is wrong is in the build log as:

checking for png_create_read_struct in -lpng12... no



Reproducible: Always

Steps to Reproduce:
Upgrade libpng to media-libs/libpng-1.4.2

emerge media-libs/gd with png USE flag

Actual Results:  
The built /usr/lib/libgd.so.2.0.0 does not have all the PNG related functions it should; it is missing, for example, gdImageCreateFromPng

Expected Results:  
Produced libgd should have all Png-related functions declared in /usr/include/gd.h
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-05-22 21:34:43 UTC
it's already fixed in -r2

*** This bug has been marked as a duplicate of bug 320837 ***