Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43906 - fortune-mod-1.99.1 (updated ebuild)
Summary: fortune-mod-1.99.1 (updated ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement
Assignee: Gentoo Games
URL: http://www.redellipse.net/code/fortune/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-06 12:35 UTC by Daniel Fullmer
Modified: 2004-05-12 14:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fortune-mod-1.99.1.ebuild (fortune-mod-1.99.1.ebuild,1.22 KB, text/plain)
2004-03-06 12:35 UTC, Daniel Fullmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Fullmer 2004-03-06 12:35:14 UTC
After a long 5 years, fortune-mod is once again actively maintained.

From http://www.redellipse.net/code/fortune/:

There are quite a few differences between this version of fortune, and the one which is currently available for most distributions. These changes include:

    * Some internationalisation support
    * UTF-8 support
    * Zillions of extra fortunes that have been suggested to the Debian maintainers over the last 5 years
    * Number of spelling fixes.
    * Fixes to REGEXPs searches
    * Changes in percentage allocations
    * A few bug fixes
    * A Y2K compliant version number
    * Some other stuff I've probably forgotten about ;-) 


I had a problem with the '-m' option, which is supposed to search for fortunes matching an arbitrary regexp. It would segfault sometimes without printing anything, and other times it would print out a few fortunes and then segfault.

I found the offending code in fortune.c in matches_in_list() on line 1581:

if (fp->utf8_charset)
       free (output);

I'm not exactly sure how the whole function works, but when i removed this code the '-m' option worked fine. Emailing the maintainer about this.


Oh yeah, and portage thinks that 1.99.1 is older than 9708.  Is there a way to specify version order in the ebuild?
Comment 1 Daniel Fullmer 2004-03-06 12:35:49 UTC
Created attachment 26952 [details]
fortune-mod-1.99.1.ebuild
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2004-03-08 05:56:23 UTC
Hrrrmn... unfortunately, there is no way that I know of to "force" an ebuild to install over another.  I think we'll definitely need to investigate this one a bit more before we can add it.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-03-08 10:54:37 UTC
No problem.  First we add the new version to portage, then mask the old version
in profiles/package.mask.  It's pretty straight forward.
Comment 4 Daniel Fullmer 2004-03-08 12:19:17 UTC
>No problem.  First we add the new version to portage, then mask the old version
in profiles/package.mask.  It's pretty straight forward.

I know we can do that, but do you guys think specifying version order would be a good idea for portage?  It would probably only be a good idea if there are other packages out there that do something funky like this.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2004-03-18 16:39:51 UTC
That would be useful in these few fringe cases where it happens, butit would make for a pretty hefty maintenance nightmare to keep up with version orders, unless it was completely optional.  SpanKY, what's the plan on this one?
Comment 6 SpanKY gentoo-dev 2004-03-18 18:04:27 UTC
9708 becomes 1.0.9708 and we delete 9708

then we add 1.99.1 as unstable

everyone in stable goes to 1.0.9708 (it's a small program so i dont care about the recompile hassle) while everyone in unstable goes to 1.99.1
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-12 14:30:08 UTC
This has been done in CVS