Skip to content

cabal-install binaries do not work when built with -lukko #6657

Closed
@vmchale

Description

@vmchale

Describe the bug

cabal-install fails when built with -flukko

To Reproduce

First, build cabal-install with --constraint='cabal-install -lukko' --constraint='hackage-security -lukko'

Then:

cabal update
Downloading the latest package list from hackage.haskell.org
flock: invalid argument (Bad file descriptor)

All other subcommands fail too, viz.

cabal install sak -w ghc-8.8.3
Resolving dependencies...
Build profile: -w ghc-8.8.3 -O1
In order, the following will be built (use -v for more details):
 - sak-0.1.2.0 (exe:sak) (requires download & build)
Downloading  sak-0.1.2.0
cabal: Failed to download exe:sak from sak-0.1.2.0. The exception was:
flock: invalid argument (Bad file descriptor)

Expected behavior

Should do the same thing as cabal update which does use lukko.

System information

  • Linux
  • cabal-install 3.2, x86_64 and aarch64

Additional context

Since lukko fails to cross-compile (see haskellari/lukko#18), this means that cross-compiled cabal binaries do not work as of 3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions