<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>32544</bug_id>
          
          <creation_ts>2003-11-02 06:37 0000</creation_ts>
          <short_desc>Build error in font directory for VICE-1.13 (with fix)</short_desc>
          <delta_ts>2003-12-27 01:05:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rosbacke@nada.kth.se</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>hanno@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>rosbacke@nada.kth.se</who>
            <bug_when>2003-11-02 06:37:49 0000</bug_when>
            <thetext>When I try to emerge &apos;vice&apos;, 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 &quot;Preparing fontdir...&quot; ; \ 
        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 &quot;Preparing fontdir...&quot; ; \ 
        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=&quot;x86&quot; 
AUTOCLEAN=&quot;yes&quot; 
CFLAGS=&quot;-march=athlon-tbird -O3 -pipe&quot; 
CHOST=&quot;i686-pc-linux-gnu&quot; 
COMPILER=&quot;gcc3&quot; 
CONFIG_PROTECT=&quot;/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&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot; 
CXXFLAGS=&quot;-march=athlon-tbird -O3 -pipe&quot; 
DISTDIR=&quot;/usr/portage/distfiles&quot; 
FEATURES=&quot;sandbox autoaddcvs ccache distcc&quot; 
GENTOO_MIRRORS=&quot;http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ 
ftp://ftp.uninett.no/pub/linux/Gentoo&quot; 
MAKEOPTS=&quot;-j2&quot; 
PKGDIR=&quot;/usr/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR=&quot;/usr/portage&quot; 
PORTDIR_OVERLAY=&quot;&quot; 
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot; 
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-11-02 17:55:59 0000</bug_when>
            <thetext>Mikael - you show removing the call to mkfontdir.  Why should the mkfontdir
call be removed?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rosbacke@nada.kth.se</who>
            <bug_when>2003-11-03 02:42:01 0000</bug_when>
            <thetext>I compared the Makefile in the font directory to the Makefile in another
data directory and all they had for install was &apos;install : install-am&apos;
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&apos;m not to familiar with the automake/autoconf system so its mostly
a guess.
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rosbacke@nada.kth.se</who>
            <bug_when>2003-11-03 06:01:33 0000</bug_when>
            <thetext>Now I think the command mkfontdir is still needed. However I&apos;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&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-11-03 12:19:13 0000</bug_when>
            <thetext>The font.dir file seems to be clean so I went ahead and commited this fix.
Shouldn&apos;t be worse than it was before anyhow. ;-)  Give it a try please
and let me know how you like it.  Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-11-04 01:29:10 0000</bug_when>
            <thetext>Moving to TESTing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rosbacke@nada.kth.se</who>
            <bug_when>2003-11-04 02:07:48 0000</bug_when>
            <thetext>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&apos;t blame vice for this. My guess is that this is due to my
XFree. I&apos;m running XFree 4.3.99-14 due to a fairly new graphics card (Radeon
9600) and I&apos;m pretty sure a utility shouldn&apos;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&apos;
make[3]: Entering directory `/var/tmp/portage/vice-1.13/work/vice-1.13/data/fonts&apos;
make[3]: Nothing to be done for `install-exec-am&apos;.
/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&apos;
Preparing fontdir...
make[2]: *** [install] Error 139
make[2]: Leaving directory `/var/tmp/portage/vice-1.13/work/vice-1.13/data/fonts&apos;
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/vice-1.13/work/vice-1.13/data&apos;
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 #
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-11-07 00:28:53 0000</bug_when>
            <thetext>I&apos;m going to go ahead and close this since it doesn&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-12-27 01:04:52 0000</bug_when>
            <thetext>stupid bugzilla</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-12-27 01:05:34 0000</bug_when>
            <thetext>this is fixed</thetext>
          </long_desc>
      
    </bug>

</bugzilla>