Bug 111108 - freetype should BuildRequires: zlib-devel. freetype-devel should Requires: zlib-devel
Summary: freetype should BuildRequires: zlib-devel. freetype-devel should Requires: z...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: freetype
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Owen Taylor
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-27 15:09 UTC by Maxim Dziumanenko
Modified: 2007-04-18 16:59 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-11-01 09:24:19 UTC
Embargoed:


Attachments (Terms of Use)

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.


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