Opened 18 years ago
Closed 16 years ago
#134 closed enhancement (fixed)
Add "prefix" option to ctools configure command
Reported by: | anonymous | Owned by: | dfraser |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Recipe commands | Version: | 0.5.3 |
Keywords: | Cc: | ||
Operating System: |
Description
I've been using Bitten to build and maintain a set of co-dependent modules. Since some of the bitten-managed modules depend on other bitten-managed modules, I need to go all the way through and install so I can build subsequent modules. Of course, I don't want to do that in the default area (/usr). Instead, I added an extra parameter to the ctools configure method that provides an optional prefix.
I'm attaching a diff of my changes to this ticket. Any chance you could pull them in to the current development version?
Attachments (1)
Change History (5)
Changed 18 years ago by anonymous
comment:1 Changed 16 years ago by anonymous
please apply this patch to svn
comment:2 Changed 16 years ago by dfraser
- Owner changed from cmlenz to dfraser
- Status changed from new to assigned
I think it's fine to provide the prefix via a parameter, but I'm not sure everyone would want config['os'] automatically appended...
I'm planning to apply this without the ctxt.config['os'] - basically we should have a way to include variables like that in the recipe, so you can supply them to prefix that way.
comment:3 Changed 16 years ago by dfraser
prefix parameter added as described in r600
comment:4 Changed 16 years ago by dfraser
- Resolution set to fixed
- Status changed from assigned to closed
You should now be able to accomplish the setting you currently have with setting prefix=/usr/local/${os.family} or whatever other variable you want to interpolate - see Slave Configuration and Property Interpolation in BuildRecipes
Diff of additions to ctools.py