Subject: bin/2116: fortunes/ fortunes-o depends on caesar
To: None <gnats-bugs@NetBSD.ORG>
From: Joao Paulo G. Nacao <nacao@lin.ufrj.br>
List: netbsd-bugs
Date: 02/23/1996 15:18:04
>Number:         2116
>Category:       bin
>Synopsis:       if caesar isn't installed, make fortune leads an empty fortunes-o file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 23 13:50:02 1996
>Last-Modified:
>Originator:     Joao Paulo G. Nacao
>Organization:
LIN-Nuclear Instrumenation Labs. - COPPE - UFRJ
>Release:        1.1
>Environment:

System: NetBSD rivendel.lin.ufrj.br 1.1 NetBSD 1.1 (INSTADP) #0: Fri Nov 24 06:06:48 PST 1995 root@boojum.piermont.com:/usr/src/sys/arch/i386/compile/INSTADP i386

>Description:

	After instaled my system I discovered forget to instal games.
Whem building games, notice that fortune uses caesar to generate the
fortunes-o file:

/caesar/caesar > fortunes-o
/usr/games/caesar: not found
*** Error code 2

	If someone tries again it continues as OK but leaves an empty
fortunes-o file.

>How-To-Repeat:

	Install NetBSD-1.1 without games package and try to compile fortune

>Fix:

	Change the Makefile in fortunes-o from:

fortunes-o: fortunes-o.${TYPE}
       /usr/games/caesar 13 < ${.ALLSRC} > ${.TARGET}

	to:

fortunes-o: fortunes-o.${TYPE} $(.CURDIR)/../../caesar/caesar
        $(.CURDIR)/../../caesar/caesar 13 < ${.ALLSRC} > ${.TARGET}


>Audit-Trail:
>Unformatted: