1 |
If this must be done (and it seems like there is pressure to do so) I |
2 |
believe the best way is to expand the profile/global/conf language to |
3 |
support such choices. For example, if an app needs a mysql host and db |
4 |
that can have a 'default' value in the profile (ugh) or the make.global |
5 |
file, like MYSQL_HOST, MYSQL_DB. These would be defaults just like all |
6 |
other aspects of gentoo (like default CFLAGS, default USE vars, etc) and |
7 |
would be overridden by the user in make.conf. |
8 |
|
9 |
Ebuilds that use such variables could add a warning: |
10 |
|
11 |
*WARNING: Current MYSQL_HOST is localhost (default) |
12 |
*WARNING: Change this in make.conf if you need to |
13 |
|
14 |
then you get rid of the interactivity problem.. the only problem with |
15 |
this is a bloated make.global that has variables for probably every |
16 |
database type available, etc but it's still a more elegant way than |
17 |
asking for input when the ebuild is used. |
18 |
|
19 |
Joshua Brindle |
20 |
|
21 |
|
22 |
cbrewer@×××××××××××××.net wrote: |
23 |
|
24 |
> |
25 |
> |
26 |
> This is a rather simplistic approach but.. |
27 |
> Couldn't the interactive ebuilds be flagged in such a way that they would be |
28 |
> skipped on a world or system emerge, yet still be updated or emerged new via |
29 |
> an emerge -U <packagename> or emerge <packagename>? I suggest this because it |
30 |
> would let the bulk of your building get done without hangups, yet still |
31 |
> provide a way to emerge or update your interactives. Seems easier than trying |
32 |
> to build AI into portage,imho. |
33 |
|
34 |
|
35 |
-- |
36 |
gentoo-dev@g.o mailing list |