haskell / haskell/cabal

cabal-install-x.y.* should require Cabal-x.y.* for Custom-type builds

Open
#2,342 9 comments 0 reactions 0 assignees View on GitHub
cabal-install: other old-milestone: cabal-install 2.0 type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Something changed between 1.20.0.3 and 1.22.0.0, causing the Idris custom [`Setup.hs`](https://github.com/idris-lang/Idris-dev/blob/master/Setup.hs) to include invalid values.

In the `dist/build/autogen/Paths_idris.hs` obtained with 1.22.0.0, both `libdir` and `datadir` are wrong:

```
libdir = "/app/lib/$abi/idriskey"
datadir = "/app/share/$abi/idris-0.9.15.1"
```

Expected values, obtained with 1.20.0.3:

```
libdir = "/app/lib/x86_64-linux-ghc-7.8.4/idris-0.9.15.1"
datadir = "/app/share/x86_64-linux-ghc-7.8.4/idris-0.9.15.1"
```

See also https://github.com/idris-lang/Idris-dev/issues/1836.

Contributor guide

Open the contributing guide

Research direction

Start with the Idris Setup.hs linked in the report and compare the generated dist/build/autogen/Paths_idris.hs values produced by Cabal 1.20.0.3 and 1.22.0.0. Trace how Custom-type builds derive libdir and datadir, using issue 1836 for context. Done means the generated paths use the expected architecture-specific values rather than literal $abi placeholders.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.