Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139494 - media-libs/freetype-2.1.10-r2 + media-libs/sdl-ttf strings containing spaces can not be rendered anymore
Summary: media-libs/freetype-2.1.10-r2 + media-libs/sdl-ttf strings containing spaces ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: foser (RETIRED)
URL: http://lists.gnu.org/archive/html/fre...
Whiteboard:
Keywords:
: 142453 164459 (view as bug list)
Depends on: 173804
Blocks:
  Show dependency tree
 
Reported: 2006-07-06 15:53 UTC by ok
Modified: 2007-07-01 21:28 UTC (History)
7 users (show)

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


Attachments
small sample to illustrate the behaviour (main.cpp,1.76 KB, text/x-c++src)
2006-07-06 15:59 UTC, ok
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ok 2006-07-06 15:53:27 UTC
I am not sure whether this is a freetype or sdl-ttf(i.e. not honouring new security requirements) problem.
After freetype was upgraded strings containing spaces were not rendered any longer (using TTF_RenderText_Solid). 
Downgrading freetype solves the problem, commenting out "epatch ${WORKDIR}/${P}-security_batch-r2.patch" from ".../media-libs/freetype/freetype-2.1.10-r2.ebuild" solves it as well.
Upgrading sdl-ttf to testing version didn't help.


Steps to reproduce:

1.Write app using TTF_RenderText_Solid(possibly other funtions are affected as well)rendering string containing a space
2. compile and run


Results:

Actual: no text is rendered.
Expected: string should be rendered



emerge --info
Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.15
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1, 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs digest distlocks maketest metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa apm avi berkdb bitmap-fonts bzlib caps cli cross crypt dbus dlloader dri dts dvd dvdread emboss esd ffmpeg foomaticdb gif gnome gnutls gpm gstreamer gtk gtk2 hal icq imlib ipv6 isdnlog jpeg lzw lzw-tiff mad makecheck mng mp3 mpeg ncurses nls nowebdav nptl nsplugin ogg oggvorbis openal opengl oscar pam pcre pdflib perl png posix pppd python qt qt3 qt4 quicktime readline reflection samba sdl sdlv session shared spell spl ssl svg sysvipc tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb vcd videos vorbis wmf xorg xpm xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 ok 2006-07-06 15:59:16 UTC
Created attachment 91082 [details]
small sample to illustrate the behaviour

This small sample will illustrate the mentioned behaviour, note you may need to adapt the fontfile to match one on your system and don't forget to link to sdl and sdl-ttf.
Comment 2 foser (RETIRED) gentoo-dev 2006-07-08 02:33:08 UTC
what version of sdl-ttf ? iirc sdl-ttf used freetype internal API and that may have caused this.
Comment 3 ok 2006-07-08 02:46:31 UTC
I tried both the currently stable as well as testing version(2.0.7 and 2.0.8) with the same result.
Comment 4 foser (RETIRED) gentoo-dev 2006-07-08 03:01:40 UTC
not sure if this got fixed in 2.0.8 (its not in the changelogs), but it should be using the patch here :
http://freetype.sourceforge.net/freetype2/patches/SDL_ttf-2.0.7-noftinternals.patch

could you try it out and see if it makes a difference ?
Comment 5 ok 2006-07-08 04:14:07 UTC
The problem persists after applying the patch.
Comment 6 teidakankan 2006-07-13 19:00:14 UTC
FYI I was seeing this problem when using the masked freetype-2.2.1.  And, no it's still not fixed in sdl-ttf-2.0.8.  I did however get it to compile by using the changes in the patch listed above.  I couldn't get the patch to apply (not to good at patching), but I opened the tarball and edited the SDL_ttf.c file.  If someone could get the patch to apply it might work for you.  My system is far from regular x86 but here is my emerge info FWIW:

emerge --info
Portage 2.1.1_pre2-r8 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r4, 2.6.17-gentoo-r2 i686)
=================================================================
                       System Settings
=================================================================
System uname: 2.6.17-gentoo-r2 i686 Intel(R) Celeron(R) M processor         1.40GHz
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/storage/packages"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="en ja"
PKGDIR="/storage/quickpkgs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.30/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi alsa anthy apm arts asf audiofile avi berkdb bitmap-fonts bluetooth bzip2 cairo cdparanoia cjk cli cpudetection crypt cups curl dbus dhcp dlloader dri dts dvd dvdr dvdread emboss encode ethereal exscalibar fam fame ffmpeg firefox flac font-server foomaticdb fortran gdbm gif glibc-omitfp glut gphoto2 gpm grammar gs gstreamer gstreamer010 gtk gtk2 gtkhtml hal imagemagick imlib immqt-bc ipv6 isdnlog java jikes jpeg kde kdehiddenvisibility kdepim lcms ldap libcaca libg++ libvisual libwww live lm_sensors logitech-mouse logrotate lua lzo mad madwifi mailwrapper mikmod mjpeg mmx mng motif mp3 mp4live mpeg mplayer musicbrainz mysql nas ncurses network nls nonfsv4 nptl nptlonly nsplugin ogg opengl oss pam pcmcia pcre pda pdf pdflib perl pmount png postgres pppd python qt qt3 qt4 quicktime readline real reflection reiserfs rtc samba scanner sdl session slang slp smime speex spell spl sse sse2 ssl svg svgz tcltk tcpd theora thesaurus tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vidix vorbis wifi win32codecs wma wmf wv xine xml xorg xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_evdev input_devices_synaptics input_devices_mouse kernel_linux linguas_en linguas_ja userland_GNU video_cards_radeon video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 SpanKY gentoo-dev 2006-09-03 22:29:43 UTC
*** Bug 142453 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2006-09-03 22:30:29 UTC
this is an acknowledged bug upstream ... see Bug 142453 for some of my ramblings on the matter

2.2.1 fails but latest cvs works
Comment 9 Tristan Heaven (RETIRED) gentoo-dev 2007-01-29 21:35:58 UTC
*** Bug 164459 has been marked as a duplicate of this bug. ***
Comment 10 Aniruddha 2007-01-29 22:10:59 UTC
What's the current status of this bug? I emerged the lastest version of media-libs/freetype (2.1.10-r2). But I still can't run tuxtype2:

$ tuxtype2
LoadSettings: Settings file does not exist! settings not loaded
TTF_RenderText_Solid(Fish Cascade) failed: Failed loading DPMSDisable: /usr/lib/libX11.so.6: undefined symbol: DPMSDisable

Comment 11 Christopher Hogan 2007-03-08 07:52:12 UTC
(In reply to comment #10)
> What's the current status of this bug? I emerged the lastest version of
> media-libs/freetype (2.1.10-r2). But I still can't run tuxtype2:

Updating to the latest version of media-libs/freetype (2.3.1) made this bug go away for me.
Comment 12 Jon Hurst 2007-03-08 08:48:35 UTC
> Updating to the latest version of media-libs/freetype (2.3.1) made this bug go
> away for me.

Confirmed as solving the issue (2.3.1 masked ~x86 right now)

Comment 13 Richard Ash 2007-04-08 21:13:57 UTC
Can someone explain why the "stable" freetype is from June 2005, when there are
* 5 open bugs that would be fixed by stabilising a more recent version
* Only one bug is referenced on the tracker (166028), and it turns out that bug is closed as far as most arches are concerned. Alpha, mips, x86fbsd are still waiting, does that have to hold the rest of us?
Comment 14 Ryan Hill (RETIRED) gentoo-dev 2007-07-01 21:28:18 UTC
all archs now have freetype-2.3 stable.