Bug 25798 - media-gfx/grace won't compile with new t1lib-5.0.0
Bug#: 25798 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: usata@gentoo.org Reported By: nospam@dolney.com
Component: Applications
URL: 
Summary: media-gfx/grace won't compile with new t1lib-5.0.0
Keywords:  
Status Whiteboard: 
Opened: 2003-08-02 18:42 0000
Description:   Opened: 2003-08-02 18:42 0000
grace can't link with the new t1lib-5.0.0. Some function names are changed in
the new t1lib. Here's an easy patch to fix grace:

diff -ur grace-5.1.10-old/src/fontwin.c grace-5.1.10/src/fontwin.c
--- grace-5.1.10-old/src/fontwin.c      2003-08-02 21:26:00.000000000 -0400
+++ grace-5.1.10/src/fontwin.c  2003-08-02 21:27:01.000000000 -0400
@@ -320,7 +320,7 @@
     Widget font_table = (Widget) data;
                                                                                
     FontID = value;
-    switch (CheckForFontID(FontID)) {
+    switch (T1_CheckForFontID(FontID)) {
     case 0:
         T1_LoadFont(FontID);
         break;
diff -ur grace-5.1.10-old/src/t1fonts.c grace-5.1.10/src/t1fonts.c
--- grace-5.1.10-old/src/t1fonts.c      2003-08-02 21:26:00.000000000 -0400
+++ grace-5.1.10/src/t1fonts.c  2003-08-02 21:26:24.000000000 -0400
@@ -89,7 +89,7 @@
         return (RETURN_FAILURE);
     }
                                                                                
-    nfonts = T1_Get_no_fonts();
+    nfonts = T1_GetNoFonts();
     if (nfonts < 1) {
         return (RETURN_FAILURE);
     }

Reproducible: Always
Steps to Reproduce:
1.emerge t1lib (5.0.0)
2.emerge grace
3.

Actual Results:  
Fails to link with t1lib


Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
ftp://gentoo.noved.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/"
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/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/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=""
USE="oss slang perl python -aalib -arts -avi -berkdb -cups -encode -esd
-foomaticdb -guile -imlib -kde -libg++ -libwww -mad -mikmod -motif -nas -nls
-pam -qt -sdl -svga -tcpd x86 3dnow alsa apm bonobo crypt gdbm gif gnome gpm gtk
gtk2 java jpeg maildir mmx mozilla mpeg ncurses oggvorbis opengl pdflib png
quicktime readline spell ssl tcltk tetex truetype usb X xml2 xmms xv zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -fomit-frame-pointer -pipe"
CXXFLAGS="-march=athlon-tbird -O3 -fomit-frame-pointer -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv"

------- Comment #1 From Mamoru KOMACHI (RETIRED) 2003-08-09 01:36:08 0000 -------
Fixed.  Thanks for reporting the bug.