Subject: bin/18312: phantasia should set grail location at runtime not buildtime
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lukem@netbsd.org>
List: netbsd-bugs
Date: 09/17/2002 16:18:08
>Number:         18312
>Category:       bin
>Synopsis:       phantasia should set grail location at runtime not buildtime
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 16 23:19:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Luke Mewburn
>Release:        NetBSD 1.6
>Organization:
>Environment:
>Description:
	In games/phantasia, the initial location of the "holy grail"
	is set at build time (c.f, setup.c lines 114-115).

	This causes minor a issue when building a distribution and
	comparing with previous builds or with other builds in the
	same MACHINE_ARCH, because ./var/games/phantasia/void differs
	in each build.

>How-To-Repeat:
	Build a release.
	Build another one (to a separate location).
	Compare the contents of games.tgz and notice that
	/var/games/phantasia/void differs.

>Fix:
	Remove assignment from setup.c so that the grail is not
	active, and add a check to the main code to check for an
	active grail on startup, and if it's not found, create one.

	(Implementation is left as an exercise for the reader, in case
	someone has more Infinite Spare Time than I do.  Otherwise,
	I'll look at this in the future).
>Release-Note:
>Audit-Trail:
>Unformatted: