Summary: | dev-lang/ghc-6.8.2: Why is the haddock documentation not re-built? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Peter Simons <simons> |
Component: | New packages | Assignee: | Gentoo's Haskell Language team <haskell> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Peter Simons
2008-06-02 16:25:24 UTC
What USE flags have been set (USE=ghcbootstrap particularly)? Your `emerge --info' and `emerge -vp ghc', please. If the USE=binary flag is set the installation will simply unpack and install without compiling or rebuilding anything. Did you use this? If so, try to build with USE="doc -binary" and report back, please. USE=ghcbootstrap is only used to make new ghc-bin packages, but I don't think you used it. Hey, thanks for the quick responses! I re-emerged dev-lang/ghc with USE=ghcbootstrap, which hadn't been set previously, and that did the trick. This time, the haddock interface files have been re-built. It never occurred to me to try this flag, because I associated the name "ghc bootstrapping" with the bootstrapping procedure GHC uses when it's being ported to new architectures, which is a really low-level thing, but apparently that's not what this flag is about. The key to everything are the following lines in the ebuild: if use ghcbootstrap && use doc; then echo XMLDocWays="html" >> mk/build.mk echo HADDOCK_DOCS=YES >> mk/build.mk else echo XMLDocWays="" >> mk/build.mk fi I'm not sure that's the best way to handle the situation. Apparently, the ebuild doesn't want to depend on Haddock unless the bootstrap flag is set. I feel that's sensible, but I also believe that the ebuild should take advantage of Haddock if it _is_ installed. If nothing else, the ebuild should issue a warning when it finds an installed haddock version that differs from the version that was used to build the binary package -- i.e. any version other than haddock 0.8 in our case. Anyway, I'm glad that the problem was that simple to fix. ;-) Thanks again for helping me out. |