Opened 3 years ago

Closed 3 years ago

#10232 closed bug (fixed)

versionedAppDir ignores projectVersion from DynFlags

Reported by: luite Owned by:
Priority: high Milestone: 7.10.2
Component: Compiler Version: 7.10.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D824
Wiki Page:


versionedAppDir uses the constant cProjectVersion rather than (projectVersion dflags).

versionedAppDir was introduced after GHC 7.10 RC1 and I unfortunately didn't catch this before the release. This changes the location of the user package DB, which is now inconsistent between Cabal and GHCJS, making the user pkg db unusable when GHC has been compiled with 7.10.1

Symlinking the user package db directory is a workaround, but it's only a partial solution since multiple GHCJS versions on the same GHC will clash.

Change History (5)

comment:1 Changed 3 years ago by luite

Milestone: 7.10.2

comment:2 Changed 3 years ago by luite

Differential Rev(s): Phab:D824
Status: newpatch

comment:3 Changed 3 years ago by Austin Seipp <austin@…>

In 6109b312cdd9dfe4bdad4030e0185dd67e6ec18d/ghc:

use projectVersion from DynFlags rather than cProjectVersion for versionedAppDir

Reviewed By: edsko, austin

Differential Revision:

GHC Trac Issues: #10232

comment:4 Changed 3 years ago by thoughtpolice

comment:5 Changed 3 years ago by thoughtpolice

Resolution: fixed
Status: patchclosed
Note: See TracTickets for help on using tickets.