New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not use pkg-config to locate zlib on FreeBSD #13
Conversation
FreeBSD has zlib in its base system, so it is guaranteed to be present. At the same time it doesn't provide a .pc file, so Cabal fails to fullfill the `pkgconfig-depends: zlib` dependency.
Thanks @arrowd ! |
May I also ask you to make a new Hackage release ASAP? |
Sure, no worries. Here's the release: https://hackage.haskell.org/package/digest-0.0.1.7 |
Fantastic, thanks for the quick resolution! |
Disclaimer: I'm not very familiar with Stack and Cabal, I'm just trying to compile a Haskell project. Is it possible that the same problem described above for FreeBSD is present on Ubuntu? I was trying to build
After checking and finding that
So I went to an older commit of the project I'm trying to compile, which uses |
It should work fine on Ubuntu. Make sure you have
|
Searching for the error message turned up this similar sounding issue, so making sure that I have the Another story for Why didn't Stack complain about Even better, why doesn't Stack install a snapshot of I guess both of those are questions to developers of Stack, though. Or maybe developers of Nix, I can't tell :-/ P.S. After some poking at |
0.0.1.7 — 5th March 2023 * Don't use 'pkg-config' to locate zlib on FreeBSD (Thanks to @arrowd): TeofilC/digest#13 0.0.1.6 — 5th March 2023 * Introduce 'pkg-config' cabal flag (Thanks to @jonathanlking): TeofilC/digest#11
FreeBSD has zlib in its base system, so it is guaranteed to be present. At the same time it doesn't provide a .pc file, so Cabal fails to fullfill the
pkgconfig-depends: zlib
dependency.