[GHC] #9808: Add data-dir to InstalledPackageInfo

#9808: Add data-dir to InstalledPackageInfo -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.3 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Unknown | Type of failure: Blocked By: | None/Unknown Related Tickets: | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Currently, the data directory of a package is not stored in the package database. This is fine for programs produced by GHC, where programs know the location of their own data files through the `Paths_packagename` module, but it's not sufficient for programs that do not have direct access to the local filesystem. Programs produced by GHCJS should be able to load their data files over HTTP. If GHCJS would know the `data-dir` location of all packages, it could make the data files for all dependencies available when linking, and generate a `FilePath -> URI` mapping table. The best it can currently do is making all files on the hard drive available. I have a patch for this that I'll submit once I've figured out how Phabricator works ;) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9808 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9808: Add data-dir to InstalledPackageInfo -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by luite): The required change, that adds the `data-dir` field to `InstalledPackageInfo` is now in upstream Cabal, but since I don't have commit access to the Cabal submodule repo that GHC is using, I have no idea how to make this revision available to `arc diff`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9808#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9808: Add data-dir to InstalledPackageInfo -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Package | Version: 7.8.3 system | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D499 | -------------------------------------+------------------------------------- Changes (by thomie): * differential: => Phab:D499 * component: Compiler => Package system -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9808#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9808: Add data-dir to InstalledPackageInfo -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Package | Version: 7.8.3 system | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D499 | -------------------------------------+------------------------------------- Comment (by luite): turned out to be not too hard after all, after thomie told me that the git.haskell.org/packages/Cabal.git is automatically mirrored from github :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9808#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9808: Add data-dir to InstalledPackageInfo -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: task | Status: infoneeded Priority: normal | Milestone: 7.10.1 Component: Package | Version: 7.8.3 system | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D499 | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => infoneeded Comment: Since Phab:D499 was abandoned, and Phab:D514 accepted, can this ticket be closed? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9808#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9808: Add data-dir to InstalledPackageInfo -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: task | Status: infoneeded Priority: normal | Milestone: 7.10.1 Component: Package | Version: 7.8.3 system | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D499 | -------------------------------------+------------------------------------- Comment (by luite): this can be closed for now. in ghc 7.10 i can do what i need with just the Cabal change, but it's not a terribly clean solution. might revisit this for 7.12 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9808#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9808: Add data-dir to InstalledPackageInfo -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: task | Status: closed Priority: normal | Milestone: 7.10.1 Component: Package | Version: 7.8.3 system | Keywords: Resolution: wontfix | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D499 | -------------------------------------+------------------------------------- Changes (by luite): * status: infoneeded => closed * resolution: => wontfix -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9808#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC