commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.95k stars 842 forks source link

`HsOpenSSL` `Custom` build output advises use of `cabal.project` #6578

Closed andreasabel closed 1 month ago

andreasabel commented 1 month ago

Seen at https://github.com/hackage-trustees/hackage-cli/actions/runs/9066793674/job/24910501337#step:7:1459

HsOpenSSL                        > Error: setup: Can't find OpenSSL library.
HsOpenSSL                        > Install it via 'brew install openssl' or 'port install openssl'.
HsOpenSSL                        > 
HsOpenSSL                        > If you already have OpenSSL installed, specify the location
HsOpenSSL                        > of the installed library in cabal.project:
HsOpenSSL                        > 
HsOpenSSL                        > package HsOpenSSL
HsOpenSSL                        > extra-include-dirs: ...
HsOpenSSL                        > extra-lib-dirs: ...
HsOpenSSL                        > 
HsOpenSSL                        > or use
HsOpenSSL                        > 
HsOpenSSL                        > cabal configure --extra-include-dirs=... --extra-lib-dirs=...

I suspect these helpful messages are coming from the HsOpenSSL custom setup, but they make a laughing stock out of stack...
Let me find out...

Caused by the fix of https://github.com/haskell-cryptography/HsOpenSSL/issues/75:

mpilgrem commented 1 month ago

@andreasabel, noted. As this is unrelated to Stack's own code, and you have opened an issue in the relevant package's repository, I will close this issue.