Bug 61235 - freebsd-games: quiz/pathnames.h contains hardcoded path
Summary: freebsd-games: quiz/pathnames.h contains hardcoded path
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-12 09:40 UTC by Mark Laws
Modified: 2004-01-12 21:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Laws 2004-01-12 09:40:15 UTC
	pathnames.h in quiz(6) contains hard-coded paths, resulting in
the following error:

quiz: /usr/local/local/local/share/games/quiz.db/index: No such file or
directory

Fix: Apply the following patch:



#define        _PATH_PAGER     "/usr/bin/more"
-#define        _PATH_QUIZIDX   "/usr/local/local/share/games/quiz.db/index"
+#define        _PATH_QUIZIDX   "%%PREFIX%%/share/games/quiz.db/index"--vvuDVG4v5XMtVjMfTySyQ8Lwfn5sgm4ikLU7qAVaNJ9Fs3m7
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- pathnames.h.orig    Mon Jan 12 01:19:53 2004
+++ pathnames.h Mon Jan 12 01:27:27 2004
@@ -34,4 +34,4 @@
  */
Comment 1 Mark Laws 2004-01-12 09:52:48 UTC
Oops, sorry. The Makefile needs to be modified as well to get it to
patch pathnames.h, but I'm not sure how to go about doing this. I'm not
*that* smart. :)
Comment 2 Mark Laws 2004-01-12 09:59:08 UTC
Also, the diff should be quiz/pathnames.h.orig and quiz/pathnames.h. No
more late-night patch attempts for me.
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2004-01-12 21:20:54 UTC
State Changed
From-To: open->closed

I fixed it in more robust way. Thanks for reporting!