Commit 23ae486
macros: prepare haskell macros for GHC 3.8 update
In newer [GHC 3.8.*](haskell/cabal#9326 (comment))
default directory for package DB storage has been changed to include "ABI tag".
So instead of `~/.cabal/store/ghc-9.8.4` it is now located at
`~/.cabal/store/ghc-9.8.4-inplace` (when built with our scripts) or may use
any other suffix (`ghcup` version of ghc for example has tag `-c895`.
This messes up `%cabal_configure` macro as we have to
pass package DB location explicitly with `--package-db`. However,
correct GHC id (including ABI tag) can be obtained with command
`ghc-pkg field ghc id`, which works both for current GHC 9.4.8 in repos
and for 9.8.4 as well.
For GHC 9.4.8:
```bash
$ ghc-pkg field ghc id
id: ghc-9.4.8
```
For GHC 9.8.4 (built with our scripts):
```bash
$ ghc-pkg field ghc id
id: ghc-9.8.4-inplace
```
(cherry picked from commit 46b9ac7)1 parent 6493c96 commit 23ae486
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
0 commit comments