Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 30900

Summary: mod_php & freetype doesn't work correct with truetype fon's
Product: Gentoo Linux Reporter: Eric Chang <scrazy>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 31794    
Bug Blocks:    

Description Eric Chang 2003-10-11 04:19:33 UTC
mod_php & freetype doesn't work correct with truetype fonts
I've found that's because php.eclass 
and I've made some modification below & works right!
--original--
    if runningunstable; then
        use truetype && myconf="${myconf} --with-freetype-dir=/usr"
    else
        myconf="${myconf} `use_with truetype ttf` `use_with truetype t1lib`"
    fi
---------
---my modify----
    if runningunstable; then
        use truetype && myconf="${myconf} --with-freetype-dir --with-ttf"
    else
        myconf="${myconf} `use_with truetype ttf` `use_with truetype t1lib`"
    fi
-----------
--original------------
    if [ -n "`use gd-external`" ] ; then
        myconf="${myconf} --with-gd=/usr"
        REQUIREPNG=1
    elif [ -n "`use gd`" ] ; then
        myconf="${myconf} --with-gd"
        myconf="${myconf} `use_enable truetype gd-native-ttf`"
        REQUIREPNG=1
        REQUIREJPG=1
    else
------------modify-------------
    if [ -n "`use gd-external`" ] ; then
        myconf="${myconf} --with-gd"
        REQUIREPNG=1
    elif [ -n "`use gd`" ] ; then
        myconf="${myconf} --with-gd"
        myconf="${myconf} `use_enable truetype gd-native-ttf`"
        REQUIREPNG=1
        REQUIREJPG=1
    else


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-24 01:28:44 UTC
this will be in CVS in a day or two (just waiting for sys-apps/findutils
changes from bug 31794 to be fully resolved as it's needed for the php.eclass
updates).