Bug 237398 - Wrong haddock-* paths in package.conf
Summary: Wrong haddock-* paths in package.conf
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc
Version: 7
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Bryan O'Sullivan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On: 425974
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-04-21 22:54 UTC by Roberto Zunino
Modified: 2008-01-18 23:55 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2008-01-16 04:12:48 UTC


Attachments (Terms of Use)

Description Roberto Zunino 2007-04-21 22:54:31 UTC
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' \
   < /usr/lib64/ghc-%{version}/package.conf

Version-Release number of selected component (if applicable):

ghc66-6.6-1.fc6

Steps to Reproduce:

ghc-pkg describe base | grep haddock
  
Actual results:

haddock-interfaces: /usr/share/ghc-6.6/html/libraries/base/base.haddock
haddock-html: /usr/share/ghc-6.6/html/libraries/base

Expected results:

haddock-interfaces: /usr/share/doc/ghc-6.6/html/libraries/base/base.haddock
haddock-html: /usr/share/doc/ghc-6.6/html/libraries/base

Comment 1 Bryan O'Sullivan 2007-06-09 16:38:30 UTC
Jens, I can take this.  Reassign to yourself if you really, really want it :-)

Comment 2 Jens Petersen 2007-06-13 05:42:05 UTC
Thanks, Bryan.

BTW is this a ghc bug or an haddock issue?

Comment 3 Bryan O'Sullivan 2007-06-13 06:08:31 UTC
Don't know yet :-)

Comment 4 Till Maas 2008-01-06 21:18:13 UTC
This bug is still present in Fedora 7.

Comment 5 Jens Petersen 2008-01-07 02:44:59 UTC
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.

Comment 6 Jens Petersen 2008-01-07 02:52:27 UTC
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.

Comment 7 Bryan O'Sullivan 2008-01-07 03:20:06 UTC
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.

Comment 8 Bryan O'Sullivan 2008-01-07 04:05:20 UTC
There is indeed an upstream bug:

http://hackage.haskell.org/trac/ghc/ticket/2020

But I might have a workaround.  I've got a build going in koji right now:

http://koji.fedoraproject.org/koji/taskinfo?taskID=330010

Comment 9 Bryan O'Sullivan 2008-01-07 23:04:29 UTC
That took a lot of work, but here's a fixed version.  It's in F-8 testing now.

http://koji.fedoraproject.org/koji/buildinfo?buildID=30503

Comment 10 Fedora Update System 2008-01-11 22:12:37 UTC
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'

Comment 11 Roberto Zunino 2008-01-15 02:45:29 UTC
Updated to testing as suggested, but still wrong paths:

$ ghc-pkg describe base | grep haddock
haddock-interfaces: /usr/share/doc/ghc/libraries/base/base.haddock
haddock-html: /usr/share/doc/ghc/libraries/base

(should be ghc-6.8.2)

Also see #425974

Comment 12 Bryan O'Sullivan 2008-01-15 04:17:36 UTC
What release of the package is installed now?  Should be ghc-6.8.2-8.fc8 which
has the correct paths.

Comment 13 Roberto Zunino 2008-01-16 04:12:48 UTC
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.

Comment 14 Bryan O'Sullivan 2008-01-16 06:00:16 UTC
Yes, package.conf is marked as noreplace, so that behaviour is expected.

Comment 15 Fedora Update System 2008-01-18 23:55:02 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.