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

clarifying semantics of pkg-config field in .cabal files #4242

Closed
cartazio opened this issue Jan 17, 2017 · 4 comments · Fixed by #5693
Closed

clarifying semantics of pkg-config field in .cabal files #4242

cartazio opened this issue Jan 17, 2017 · 4 comments · Fixed by #5693
Assignees

Comments

@cartazio
Copy link
Contributor

@dcoutts @ezyang @hvr et al,
what are the desired semantics for the
pkgconfig: libtls >= bound ...
stanzas in foo.cabal package descriptions.

it looks like i, the end user for a package, need to do an
export PKG_CONFIG_PATH=/usr/local/opt/libressl/lib/pkgconfig
stanza in my terminal to get things to work out ok. Is there any way to hint to pkg-config what paths to look at per platform or must it always be totally user setup? (the current error messages look quite confusing when the stars aren't aligned)

an example might be JustinTulloss/zeromq.node#283 (comment) for another ecosystem. likewise https://groups.google.com/forum/#!topic/haskell-stack/E6zGmRnT3Ls

or perhaps i'm just not understanding what i should be doing :)

@hvr
Copy link
Member

hvr commented Jan 18, 2017

IMO, pkg-config is a system-tool and your environment is responsible to set its configuration up in a way that calling pkg-config --list-all shows everything registered w/ pkg-config. The point of pkg-config is so that you don't have to know where stuff is installed, cause pkg-config keeps that information for you. If you need a specific PKG_CONFIG_PATH then either your system installation of pkg-config is broken or you have manually installed & setup pkg-config and you need to take care yourself in e.g. your ~/.profile to set the PKG_CONFIG_PATH env-var.

@cartazio
Copy link
Contributor Author

cartazio commented Jan 18, 2017 via email

@cartazio
Copy link
Contributor Author

cartazio commented Jan 18, 2017 via email

@ezyang
Copy link
Contributor

ezyang commented Jan 18, 2017

@carter, @hvr, is there a simple documentation patch the two of you could put together which would clarify this behavior, in the Cabal manual? Thanks!

@linearray linearray self-assigned this Nov 17, 2018
linearray added a commit to linearray/cabal that referenced this issue Nov 17, 2018
Fix a typo

Clarify pkg-config (closes haskell#4242)

Clarify cabal-version (closes haskell#2571)

Minor tweak to description of extra-bundled-libraries.
@andreasabel andreasabel added re: pkg-config Concerning pkg-config and pkgconfig-depends constraints and removed re: pkg-config Concerning pkg-config and pkgconfig-depends constraints labels May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants