1 |
-----BEGIN PGP SIGNED MESSAGE-----
|
2 |
Hash: SHA1
|
3 |
|
4 |
Hi Jorge,
|
5 |
|
6 |
On Thu, 22 Jul 2010 18:04:59 +0000
|
7 |
"Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o> wrote:
|
8 |
> If you want to use sqlite3 as default and assuming your prefer |
9 |
> postgres over mysql, you can use the following and drop the die from |
10 |
> pkg_setup. |
11 |
> |
12 |
> DEPEND=" |
13 |
... snip ...
|
14 |
> !bacula-clientonly? ( |
15 |
> sqlite3? ( |
16 |
> app-backup/bacula[-mysql.-postgres] |
17 |
> dev-db/sqlite:3 |
18 |
> ) |
19 |
> !sqlite3? ( |
20 |
> postgres? ( |
21 |
> mysql? ( app-backup/bacula[-mysql] ) |
22 |
> dev-db/postgresql-base[threads] |
23 |
> ) |
24 |
> !postgres? ( |
25 |
> mysql? ( virtual/mysql ) |
26 |
> !mysql? ( app-backup/bacula[sqlite3] ) |
27 |
> ) |
28 |
> !bacula-nodir? ( virtual/mta ) |
29 |
> ) |
30 |
... snip ...
|
31 |
> " |
32 |
|
33 |
interesting. I did not know that an ebuild can use-depend on itself.
|
34 |
Good to know.
|
35 |
|
36 |
I had implemented a simpler solution in meantime. But I will test your
|
37 |
solution. It would shorten the ebuild by a good amount (It is already
|
38 |
much to big and complicated).
|
39 |
|
40 |
Furthermore it catches the problems very early (before merging the
|
41 |
wrong dependencies).
|
42 |
|
43 |
Only downside I see is that the user has to find out why she gets the
|
44 |
messages about the wrong USE flag requirements. Say, you want to build
|
45 |
it with mysql and have 'sqlite' in make.conf your
|
46 |
USE=mysql emerge bacula
|
47 |
resultes in a
|
48 |
emerge: there are no ebuilds built with USE flags to satisfy
|
49 |
"app-backup/bacula[-mysql,-postgres]".
|
50 |
And than you have to think.
|
51 |
|
52 |
Anyway I will think over it.
|
53 |
|
54 |
Regards,
|
55 |
Thomas.
|
56 |
-----BEGIN PGP SIGNATURE-----
|
57 |
Version: GnuPG v2.0.15 (GNU/Linux)
|
58 |
|
59 |
iEYEARECAAYFAkxJP2wACgkQQe4uqXYgU9XomwCfeFkb780NSjA0Q7eUCMDmGF0U
|
60 |
1kAAn2pJwIFXbBF0t6gN0eosBxv5c3f4
|
61 |
=jy0D
|
62 |
-----END PGP SIGNATURE----- |