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

[std] Standardize on a common set of post-build steps #136

Open
kylewlacy opened this issue Oct 19, 2024 · 1 comment
Open

[std] Standardize on a common set of post-build steps #136

kylewlacy opened this issue Oct 19, 2024 · 1 comment

Comments

@kylewlacy
Copy link
Member

For packages in brioche-packages, most builds need to do some "post-build" processing: things like setting env vars when used as a dependency using std.setEnv(), setting an entrypoint with std.withRunnableLink(), etc. The exact set of things that need to be done are different for every package of course, but we should provide clear instructions on what post-build steps packages should use.

This is a very high-level issue that can take many forms:

  • Writing docs to cover which utilities packages should use and when
  • Adding utilities to wrap the "common" options under one name (e.g. a function like std.package() that has a bunch of options to apply the most common utilities)
  • Figuring out new Brioche features that could automatically handle some of the utilities automatically (e.g. a "post-build" event handler, which could wrap the output of a build with another recipe to automatically set env vars like $LIBRARY_PATH, $PKG_CONFIG_PATH, etc)
@kylewlacy
Copy link
Member Author

This is probably related to #135. On the same note, we should also look at fixing libtool files as well in this step: see #151 for an example where our existing libtool files caused trouble

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

1 participant