Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24781 - php.eclass missing new switch in mod_php-4.2.3-r3: --enable-gd-native-ttf
Summary: php.eclass missing new switch in mod_php-4.2.3-r3: --enable-gd-native-ttf
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-18 19:15 UTC by James Hiscock
Modified: 2011-10-30 22:18 UTC (History)
0 users

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 James Hiscock 2003-07-18 19:15:35 UTC
The current version of php.eclass doesn't include the new(-ish)
--enable-gd-native-ttf configure switch. Without this, PHP's gdImageStringTTF
function(s) aren't compiled. If USE="truetype|ttf", then it probably should be
included...

Output from "emerge info":

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-win4lin-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
GENTOO_MIRRORS=" ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://mirror.iawnet.sandia.gov/pub/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://gentoo.linux.no/pub/gentoo/ http://gentoo.linux.no/
http://194.83.57.11/sites/www.ibiblio.org/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/custom/portage"
USE="x86 oss 3dnow apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod
mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
directfb gtkhtml alsa gdbm berkdb slang readline arts aalib nas bonobo svga ggi
tcltk guile ruby mysql postgres X sdl tcpd pam libwww ssl perl python esd imlib
oggvorbis gtk qt motif mozilla gphoto2 cdr acpi acpi4linux curl dga dvd fbcon gd
gd-external gtk2 i8x0 imap maildir moznocompose moznoirc moznomail mpi pda pic
sse tiff usb wmf gnome xinerama xml opengl -cups -java -gpm -kde"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe"
CXXFLAGS="-O3 -march=pentium3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg"

Reproducible: Always
Steps to Reproduce:
1. emerge -u mod_php (to 4.3.2-r3)
2.
3.

Actual Results:  
checking for GD support... yes
...
Output during configure portion of emerge (unrelated info removed):
...
checking for FreeType 1.x support... yes
...
checking whether to enable truetype string function in GD... no
...
checking for gdImageStringTTF in -lgd... no

Expected Results:  
Output during configure portion of emerge (unrelated info removed):
...
checking for GD support... yes
...
checking for FreeType 1.x support... yes
...
checking whether to enable truetype string function in GD... yes
...
checking for gdImageStringTTF in -lgd... yes

Previous installations of mod_php included this support automagically when
USE="truetype ttf gd".

Modifying php.eclass as follows solves the problem (albeit not well... it
assumes that GD & Freetype have been included... I know there's probably a
better way to do it, but hey -- it worked for me...):

--- php.eclass  2003-07-13 20:45:49.000000000 -0400
+++ php.eclass.fixed     2003-07-18 22:14:17.000000000 -0400
@@ -365,6 +365,7 @@
        myconf="${myconf} --with-iconv"
        myconf="${myconf} --enable-shmop"
        myconf="${myconf} --enable-dio"
+       myconf="${myconf} --enable-gd-native-ttf"
  
        # recode is NOT used as it conflicts with IMAP and YAZ
        # iconv is better anyway
Comment 1 Tal Peer (RETIRED) gentoo-dev 2003-08-02 12:48:10 UTC
Fixed - if you have both gd and truetype in USE, --enable-gd-native-ttf will be used.