RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1162842 - libpng RPM missing dependency on zlib
Summary: libpng RPM missing dependency on zlib
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libpng
Version: 6.5
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Petr Hracek
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-11 20:28 UTC by Todd
Modified: 2014-11-12 08:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-12 08:42:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Todd 2014-11-11 20:28:55 UTC
Dear Red Hat,

I am coming from the community: Scientific Linux 6.5, 64 bit.  Would one of our intrepid heroes please fix this for me?

It about killed my trying to compile Wine-1.7.30 (I conquered).  In the "./configure" phase, Wine threw the following error:

wine-1.7.30]# ./configure --disable-win64
configure: WARNING: libpng 32-bit development files not found, PNG won't be supported.

Only thing was that libpng was actually installed:
# rpm -qa \*libpng\* | grep -i i686
libpng-devel-1.2.49-1.el6_2.i686
libpng-1.2.49-1.el6_2.i686

The error was bad reporting from Wine "./configure".  The actual problem was that libpng had a dependance on zlib.  "yum install zlib-devel.i686" fixed the bogus error from Wine.

I was able to install libpng (and libpng-devel) without zlib.  Would you please include zlib as an RPM dependancy in libpng?

Here is an article on libpng and its zlib dependancy:
http://www.libpng.org/pub/png/libpng.html
   "libpng is available as ANSI C (C89) source code and requires zlib
    1.0.4 or later (1.2.5 or later recommended for performance and security
    reasons)."

Also, if you do the following google search, this haunts a lot of other people, some who never do figure it out.

https://www.google.com/?gws_rd=ssl#q=WARNING:+libpng+32-bit+development+files+not+found%2C+PNG+won%27t+be+supported

Many thanks,
-T

Comment 2 Petr Hracek 2014-11-12 08:14:01 UTC
Well. in RHEL-6.5 are those dependecies:

$ grep 'BuildRequires:' libpng.spec 
BuildRequires: zlib-devel, pkgconfig
$ 

And zlib-devel should provide zlib package.

You are right, there is no section like:
Requires: zlib

Comment 4 Ondrej Vasik 2014-11-12 08:42:11 UTC
Hi Todd,
I think you are pretty new in the world of rpm and its build requires and dependencies. Actually, libpng rpm package HAS dependency on zlib - it requires libz.so.1 - this dependency is automatically added by rpmbuild during the build. You should not use ./configure and such things - rpmbuild is supposed to build the packages from spec files.

Regards,
       Ondrej

Comment 5 Ondrej Vasik 2014-11-12 08:45:58 UTC
You were probably not able to install libpng without zlib, but of course you were able to install libpng and libpng-devel without zlib-devel - but this is pretty much expected. Guidelines are even stricter, explicit requirements for library packages are forbidden ( https://fedoraproject.org/wiki/Packaging:Guidelines#Explicit_Requires - Red Hat Enterprise Linux follows Fedora packaging guidelines with just very few exceptions ).


Note You need to log in before you can comment on or make changes to this bug.