Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70717 - Ebuild for latest hugs98 development snapshot (hugs98-20041101)
Summary: Ebuild for latest hugs98 development snapshot (hugs98-20041101)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-10 15:00 UTC by David Morgan
Modified: 2005-03-23 09:50 UTC (History)
0 users

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


Attachments
hugs98-20041101.ebuild (hugs98-20041101.ebuild,1.89 KB, application/octet-stream)
2004-11-10 15:01 UTC, David Morgan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Morgan 2004-11-10 15:00:32 UTC
Summary says it all, except that this fails miserably with gcc 3.4, where the following runhugs errors occur:

1) Syntax error in declaration (unexpected `{', possibly due to bad layout), for a lot (if not all) of the files in ${S}/hugsdir/libraries/Data (e.g. Bits.hs, Lists,hs, Ratio.hs). 

2) Last generator in do {...} must be an expression, for ${S}/hugsdir/libraries/System/IO/Error.hs

3) Unterminated nested comment {- ..., for ${S}hugsdir/libraries/Foreign/C/Types.hs

1) is almost certainly a whitespace problem, and I wouldn't be suprised if 2) and 3), but I haven't had time to look at them yet

Reproducible: Always
Steps to Reproduce:
Comment 1 David Morgan 2004-11-10 15:01:44 UTC
Created attachment 43684 [details]
hugs98-20041101.ebuild
Comment 2 Duncan Coutts (RETIRED) gentoo-dev 2004-11-11 06:46:45 UTC
hugs does not seem to be gcc 3.4 friendly yet, it's a C pre-processor problem. See bug #64426 for more details and a possible patch/solution.

We'll add an ebuild for hugs when the next release is made (which according to the latest HC&A should be soon). We should get our gcc 3.4 patches upstream to the hugs maintainers so we don't have to keep applying the patches in the ebuild.
Comment 3 David Morgan 2004-11-11 07:20:16 UTC
I came up with the fix for bugs #64426, but sadly this is a different problem.

Upstream already have a fix for #bug 64426, which is slightly different - instead of changing "infix 5 \\" in whatever file it is to "infix 5 \\\", they changed it to "infix 5 \\ -- comment to fool cpp". The end result is the same either way though.
Comment 4 Andres Loeh (RETIRED) gentoo-dev 2004-11-16 14:38:04 UTC
I agree that we should make sure that whenever hugs98 will be released again,
it will be gcc-3.4-friendly. Apart from testing this now, is there anything
in the current hugs98 development snapshot that you need and that isn't in
Nov 2003?

ks
Comment 5 David Morgan 2004-11-16 14:41:51 UTC
No, there's nothing in it that I need, I just thought that any one feeling adventurous might like to help test this, and it gives us a head start for when the next stable release is made
Comment 6 Andres Loeh (RETIRED) gentoo-dev 2005-03-23 09:50:13 UTC
I think this can be closed. Afaics, the Hugs interim release builds fine with gcc-3.4.

ks