Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:


Ticket #133 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Haddock is not installed properly with the windows HP 2009.2.0.2 installer

Reported by: creswick Owned by: refold
Priority: major Milestone: 2009.2.0.2
Component: Windows installer Keywords:
Cc:

Description

The Windows installer improperly registers the haddock library in the global package db. The path specified in the db is a constant path based on the system that the installer was built on:

c:\builds\slave\x86-win-stable\build\ghc-6.10.4\haddock-2.4.2

This was resolved in later versions of the Haskell Platform, but no subsequent 2009 version was released with a fixed installer. This would not be as much of a problem, however, the build process for haddock has different dependencies when the library is built from within the ghc source tree. This makes it very difficult to generate a fully working install of the 2009 Haskell Platform on windows. Reinstalling haddock installs an extra package (ghc-paths) that is not included in the Haskell platform. This alters the environment and complicates the build process when distributing packages that need only to depend on HP 2009.

One theoretical workaround is to manually edit the package database, but this is clearly error prone.

This could be resolved relatively simply by generating a 2009.2.0.3 maintenance release with the proper relative path.

Change History

Changed 4 years ago by creswick

This can be verified by installing HP 2009.2.0.2, and then issuing ghc-pkg check:

+ ghc-pkg check --global
There are problems in package haddock-2.4.2:
  import-dirs: c:/builds/slave/x86-win-stable/build/ghc-6.10.4\haddock-2.4.2 doesn't exist or isn't a directory
  library-dirs: c:/builds/slave/x86-win-stable/build/ghc-6.10.4\haddock-2.4.2 doesn't exist or isn't a directory
  file Distribution\Haddock.hi is missing
  file Haddock\DocName.hi is missing
  file Haddock\Types.hi is missing
  file Haddock\InterfaceFile.hi is missing
  file Haddock\Exception.hi is missing
  file Haddock\Utils.hi is missing
  file Haddock\GHC\Utils.hi is missing
  cannot find libHShaddock-2.4.2.a on library path

The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
haddock-2.4.2
Finished: FAILURE

Changed 4 years ago by refold

  • status changed from new to assigned

Changed 4 years ago by refold

This is probably a bug in the GHC 6.10.4 distribution (judging from the 'c:/builds/slave/x86-win-stable...' path). Can you provide a patch for the 'package.conf' file?

Changed 4 years ago by refold

  • status changed from assigned to closed
  • resolution set to fixed

I assume that this is fixed in newer GHC installers.

Note: See TracTickets for help on using tickets.