1 |
Hi List, |
2 |
|
3 |
We use catalyst to build our server install images for our serverpark, |
4 |
we do so on a couple of servers and a couple of development laptops. |
5 |
Sadly these are not all set up equally. Which makes editting and |
6 |
developing specfiles a pain at times. |
7 |
|
8 |
We would like to be able to specify the following in specfiles: |
9 |
|
10 |
portage_confdir: portage/webserver |
11 |
|
12 |
This would enable us to keep our specfiles in svn and check them out on |
13 |
every host neccesary, as long as it has a valid catalyst.conf file |
14 |
building stages should "Just Work (TM)". Currently it doesn't because |
15 |
some of the vars in the specfiles need to be in absolute form to work. |
16 |
|
17 |
I would like to suggest the following solution: |
18 |
|
19 |
Introduction of a new variable in catalyst.conf: |
20 |
relative_basepath="somepath" |
21 |
|
22 |
Introduction of new code in catalyst to do the following: |
23 |
detect usage of a relative path in the specfile vars (aka does it start |
24 |
with a /) and add relative_base in front of the relative path. |
25 |
If relative_base is not defined, default to / ( or maybe to catalyst.conf/share_dir ?) |
26 |
|
27 |
This would affect the following vars in the specfiles: |
28 |
portage_confdir, portage_overlay, pkgcache_path, kerncache_path, |
29 |
fsscript, linuxrc (?), motd, root_overlay, xinitrc, kernel/<label>/config |
30 |
We're mainly using stage4 specfiles, I had a quick look through the |
31 |
other examples in catalyst but couldn't find any other likely |
32 |
candidates, but if I'm missing any please let me know. |
33 |
|
34 |
To be clear, I'm willing to do all the work to get this implemented, I |
35 |
already hacked up our current catalyst-2.0.1 install to do just this. |
36 |
It is however rather hackish and i would like to get this in the main |
37 |
tree. The patch would be against current svn. |
38 |
|
39 |
I'm curious about a number of things: |
40 |
|
41 |
* Would this functionality be useful for more people on the list ? |
42 |
* Would this patch ever stand a chance of getting integrated ? |
43 |
|
44 |
Apart from that I'd appreciate any comments, caveats, critisism etc. |
45 |
|
46 |
Grtz Ramon |
47 |
|
48 |
-- |
49 |
gentoo-catalyst@g.o mailing list |