Bug 111108

Summary: freetype should BuildRequires: zlib-devel. freetype-devel should Requires: zlib-devel
Product: [Retired] Red Hat Raw Hide Reporter: Maxim Dziumanenko <dziumanenko>
Component: freetypeAssignee: Owen Taylor <otaylor>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0Keywords: EasyFix
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-01 09:24:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Maxim Dziumanenko 2003-11-27 15:09:23 UTC
Description of problem:
1. freetype is built with zlib support, thus freetype should
BuildRequires: zlib-devel
2. 'freetype-config --libs'  gives -lz, thus freetype-devel should
Requires: zlib-devel

Version-Release number of selected component (if applicable):
freetype-2.1.4-5

How reproducible:
Always

Steps to Reproduce:
1.rpm -e zlib-devel
2.rpmbuild --rebuild freetype-2.1.4-5.src.rpm
3.Wait for build errors
  
Actual results:


Expected results:


Additional info:

Comment 1 Miloslav Trmac 2003-11-27 18:15:37 UTC
Triage->Easyfix

Comment 2 Mike A. Harris 2004-03-11 06:25:58 UTC
[root@zod /root]# ldd /usr/lib/libttf.so.2.3.0
        libm.so.6 => /lib/i686/libm.so.6 (0x4003d000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40060000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
[root@zod /root]# ldd /usr/lib/libfreetype.so.6.3.0
        libc.so.6 => /lib/i686/libc.so.6 (0x40053000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

If freetype is using zlib, which I believe it does for gzipped fonts,
it should be directly linking against zlib itself, and not requiring
applications that use it to link to zlib.


Comment 3 Owen Taylor 2004-04-19 14:10:54 UTC
* Mon Apr 19 2004 Owen Taylor <otaylor> 2.1.7-4
- Add freetype-devel to buildrequires and -devel requires
  (Maxim Dzumanenko, #111108)

$ ldd /usr/lib/libfreetype.so.6.3.5
        libz.so.1 => /usr/lib/libz.so.1 (0x0089e000)
        libc.so.6 => /lib/tls/libc.so.6 (0x0064a000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00632000)

Removing -lz from freetype-config output, while right in theory,
is likely to break the build for packages that expect it there
because it is there normally; I don't want to deviate from
upstream on this.