Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24068 - fc-cache segfaults while scanning xfree-fonts when freetype has been compiled without zlib support
Summary: fc-cache segfaults while scanning xfree-fonts when freetype has been compiled...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-07 12:22 UTC by Hans Bulfone
Modified: 2003-08-24 13:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Bulfone 2003-07-07 12:22:31 UTC
when the zlib USE flag is not set, freetype is compiled without zlib support
(even if it is installed).
xfree-4.3.0 unconditionally depends on zlib and installs compressed fonts in
/usr/X11R6/lib/X11/fonts.  when fc-cache is later run in pkg_postinst(), it
segfaults when it tries to access the compressed fonts.


Reproducible: Always
Steps to Reproduce:
1. USE="-zlib" emerge freetype
2. emerge xfree

Actual Results:  
fc-cache segfaults when called from pkg_postinst() in xfree-ebuild.

Expected Results:  
xfree should somehow depend on a freetype-library with zlib support.
as i think, this is not possible, the best solution is imho to let freetype
depend on zlib unconditionally.


i586 (K6-3D) system with gentoo 1.0-profile.
Comment 1 foser (RETIRED) gentoo-dev 2003-07-27 07:52:37 UTC
i can't reproduce this behaviour. What is you 'emerge info' output ? Try lowering optimizations to the minumum (none) and get a backtrace if it still crashes.

I think this happens to few people.

We cant atm impose USE vars on dependencies, neither does it seem to be needed here. Freetype is used by more apps than xfree alone, forcing zlib for that reason alone isn't a good idea.
Comment 2 foser (RETIRED) gentoo-dev 2003-08-24 13:48:25 UTC
no reply, closing