Description of problem:
In the package.conf for haddock-* paths /usr/share is used instead of
/usr/share/doc. This makes Haddock unable to link user docs to system installed
ones. Haddock emits warnings when used.
As a dirty fix, this *seems* to produce an ok package.conf
sed -e 's_/usr/share/ghc_/usr/share/doc/ghc_g' \
Version-Release number of selected component (if applicable):
Steps to Reproduce:
ghc-pkg describe base | grep haddock
Jens, I can take this. Reassign to yourself if you really, really want it :-)
BTW is this a ghc bug or an haddock issue?
Don't know yet :-)
This bug is still present in Fedora 7.
Our ghc-6.6.1 had /usr/share/ghc-6.6.1/html/libraries/<package>.
We are overriding docdir when build the ghc haddock files but
that doesn't seem to be reaching the package.conf file.
It would be good to ask about it upstream anyway IMHO.
Otherwise a simple workaround for now would be just to tweak
the package.conf file with "sed -i" say. Though that would be a bad hack.
I'm trying a fix with the configure script. If that doesn't work, I'll file a
bug upstream and write a sed script to mangle package.conf.
There is indeed an upstream bug:
But I might have a workaround. I've got a build going in koji right now:
That took a lot of work, but here's a fixed version. It's in F-8 testing now.
ghc-6.8.2-8.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update ghc'
Updated to testing as suggested, but still wrong paths:
$ ghc-pkg describe base | grep haddock
(should be ghc-6.8.2)
Also see #425974
What release of the package is installed now? Should be ghc-6.8.2-8.fc8 which
has the correct paths.
The release was the right one (ghc682-6.8.2-8.fc8), but my package.conf file was
not updated, likely because it's a conf file and was somehow modified (by
installing the gtk2hs RPM I guess).
S.5....T c /usr/lib64/ghc-6.8.2/package.conf
(BTW Cabal should really install one file per package, rather than put
everything in the global package.conf.)
Sorry for the spam.
Yes, package.conf is marked as noreplace, so that behaviour is expected.
ghc-6.8.2-8.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.