FS#77312 - xmonad should depend on haskell-setlocale

Attached to Project: Community Packages
Opened by Daniel Estévez (destevez) - Sunday, 29 January 2023, 12:01 GMT
Last edited by Toolybird (Toolybird) - Monday, 30 January 2023, 04:13 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After updating my system, I found that the xmonad package was broken.

Running `import XMonad` in ghci would give
```
ghci> import XMonad

<no location info>: error:
Could not load module ‘XMonad’
It is a member of the package ‘xmonad-0.17.1-AYliKoHPJrfEE2a09z7Nv’
which is unusable due to missing dependencies:
setlocale-1.0.0.10-74RvlEaOUOOC5hdLE0ThDH
```

I fixed this by installing haskell-setlocale manually.

Package versions:
xmonad 0.17.1-77
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 30 January 2023, 04:13 GMT
Reason for closing:  None
Additional comments about closing:  Please see  FS#77326 
Comment by Doug Patti (dpatti) - Sunday, 29 January 2023, 18:48 GMT
This also happened to me, but I don't think the dependency was the issue. xmonad has a dependency on haskell-setlocale and has for a while now. After `xmonad --compile` failed, I ran `ghc-pkg check` and there were a lot of packages that were reported as missing, so something happened with the registration hooks in pacman that caused it to get into a bad state. Instead of re-installing that package, I manually re-ran the registration scripts in /usr/share/haskell/register/*.sh to get it into a good state again. I might dig around a bit more and see if there's a bug with the ghc hooks.
Comment by Daniel Estévez (destevez) - Sunday, 29 January 2023, 18:59 GMT
Then I guess that I had haskell-setlocale already installed and didn't realize, and by re-installing it the problem was fixed. This can be closed, as well as  FS#77311 , which has probably the same cause.
Comment by Doug Patti (dpatti) - Sunday, 29 January 2023, 22:59 GMT
Root cause in  FS#77326 . If you run into this again, you can use `ghc-pkg recache`.

Loading...