Bug 89811 - fortune's .dat format change breaks precompiled bible.dat for misc/fortune-mod-bible
Summary: fortune's .dat format change breaks precompiled bible.dat for misc/fortune-mo...
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: 2005-12-01 19:00 UTC by Doug Poland
Modified: 2005-12-03 03:35 UTC (History)
0 users

See Also:


Attachments
fortune-mod-bible.diff (869 bytes, patch)
2005-12-03 03:21 UTC, Ion-Mihai " IOnut " Tetcu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Poland 2005-12-01 19:00:14 UTC
On Thu Feb 17 18:06:37 2005 UTC, ru submitted a change (1.27) to fortune.c that implements a change to read a new on-disk format of the .dat files.  (http://www.freebsd.org/cgi/cvsweb.cgi/src/games/fortune/fortune/fortune.c)

This change renders old .dat files incompatible with version of fortune compiled after 2005-02-17.

Therefore, the supplied bible.dat file that is supplied with the port no longer works.

Fix: 

The interim fix is to re-compile the .dat file thusly:

# strfile -C bible

The long term fix is to change the Makefile so it generates the .dat file when the port is built.

Note to self: As the distfile is also used in the GNU/Linux realm, I can still supply the pre-compiled .dat file as it works on x86 arch.  Elegent fix would be to have RPM thingies work like the port, build the .dat upon installation.
How-To-Repeat: % fortune /usr/local/share/games/fortune/bible
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-01 20:17:05 UTC
Class Changed
From-To: change-request->maintainer-update

Fix category (submitter is maintainer)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-03 02:30:05 UTC
State Changed
From-To: open->feedback

Do you have patch for this problem?
Comment 3 Ion-Mihai " IOnut " Tetcu 2005-12-03 03:21:12 UTC
patch attached; also use SUB_FILES instead of manually sed'ing

--
IOnut
// helping doctors stay away ;-)
Comment 4 Ion-Mihai " IOnut " Tetcu 2005-12-03 03:27:47 UTC
On Sat, 3 Dec 2005 05:21:12 +0200
Ion-Mihai Tetcu <itetcu@people.tecnik93.com> wrote:

> patch attached; also use SUB_FILES instead of manually sed'ing

Forgot to tell strfile about comments ``-C''; use attached patch
instead.

-- 
IOnut - Unregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
Comment 5 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-03 03:34:00 UTC
State Changed
From-To: feedback->closed

Committed, thanks!