Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54227 - dev-lang/ghc documentation
Summary: dev-lang/ghc documentation
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Andres Loeh (RETIRED)
URL:
Whiteboard:
Keywords:
: 54229 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-17 14:33 UTC by Peter Simons
Modified: 2004-06-18 02:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Simons 2004-06-17 14:33:15 UTC
The ghc release archive contains more documentation than is installed per default. It's weird, really. Basically, you need to create more build.mk files which contain the line

  SGMLDocWays := html

..., and then "make html" will install *lots* more. Including reference documentation for all the Haskell libraries, etc. When I configure ghc for manual builds, I use the following shell script (snippet):

DOCDIRS="alex ghc haddock happy hslibs libraries"

for n in ${DOCDIRS}; do
  echo >$n/mk/build.mk "SGMLDocWays := html"
done

echo  >mk/build.mk "SGMLDocWays := html"
echo >>mk/build.mk "SRC_CC_OPTS+=-fno-pic -fno-stack-protector"
echo >>mk/build.mk "SRC_HC_OPTS+=-optc-fno-pic -optc-fno-stack-protector"

The subdirectories alex, happy, haddock do not apply for the standard distribution, these are just in the CVS version, though.

Anyway, perhaps it would be a good idea to add this to the ebuild? It shouldn't even add new dependencies.

Reproducible: Always
Steps to Reproduce:
Comment 1 Sven Wegener gentoo-dev 2004-06-17 14:41:05 UTC
*** Bug 54229 has been marked as a duplicate of this bug. ***
Comment 2 Andres Loeh (RETIRED) gentoo-dev 2004-06-18 00:19:51 UTC
As far as I can see, the ghc ebuilds do this, and have done so for a long time.
Am I missing something?

ks
Comment 3 Peter Simons 2004-06-18 02:05:07 UTC
Uh ... now I'm confused, too. As far as I can see, the "SGMLDocWays" directive is added to $TOP/mk/build.mk, but not to the $TOP/{ghc,libraries,...}/mk/build.mk files in the subdirectories. But apparently this has stopped being a problem in the GHC later versions, because obviously the documentation is there!

Well, I dunno, it's probably best to close the PR. I should have checked the installed docs -- instead of just looking at the ebuild. Sorry!