Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
FreeBSD ports and packages are installed by default to /usr/local, but the prefix can be configured and/or specified at installation time.
After installation, pkg_info -p returns the prefix that was used when installing that package.
There should be a mechanism for retrieving that information and using it in recipes, e.g. for creating symlinks.
Activity
- All
- Comments
- History
- Activity
- Transitions Summary
Maybe we can transform this request into a general feature request to support make options and/or the environment when ports are used.
[I don't see a real reason why anyone would like to change {{PREFIX}} on FreeBSD. Maybe Andrea Campi can comment with a use case.]
Generally, it would be nice if options or env would be passed to the make command when a port is build.
For example env is explicitly nil'd which I think make sense in some ways because it resets the environment and doesn't give you unexpected behavior, on the other hand, it's common to use the environment on FreeBSD when you install ports.
The workaround/quickfix is to add all options into a make.conf file and install it using the cookbook_file resource prior package.