Skip to content
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

Suggest or install pkg-config #1039

Closed
Bodigrim opened this issue Apr 20, 2024 · 5 comments
Closed

Suggest or install pkg-config #1039

Bodigrim opened this issue Apr 20, 2024 · 5 comments

Comments

@Bodigrim
Copy link

Bodigrim commented Apr 20, 2024

Haskell package ecosystem works better and is more secure when pkg-config executable is available. Could ghcup

  • suggest to install pkg-config alongside other system packages on Unix,
  • install pkg-config in MSYS environment on Windows?

Or am I barking mad?

@hasufell
Copy link
Member

suggest to install pkg-config alongside other system packages on Unix,

We could. It's here https://github.com/haskell/ghcup-metadata/blob/1d55bd79dc338dfd3843d26b27dc9340b4b7f6c5/ghcup-0.0.8.yaml#L6

install pkg-config in MSYS environment on Windows?

I think we already do?

Exec "$Bash" '-lc' ('pacman --noconfirm -S --needed curl autoconf {0}' -f $PkgConf)

@Bodigrim
Copy link
Author

I think we already do?

Nice! Is Stack able to use this MSYS environment or does it insist on installing its own?

@hasufell
Copy link
Member

I think we already do?

Nice! Is Stack able to use this MSYS environment or does it insist on installing its own?

Through a combination of these config options:

  • skip-msys
  • extra-path
  • extra-include-dirs
  • extra-lib-dirs

It's a bit manual.

@hasufell
Copy link
Member

#1040

@hasufell
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants