haskell / haskell/cabal

Cabal should respect PKG_CONFIG

Open
#8,526 7 comments 2 reactions 0 assignees View on GitHub
Cabal: other re: pkg-config type: discussion
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
Cabal should probably respect the `PKG_CONFIG` environment variable, rather than hard-coding the name "pkg-config", as done in, e.g., [Distribution.Simple.Program.Builtin](https://github.com/haskell/cabal/blob/00a2351789a460700a2567eb5ecc42cca0af913f/Cabal/src/Distribution/Simple/Program/Builtin.hs#L345-L348). For instance, `mingw` packages are moving to use [pkgconf](https://packages.msys2.org/base/mingw-w64-pkgconf), which leads to trouble with Cabal, as `pkg-config` and `pkgconf` cannot both be installed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.