Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2785 - nhc98 1.12 Haskell Compiler Ebuild
Summary: nhc98 1.12 Haskell Compiler Ebuild
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: George Shapovalov (RETIRED)
Depends on:
Reported: 2002-05-16 15:12 UTC by Bardur Arantsson
Modified: 2002-06-21 23:24 UTC (History)
1 user (show)

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

Ebuild for nhc98 1.12 (nhc98-1.12.tar.gz,1.16 KB, application/x-tgz)
2002-05-16 15:12 UTC, Bardur Arantsson
Fixed hmakerc file (hmakerc.working,615 bytes, text/plain)
2002-06-09 08:55 UTC, Bardur Arantsson
Fixed fixed hmakerc file (hmakerc.take2,335 bytes, text/plain)
2002-06-10 14:08 UTC, Bardur Arantsson

Note You need to log in before you can comment on or make changes to this bug.
Description Bardur Arantsson 2002-05-16 15:12:02 UTC
The attached archive contains an ebuild for the NHC98 Haskell compiler (see for details). Nothing spectacular in this ebuild, but it does include 
an official patch (there are currently two other official patches, but they are not relevant on Linux). 
The license is a little unclear, so I've not put in a "LICENSE=" line in the ebuild. For reference, the 
license is installed in /usr/doc/nhc98/copyright.html along with other documentation.
Comment 1 Bardur Arantsson 2002-05-16 15:12:44 UTC
Created attachment 1016 [details]
Ebuild for nhc98 1.12
Comment 2 George Shapovalov (RETIRED) gentoo-dev 2002-05-24 21:32:44 UTC
Hi Bardur

Is this one related somehow to dev-lang/hugs98?
I am about to check it out, just want to make sure there are no duplicates (I
doesn't seem so, but still better to check..)

Comment 3 Bardur Arantsson 2002-05-25 07:06:28 UTC
 no, this is not related with hugs98 in any way. (well, aside from the fact that it is a compiler for 
the same language :)) 
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2002-06-09 02:44:19 UTC
Comitted the ebuild, closing bug.

Ebuild was fine except docs: package Makefiles had some weird (and apparently
not FHS compliant) ideas about where to put various docs. Had to do this part

Comment 5 George Shapovalov (RETIRED) gentoo-dev 2002-06-09 04:30:25 UTC
Hi Bardur.

Just found one issue with hmake or rather wrapper script hi:

[gerr@groug html]$ hi
__   __                 __             _____________________________________
||   ||  ______    ___  || _  ____     hmake interactive (hi):
||___|| || || ||  ___|| ||/  ||__||      Copyright (c) May 2000
||---|| || || || ||__|| ||\_ ||__
||   ||                                Report bugs to:
||   || Version: 3.02 (2002-03-14)     -------------------------------------
                                           ... Using compiler
/var/tmp/portage/nhc98-1.12/work/nhc98-1.12/script/nhc98 ...

Type :? for help
[Module Prelude not found...]
[Cannot continue without Prelude...]

Apparently hi tries to find modules and the compiler where nhc was built instead
of where it was installed :(

hmake appears to be looking for modules under ${D} as well.

Masking nhc98 for now, reopening the bug...

Comment 6 Bardur Arantsson 2002-06-09 08:53:46 UTC
*sigh* Stupid, stupid configuration system... why do people always insist on 
rolling their own...? 
Anyway, I've located the cause of the problem: 
/usr/lib/hmake/<arch>-<sys>/hmakerc contains an incorrect path for the nhc98 
I haven't had time to fix the ebuild, but it should be a simple matter of 
installing the attached hmakerc.working instead of the one being installed by 
the "make install". To find the appropriate path, use `arch -p` for <arch> and 
`arch -s` for <sys> in the above path. 
Ugly? Certainly, but I have tried several other ways of fixing it, all without 
success :( 
Comment 7 Bardur Arantsson 2002-06-09 08:55:24 UTC
Created attachment 1410 [details]
Fixed hmakerc file
Comment 8 Bardur Arantsson 2002-06-09 08:58:23 UTC
Btw, you might need to remove the /root/.hmakerc/<arch>-<sys> file to get 
everything working, since it may contain obsolete defaults. 
Comment 9 George Shapovalov (RETIRED) gentoo-dev 2002-06-09 17:07:54 UTC
Hi Bardur

Thanks for sorting this out.
Updated ebuild and committed changes. Could you please test it?
I'll unmask nhc98 after your report.

Comment 10 Bardur Arantsson 2002-06-10 14:06:56 UTC
Testing with the new hmakerc revealed, that it was indeed possible to 
compile+install, but caused failure when upgrading. 
I've create yet another new hmakerc. This has been tested to work correctly 
- completely unmerging, then merging nhc98 (which should be the same as a 
completely new install) 
- merging while another "version" of nhc98 was already merged (which should 
act the same way an upgrade would). 
I've attached the new new hmakerc as hmakerc.take2. 
Comment 11 Bardur Arantsson 2002-06-10 14:08:06 UTC
Created attachment 1428 [details]
Fixed fixed hmakerc file
Comment 12 George Shapovalov (RETIRED) gentoo-dev 2002-06-21 23:24:21 UTC
Thanks for an update!