Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

On ubuntu-22.04 install libncurses5 and libtinfo5 for ghc <= 8.2 #135

Closed
andreasabel opened this issue Dec 8, 2022 · 1 comment · Fixed by #136
Closed

On ubuntu-22.04 install libncurses5 and libtinfo5 for ghc <= 8.2 #135

andreasabel opened this issue Dec 8, 2022 · 1 comment · Fixed by #136
Assignees
Milestone

Comments

@andreasabel
Copy link
Member

libncurses5 and libtinfo5 are needed for GHC 8.2 (and below, I'd guess) on ubuntu-22.04. They could be installed by this action.

Lifted from:

@andreasabel
Copy link
Member Author

Workaround (until #136 gets released): Prior to haskell/actions/setup, do:

sudo apt install libncurses5 libtinfo5

andreasabel added a commit that referenced this issue Dec 14, 2022
Fixes #135.  
Adds a new package dependency `compare-versions` for robustly checking whether the GHC we seek to install is below 8.3.
Ideally, we would only try to install `libncurses5` and `libtinfo5` on `ubuntu-22.04`, but I didn't see a way to check whether we are exactly on this virtual environment, so we try it always under `Linux` for ghc < 8.3.  Seems like in the worst case, this fails and does nothing (fingers crossed).

Also in this commit: fixing the check whether `stack` is above a given minimum version: now also uses `compareVersions`.
9999years pushed a commit to 9999years/haskell-actions that referenced this issue Mar 27, 2024
Fixes haskell#135.  
Adds a new package dependency `compare-versions` for robustly checking whether the GHC we seek to install is below 8.3.
Ideally, we would only try to install `libncurses5` and `libtinfo5` on `ubuntu-22.04`, but I didn't see a way to check whether we are exactly on this virtual environment, so we try it always under `Linux` for ghc < 8.3.  Seems like in the worst case, this fails and does nothing (fingers crossed).

Also in this commit: fixing the check whether `stack` is above a given minimum version: now also uses `compareVersions`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant