[GHC] #8414: ghc-pkg prevents dynamic library only packages

#8414: ghc-pkg prevents dynamic library only packages ------------------------------------+------------------------------------- Reporter: AndreasVoellmy | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: ghc-pkg | Version: Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: Other Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- GHC supports compiling Haskell libraries as dynamic libraries and building executables against dynamic libraries. GHCi seems to support loading modules from dynamic libraries, too. So it would seem that it should be possible to have packages that only include dynamic libraries, omitting the .a and .o files typically generated. cabal-install allows building dynamic libraries only, for example with the command "cabal install --disable-library-vanilla --enable-shared --disable-library-profiling". However, ghc-pkg register refuses to install the package without the .a files present. This seems to be a bug with ghc-pkg. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8414 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8414: ghc-pkg prevents dynamic library only packages -------------------------------------+------------------------------------ Reporter: AndreasVoellmy | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: ghc-pkg | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by AndreasVoellmy): I can provide a patch to ghc-pkg to change how it validates packages. However, before I do this, I would like someone to verify that a dynamic- library only package is reasonable and should be allowed. Things seem to work correctly for me if I allow it, but maybe I just got lucky on my platform. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8414#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8414: ghc-pkg prevents dynamic library only packages -------------------------------------+------------------------------------- Reporter: | Owner: AndreasVoellmy | Status: new Type: bug | Milestone: Priority: normal | Version: Component: ghc-pkg | Keywords: Resolution: | Operating System: Unknown/Multiple Differential Revisions: | Type of failure: Other Architecture: | Test Case: Unknown/Multiple | Blocking: Difficulty: Unknown | Blocked By: | Related Tickets: | -------------------------------------+------------------------------------- Comment (by ezyang): Note that you can override GHC's file checks using {{{-force-files}}}. But perhaps that is too heavy of a hammer here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8414#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8414: ghc-pkg prevents dynamic library only packages -------------------------------------+------------------------------------- Reporter: AndreasVoellmy | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: ghc-pkg | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Other | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by jessicah): FWIW, I run a dynamic only installation of GHC on Haiku (no vanilla libs for GHC or packages installed via Cabal), and have not had any issues. However, I have not run ghc-pkg register manually. So maybe this is fixed? (This was with 7.8) The only caveat I've discovered is that you cannot build a new version of GHC using a dynamic-only GHC installation (see #10374). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8414#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8414: ghc-pkg prevents dynamic library only packages -------------------------------------+------------------------------------- Reporter: AndreasVoellmy | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: ghc-pkg | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Other | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by gidyn): * cc: gidyn (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8414#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8414: ghc-pkg prevents dynamic library only packages -------------------------------------+------------------------------------- Reporter: AndreasVoellmy | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: ghc-pkg | Version: Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Other | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by rwbarton): * status: new => closed * resolution: => fixed Comment: I can reproduce this in 7.6 but not 7.8, and I know at least one other person has been using a dynamic-only installation of 7.8, so I'm going to assert that this is fixed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8414#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8414: ghc-pkg prevents dynamic library only packages -------------------------------------+------------------------------------- Reporter: AndreasVoellmy | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: ghc-pkg | Version: Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by devurandom): * cc: devurandom (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8414#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC