Bug 843655

Summary: pngnq FTBFS with libpng 1.5
Product: [Fedora] Fedora Reporter: Tom Lane <tgl>
Component: pngnqAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gwync, hhorak, kraxel, sergio
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 16:04:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix includes for libpng 1.5 none

Description Tom Lane 2012-07-26 22:17:06 UTC
Created attachment 600624 [details]
fix includes for libpng 1.5

Description of problem:
pngnq has failed the last couple of Fedora mass rebuilds, because in libpng 1.5, png.h no longer includes zlib.h.  I attach a patch to fix it.

Version-Release number of selected component (if applicable):
pngnq-1.1-4.fc18.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Try to build in rawhide.

Additional info:
Although it compiles with this change, I noticed a couple warnings that should probably be looked into:

rwpng.c: In function 'rwpng_read_image':
rwpng.c:134:7: warning: passing argument 3 of 'png_get_IHDR' from incompatible pointer type [enabled by default]
In file included from rwpng.c:35:0:
/usr/include/libpng15/png.h:2159:22: note: expected 'png_uint_32 *' but argument is of type 'ulg *'
rwpng.c:134:7: warning: passing argument 4 of 'png_get_IHDR' from incompatible pointer type [enabled by default]
In file included from rwpng.c:35:0:
/usr/include/libpng15/png.h:2159:22: note: expected 'png_uint_32 *' but argument is of type 'ulg *'

If "ulg" isn't always 32 bits, these probably are pointing out platform-specific  misbehaviors.

Comment 1 Gwyn Ciesla 2012-08-01 15:59:59 UTC
Committed and build in rawhide.

Comment 2 Sergio Basto 2012-10-18 20:26:30 UTC
Also FTBFS on F17 and we should have pngnq compiled with gcc 4.7 on F17 since mass rebuild of F17 (https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild) to pngnq Failed !

Comment 3 Gwyn Ciesla 2012-10-19 12:51:30 UTC
Does the available build, pngnq-1.1-1.fc15, not work?

Comment 4 Tom Lane 2012-10-19 14:05:57 UTC
I think the point is that it FTBFS, which is a grievous sin for open-source software.  What's the point of being open-source if you can't recompile it?

If you want a less abstract argument for fixing it: what if you had to apply a security patch tomorrow?

Comment 5 Gwyn Ciesla 2012-10-19 14:14:13 UTC
Fair enough, I'll backport.

Comment 6 Fedora Update System 2012-10-19 14:27:58 UTC
pngnq-1.1-5.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/pngnq-1.1-5.fc17

Comment 7 Fedora Update System 2012-10-19 23:53:28 UTC
Package pngnq-1.1-5.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pngnq-1.1-5.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16484/pngnq-1.1-5.fc17
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-12-20 16:04:25 UTC
pngnq-1.1-5.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.