Package Details: cabal-static

Git Clone URL: (read-only)
Package Base: cabal-static
Description: The command-line interface for Cabal and Hackage. Statically linked.
Upstream URL:
Licenses: custom:BSD3
Conflicts: cabal-install
Provides: cabal-install
Submitter: nshepperd
Maintainer: nshepperd
Last Packager: nshepperd
Votes: 4
Popularity: 0.001292
First Submitted: 2017-10-28 15:43
Last Updated: 2018-12-31 08:05

Required by (28)

Sources (1)

Latest Comments

watashi commented on 2018-09-24 14:36

I think we should use EXTRA_CONFIGURE_OPTS="" ./ --sandbox instead of ./ --sandbox to build cabal, there is no need to build profiling lib, this can save some building time.

nshepperd commented on 2018-04-09 21:54

This package should be marked conflicting with every haskell library package to avoid that problem... but conflicts only applies when installing. We really need "makeconflicts".

I'll see if I can at least check for such installations in build() and provide a useful error message.

@chawlindel: It shouldn't be installing anything globally as I used --sandbox flag to build. But if it is, that's a bug.

mbloms commented on 2018-04-09 21:22

@erictronic it's because you have haskell libraries installed from the community repos. There's only dynamic libs there, no static, but ghc can't understand the difference. The best solution is to build in a clean chroot. You could also remove everything related to haskell in pacman before building.

EDIT: You really should run this in chroot if you can. Otherwise it will install things globally while building. It would be really nice if there could be a better solution for this.

erictronic commented on 2018-04-09 18:34

Got an error during installation/compilation:

[ 12 of 216] Compiling Distribution.Compat.Parsing ( Distribution/Compat  /Parsing.hs, Distribution/Compat/Parsing.o )

Distribution/Compat/Parsing.hs:61:1: error:  
    Could not find module ‘Text.Parsec’  
    There are files missing in the ‘parsec-’ package,  
    try running 'ghc-pkg check'.  
    Use -v to see a list of the files searched for.  
61 | import qualified Text.Parsec as Parsec  
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  

Error during cabal-install bootstrap:  
Compiling the Setup script failed.  

larsrh commented on 2018-02-28 20:38

Yep, that appears to work now. Also requires 'ghc-static' as a dependency.

larsrh commented on 2018-02-28 20:27

I just checked, and it looks like the 'stack' package depends on 'haskell-stm'. It might be a good idea to mark all of cabal-install's dependencies as conflicting. (I'm trying to build this now with no other Haskell packages present.)

nshepperd commented on 2018-02-28 20:22

Hm. Do you have haskell-stm or other haskell libraries installed globally? They might interfere with the build and have to be removed.

larsrh commented on 2018-02-28 12:21

This fails to compile for me:

Distribution/Client/Compat/Semaphore.hs:10:1: error:
    Could not find module ‘Control.Concurrent.STM’
    There are files missing in the ‘stm-’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
10 | import Control.Concurrent.STM (TVar, atomically, newTVar, readTVar, retry,
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

Error during cabal-install bootstrap:
Building the cabal-install package failed.

I have ghc-static installed. Anything else that I need?