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

Allow to have filters for setenv #5787

Open
mseri opened this issue Jan 18, 2024 · 2 comments
Open

Allow to have filters for setenv #5787

mseri opened this issue Jan 18, 2024 · 2 comments

Comments

@mseri
Copy link
Member

mseri commented Jan 18, 2024

It is increasingly useful, especially for conf packages and packages linking against external libraries, to be able to set specific env variables (e.g. PKG_CONFIG_PATH but not just that) specific for the os and the distribution in order to compile successfully. Would it be possible to have the full set of filtes available also for setenv?

@mseri
Copy link
Member Author

mseri commented Jan 18, 2024

See as an example the use done here: ocaml/opam-repository#25076

@rjbou
Copy link
Collaborator

rjbou commented Jan 18, 2024

The mechanism itself can be added with an x- field (not recommended), but for the full feature, it needs a change in the opam file syntax, that can't be done before 3.0.

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

No branches or pull requests

2 participants