Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130462 - app-doc/doc++ doesn't compile with current flex (patch included)
Summary: app-doc/doc++ doesn't compile with current flex (patch included)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Pieter Van den Abeele (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-19 04:51 UTC by Rüpel
Modified: 2006-07-12 15:57 UTC (History)
1 user (show)

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


Attachments
the updated ebuild 3.4.10-r1 with the patch (doc++-3.4.10-r1.ebuild,703 bytes, text/plain)
2006-04-19 04:53 UTC, Rüpel
Details
the patch (doc++-3.4.10-flex.patch,377 bytes, patch)
2006-04-19 04:54 UTC, Rüpel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rüpel 2006-04-19 04:51:21 UTC
the current version 3.4.10 of app-doc/doc++ is from 2002 o_O

in between something has changed in flex, such that the current doc++ package does not compile.

i've found a patch via google:
http://svn.exactcode.de/t2/trunk/package/develop/docpp/flex-hotfix.patch

i've renamed the patch to doc++-3.4.10-flex.patch and updated the 3.4.10 ebuild to 3.4.10-r1 (i'll attach it here)

the patched version works. tested on x86. but since the problem seems to be an issue with the flex-syntax, i would assume it applies to all platforms.
Comment 1 Rüpel 2006-04-19 04:53:01 UTC
Created attachment 84950 [details]
the updated ebuild 3.4.10-r1 with the patch

attached the new ebuild
Comment 2 Rüpel 2006-04-19 04:54:32 UTC
Created attachment 84951 [details, diff]
the patch

the patch - i've stripped the comments but i don't know if that actually a good idea, because it contained the license - does a patch need a license? well - luckily i'm no maintainer... ;)
Comment 3 David Owen 2006-04-28 09:39:57 UTC
Here's an alternate patch.  It doesn't change the output of the program at all.

--- docify.ll.old       2006-04-28 10:30:43.634423500 -0600
+++ docify.ll   2006-04-28 10:30:51.826935500 -0600
@@ -314,7 +314,7 @@
        {
        if(argv[1][0] == '-')
            {
-           fprintf(stderr, "Usage: docify [infile [outfile]]\n");
+           fprintf(stderr, "Usage: docify [infile [outfile]""]\n");
            return 0;
            }
        ain = fopen(argv[1], "r");

I hereby certify that I am the original author of this patch, and I release it to the public domain.
Comment 4 Aidan Taniane 2006-06-11 12:58:48 UTC
I can verify that the patch works fine and allows doc++-3.4.10-r1.ebuild to compile on x86.

doc++-3.4.10.ebuild is the current (and only) doc++ ebuild which doesn't compile on current stable systems, thus blocking any package that depends on doc++.
Comment 5 Pieter Van den Abeele (RETIRED) gentoo-dev 2006-07-12 13:37:08 UTC
I'll commit this in a minute.
Comment 6 Pieter Van den Abeele (RETIRED) gentoo-dev 2006-07-12 15:56:46 UTC
in cvs
Comment 7 Pieter Van den Abeele (RETIRED) gentoo-dev 2006-07-12 15:57:01 UTC
and closing bug.