haskell / haskell/cabal

Cabal new-build fails to create proper binary symlink

Open
#6,024 4 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/install Cabal: stanza/custom-setup compiler: ghcjs type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Hi!
I'm using the newest Cabal (2.4.1.0). I'm compiling GHCJS and I'm evaluating the following command:
```bash
cabal new-install . --symlink-bindir="$HOME/.cabal/bin"
```
Everything compiles successfully and I've got information about successful creation of symlinks, however, they are incorrect. Namely, the links point this way:
```/home/wdanilo/.cabal/bin/ghcjs-boot```
->
```/home/wdanilo/.cabal/store/ghc-8.6.3/ghcjs-8.6.0.1-d9ee78562faccca853a9ec3e2136194f9bd5d3c94c4ef5725fcebd7edfda1f61/bin/ghcjs-boot```
->
```/home/wdanilo/.cabal/store/ghc-8.6.3/ghcjs-8.6.0.1-d9ee78562faccca853a9ec3e2136194f9bd5d3c94c4ef5725fcebd7edfda1f61/bin/ghcjs-boot-8.6.0.1-8.6.2```
->
```/home/wdanilo/.cabal/store/ghc-8.6.3/incoming/new-24223/home/wdanilo/.cabal/store/ghc-8.6.3/ghcjs-8.6.0.1-d9ee78562faccca853a9ec3e2136194f9bd5d3c94c4ef5725fcebd7edfda1f61/libexec/ghcjs-boot```

As you can see, the last path is incorrect. It contains `/home/wdanilo` inside and it resolves wrong.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.