Bug 32544 - Build error in font directory for VICE-1.13 (with fix)
Bug#: 32544 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: blocker Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: rosbacke@nada.kth.se
Component: Games
URL: 
Summary: Build error in font directory for VICE-1.13 (with fix)
Keywords:  
Status Whiteboard: 
Opened: 2003-11-02 06:37 0000
Description:   Opened: 2003-11-02 06:37 0000
When I try to emerge 'vice', the emerge process fails with an error when trying 
to install the data/fonts folder. I traced the problem to the 
vice-1.13/data/fonts directory. The original Makefile.in contains the 
following: 
install: 
        @echo "Preparing fontdir..." ; \ 
        cd $(prefix)/lib/vice/fonts ; \ 
        bdftopcf -o vice-cbm.pcf vice-cbm.bdf ; \ 
        rm vice-cbm.bdf ; \ 
        mkfontdir . 

Replacing it with: 
install: install-am 
        @echo "Preparing fontdir..." ; \ 
        cd $(DESTDIR)$(prefix)/lib/vice/fonts ; \ 
        bdftopcf -o vice-cbm.pcf vice-cbm.bdf ; \ 
        rm vice-cbm.bdf 

fixes the problem. 
The proper fix would be to change Makefile.am but it requires rerunning aclocal 
and automake. The solution above is a band-aid in the meantime. 



Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test9) 
================================================================= 
System uname: 2.6.0-test9 i686 AMD Athlon(tm) Processor 
Gentoo Base System version 1.4.3.10p1 
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
ccache version 2.3 [enabled] 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-tbird -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
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" 
CXXFLAGS="-march=athlon-tbird -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox autoaddcvs ccache distcc" 
GENTOO_MIRRORS="http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ 
ftp://ftp.uninett.no/pub/linux/Gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif gpm jpeg libg++ mad 
mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib 
directfb gtkhtml alsa gdbm berkdb slang readline arts tetex bonobo svga tcltk 
java guile mysql X sdl tcpd pam libwww ssl perl python imlib oggvorbis gtk qt 
kde motif opengl mozilla gphoto2 cdr dga dnd dvd emacs imap radeon type1 usb 
v4l wmf -gnome -esd"

------- Comment #1 From Mr. Bones. 2003-11-02 17:55:59 0000 -------
Mikael - you show removing the call to mkfontdir.  Why should the mkfontdir
call be removed?

------- Comment #2 From Mikael Rosbacke 2003-11-03 02:42:01 0000 -------
I compared the Makefile in the font directory to the Makefile in another
data directory and all they had for install was 'install : install-am'
So i figured that my new install-am takes care of all the setup of the font
directory. That why I removed mkfontdir.
However, I'm not to familiar with the automake/autoconf system so its mostly
a guess.
 

------- Comment #3 From Mikael Rosbacke 2003-11-03 06:01:33 0000 -------
Now I think the command mkfontdir is still needed. However I'm not sure it
will work to just run it in the current directory. Will that leave some kind
of reference to the temporary install image instead of the final installation
place?
I'm not familiar with the font system but this must be a common problem in
Gentoo and if it is a problem, there must be a solution used in some other
packages.

------- Comment #4 From Mr. Bones. 2003-11-03 12:19:13 0000 -------
The font.dir file seems to be clean so I went ahead and commited this fix.
Shouldn't be worse than it was before anyhow. ;-)  Give it a try please
and let me know how you like it.  Thanks.

------- Comment #5 From Mr. Bones. 2003-11-04 01:29:10 0000 -------
Moving to TESTing.

------- Comment #6 From Mikael Rosbacke 2003-11-04 02:07:48 0000 -------
Tried it and failed :(

Did an emerge and it failed. Removed mkfontdir and all went well. Tried to
run mkfontdir manually and got a segmentation fault!?! 

It seems I can't blame vice for this. My guess is that this is due to my
XFree. I'm running XFree 4.3.99-14 due to a fairly new graphics card (Radeon
9600) and I'm pretty sure a utility shouldn't give you a segmentation fault,
even if the data would be bad.

Anyway, here is the last part of my output during emerge:

Making install in fonts
make[2]: Entering directory `/var/tmp/portage/vice-1.13/work/vice-1.13/data/fonts'
make[3]: Entering directory `/var/tmp/portage/vice-1.13/work/vice-1.13/data/fonts'
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../mkinstalldirs /var/tmp/portage/vice-1.13/image//usr/games/lib/vice/fonts
mkdir -p -- /var/tmp/portage/vice-1.13/image//usr/games/lib/vice/fonts
 /bin/install -c -m 644 cbm-directory-charset.fon
/var/tmp/portage/vice-1.13/image//usr/games/lib/vice/fonts/cbm-directory-charset.fon
 /bin/install -c -m 644 vice-cbm.bdf /var/tmp/portage/vice-1.13/image//usr/games/lib/vice/fonts/vice-cbm.bdf
make[3]: Leaving directory `/var/tmp/portage/vice-1.13/work/vice-1.13/data/fonts'
Preparing fontdir...
make[2]: *** [install] Error 139
make[2]: Leaving directory `/var/tmp/portage/vice-1.13/work/vice-1.13/data/fonts'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/vice-1.13/work/vice-1.13/data'
make: *** [install-recursive] Error 1

!!! ERROR: app-emulation/vice-1.13 failed.
!!! Function src_install, Line 56, Exitcode 2
!!! make install failed

root@hemdatorn mikaelr #

------- Comment #7 From Mr. Bones. 2003-11-07 00:28:53 0000 -------
I'm going to go ahead and close this since it doesn't seem to be a VICE
bug.  mkfontdir works for me and creates a valid fonts.dir file as part
of the vice package.  I think this is desired.

You should enter a new bug about the fact that mkfontdir segfaults on your
system.

------- Comment #8 From SpanKY 2003-12-27 01:04:52 0000 -------
stupid bugzilla

------- Comment #9 From SpanKY 2003-12-27 01:05:34 0000 -------
this is fixed