Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112680 - app-text/ttf2pt1 does not convert otf fonts
Summary: app-text/ttf2pt1 does not convert otf fonts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 02:04 UTC by Toni Van Remortel
Modified: 2007-07-16 02:30 UTC (History)
2 users (show)

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


Attachments
new ebuild for ttf2pt1-3.4.4 (ttf2pt1-3.4.4.ebuild,837 bytes, application/octet-stream)
2006-04-10 19:50 UTC, Zhang Le (RETIRED)
Details
new ebuild for ttf2pt1-3.4.4 (ttf2pt1-3.4.4.ebuild,837 bytes, text/plain)
2006-04-10 23:40 UTC, Zhang Le (RETIRED)
Details
patch for ttf2pt1-3.4.4 to enable linking with freetype (ttf2pt1-3.4.4-gentoo.patch,2.38 KB, patch)
2006-04-10 23:44 UTC, Zhang Le (RETIRED)
Details | Diff
patch for ttf2pt1-3.4.4 to enable linking with freetype (ttf2pt1-3.4.4-gentoo.patch,3.65 KB, patch)
2006-09-07 07:30 UTC, Zhang Le (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toni Van Remortel 2005-11-16 02:04:12 UTC
ttf2pt1 has no support for freetype (ft) fonts to convert. This is needed to
convert otf fonts.

Reproducible: Always
Steps to Reproduce:
1. emerge ttf2pt1
2. ttf2pt1 -p?


Actual Results:  
the following front-ends are supported now:
  bdf (BDF bitmapped fonts)
   file suffixes: bdf
  ttf (built-in TTF support)
   file suffixes: ttf


Expected Results:  
the following front-ends are supported now:
  bdf (BDF bitmapped fonts)
   file suffixes: bdf
  ft (based on the FreeType library)
   file suffixes: ttf otf pfa pfb
  ttf (built-in TTF support)
   file suffixes: ttf


Digging into the code, shows me that the Makefile is patched correctly to use
the freetype parser, but it doesn't compile.
When compiling it by hand (after patching the Makefile, you get an error that
ft2build.h cannot be found because it is not include.
Just include the file in ft.c after line 14, and compile again. Now it compiles
and works (see Expected Results).

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Pentium III (Katmai)
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.1.3-r1, 2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.4.3-r4, 1.5.20
virtual/os-headers:  2.4.19-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks sfperms strict"
GENTOO_MIRRORS="ftp://horta/ http://ftp.belnet.be/mirrors/rsync.gentoo.org/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://horta/gentoo-portage"
USE="x86 acl alsa apache2 apm arts audiofile avi bcmath bitmap-fonts bzip2
calendar cgi cli crypt ctype curl curlwrappers edirectory eds emboss encode esd
exif expat fam foomaticdb fortran frascend frxp gd gif gnome gpm gstreamer gtk2
imagemagick imap imlib ipv6 jpeg kerberos krb4 lcms ldap libg++ libwww mad mhash
mikmod ming mng mod_php motif mp3 mpeg mpm-worker mysql mysqli ncurses nls ogg
oggvorbis opengl oss pam pcre pdflib pear perl php png postgres pspell python
quicktime readline samba sdl session slang snmp soap sockets spell ssl svga tcpd
threads tiff truetype truetype-fonts type1-fonts udpfromto vhosts vorbis winbind
wmf xml2 xmms xv zip zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Zhang Le (RETIRED) gentoo-dev 2006-04-10 19:50:21 UTC
Created attachment 84411 [details]
new ebuild for ttf2pt1-3.4.4

This ebuild together with the patch I posted here solve this problem
Comment 2 Zhang Le (RETIRED) gentoo-dev 2006-04-10 23:40:15 UTC
Created attachment 84424 [details]
new ebuild for ttf2pt1-3.4.4

This ebuild together with the patch I posted here solve this problem
Comment 3 Zhang Le (RETIRED) gentoo-dev 2006-04-10 23:44:56 UTC
Created attachment 84426 [details, diff]
patch for ttf2pt1-3.4.4 to enable linking with freetype 

The patch
To use it, create a overlay for ttf2pt1, put the patch in "files" directory
Sorry for the duplicated post of the ebuild. There's something wrong with my network connection here
Comment 4 Andreas Klauer 2006-08-29 10:57:18 UTC
I get the following error when trying to install this package:

>>> Emerging (1 of 1) app-text/ttf2pt1-3.4.4 to /
 * ttf2pt1-3.4.4.tgz MD5 ;-) ...                                          [ ok ]
[...]
 * Applying ttf2pt1-3.4.4-gentoo.patch ...                                [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/ttf2pt1-3.4.4/work/ttf2pt1-3.4.4 ...
[...]
>>> Source compiled.
>>> Test phase [not enabled]: app-text/ttf2pt1-3.4.4

>>> Install ttf2pt1-3.4.4 into /var/tmp/portage/ttf2pt1-3.4.4/image/ category app-text
scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/bin root root 0755
scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/lib/ttf2pt1 root root 0755
scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1 root root 0755
scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/man/man1 root root 0755
scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/man/man5 root root 0755
cp -R README* FONTS* CHANGES* COPYRIGHT app encodings maps scripts other /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1
chown -R root /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1
chgrp -R root /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1
chmod -R go-w /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1
scripts/inst_file ttf2pt1 /var/tmp/portage/ttf2pt1-3.4.4/image//usr/bin/ttf2pt1 root root 0755
[ -f /var/tmp/portage/ttf2pt1-3.4.4/image//usr/bin/t1asm ] || scripts/inst_file t1asm /var/tmp/portage/ttf2pt1-3.4.4/image//usr/lib/ttf2pt1/t1asm root root 0755
sed 's|^TTF2PT1_BINDIR=$|TTF2PT1_BINDIR=/var/tmp/portage/ttf2pt1-3.4.4/image//usr/bin|;\
		s|^TTF2PT1_LIBXDIR=$|TTF2PT1_LIBXDIR=/var/tmp/portage/ttf2pt1-3.4.4/image//usr/lib/ttf2pt1|;\
		s|^TTF2PT1_SHAREDIR=$|TTF2PT1_SHAREDIR=/var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1|;' <scripts/convert >cvt.tmp
sed: -e expression #1, char 276: unterminated address regex
make: *** [install] Error 1

!!! ERROR: app-text/ttf2pt1-3.4.4 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_install
  ebuild.sh, line 1017:   Called src_install
  ttf2pt1-3.4.4.ebuild, line 32:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/root/portage'


Portage 2.1.1_rc1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17.11 i686)
=================================================================
System uname: 2.6.17.11 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.4
Last Sync: Mon, 28 Aug 2006 21:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
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: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS=""
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="/root/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 3ds X Xaw3d a52 aac aalib acpi alsa anthy apache2 apic apm asf audiofile avi bash-completion berkdb bigger-fonts bitmap-fonts browserplugin bzip2 canna cdda cddb cdr cid cjk cli cmov crypt css cups custom-cflags cx8 de dga divx4linux dlloader doc dri dts dv dvd dvdr dvdread elibc_glibc emboss encode eurofile fame ffmpeg firefox flac font-server foomaticdb fortran fpu freewnn ftp fxsr gcj gd gdb gdbm gif gimp gimpprint glx gnutls gpgme gphoto2 gpm graphviz gs gstreamer gtk gtk2 ieee1394 imagemagick imlib immqt-bc input_devices_joystick input_devices_keyboard input_devices_mouse ipppd isdnlog java joystick jpeg kernel_linux lame latex libcaca libg++ libwww logitech-mouse mad matroska mca mccp mce memlimit mikmod mime mjpeg mmx mmxext mng modplug motif mp3 mpeg mplayer msr mtrr mysql ncurses nls nptl nptlonly nsplugin nv nvidia ogg opengl oss pae pat pcre pdflib perl pge png pppd pse pse36 python qt qt3 qt4 quicktime readline real reflection reiserfs rtc sblive sdl sep session sndfile sox speex spell spl sse ssl subtitles subversion svg syscall tcpd tetex theora threads tiff transcode truetype truetype-fonts tsc type1 type1-fonts udev unicode usb userland_GNU utf8 vcd video_cards_nv video_cards_nvidia vme vorbis win32codecs wma wmf wxwindows x264 xfs xft xml xorg xpm xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Zhang Le (RETIRED) gentoo-dev 2006-09-07 07:30:08 UTC
Created attachment 96278 [details, diff]
patch for ttf2pt1-3.4.4 to enable linking with freetype
Comment 6 Zhang Le (RETIRED) gentoo-dev 2006-09-07 07:31:45 UTC
(In reply to comment #4)
> I get the following error when trying to install this package:
> 
> >>> Emerging (1 of 1) app-text/ttf2pt1-3.4.4 to /
>  * ttf2pt1-3.4.4.tgz MD5 ;-) ...                                          [ ok
> ]
> [...]
>  * Applying ttf2pt1-3.4.4-gentoo.patch ...                                [ ok
> ]
> >>> Source unpacked.
> >>> Compiling source in /var/tmp/portage/ttf2pt1-3.4.4/work/ttf2pt1-3.4.4 ...
> [...]
> >>> Source compiled.
> >>> Test phase [not enabled]: app-text/ttf2pt1-3.4.4
> 
> >>> Install ttf2pt1-3.4.4 into /var/tmp/portage/ttf2pt1-3.4.4/image/ category app-text
> scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/bin root root 0755
> scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/lib/ttf2pt1 root
> root 0755
> scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1 root
> root 0755
> scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/man/man1 root
> root 0755
> scripts/inst_dir /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/man/man5 root
> root 0755
> cp -R README* FONTS* CHANGES* COPYRIGHT app encodings maps scripts other
> /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1
> chown -R root /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1
> chgrp -R root /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1
> chmod -R go-w /var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1
> scripts/inst_file ttf2pt1 /var/tmp/portage/ttf2pt1-3.4.4/image//usr/bin/ttf2pt1
> root root 0755
> [ -f /var/tmp/portage/ttf2pt1-3.4.4/image//usr/bin/t1asm ] || scripts/inst_file
> t1asm /var/tmp/portage/ttf2pt1-3.4.4/image//usr/lib/ttf2pt1/t1asm root root
> 0755
> sed
> 's|^TTF2PT1_BINDIR=$|TTF2PT1_BINDIR=/var/tmp/portage/ttf2pt1-3.4.4/image//usr/bin|;\
>                
> s|^TTF2PT1_LIBXDIR=$|TTF2PT1_LIBXDIR=/var/tmp/portage/ttf2pt1-3.4.4/image//usr/lib/ttf2pt1|;\
>                
> s|^TTF2PT1_SHAREDIR=$|TTF2PT1_SHAREDIR=/var/tmp/portage/ttf2pt1-3.4.4/image//usr/share/ttf2pt1|;'
> <scripts/convert >cvt.tmp
> sed: -e expression #1, char 276: unterminated address regex
A change in make causes this problem.
I have already updated my patch.
It works well now.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-01-31 23:58:27 UTC
@fonts: Anyone interested in this?
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2007-07-16 02:30:23 UTC
Fixed in ttf2pt1-3.4.4.