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
Support for /etc/portage/package.env #67
Comments
http://wiki.gentoo.org/wiki//etc/portage/env indicates that file format would be bash environment variables, correct? Could you provide an example of how you would expect to use a |
Yes, files in /etc/portage/env are just bash environment variables. I typically only put one variable per file, but by no means is that a requirement, as the wiki shows in the first example. Files in /etc/portage/package.env/ then look exactly like those in /etc/portage/package.use, except instead of USE flags, they contain references to the files in /etc/portage/env. I would thus expect there to be two definitions in Puppet manifests, one to define the file in /etc/portage/env and one to define the file in /etc/portage/package.env. Here's an example of how I would envision it (given my current limited knowledge of the Puppet language and Ruby in general):
This would create the following files:
I could probably implement this using the |
|
what is the difference between putting |
I tried implementing what op suggested with |
not another define please, native types and providers only. If you want to implement that, name it |
It's pretty common for packages to need specific environment variables at install time (i.e. to set MAKEOPTS, disable DistCC, or use safer CFLAGS). It would be great to see this module with the ability to modify /etc/portage/env files as well as /etc/portage/package.env like the other package.* directories.
The text was updated successfully, but these errors were encountered: