Gentoo Archives: gentoo-dev

From: Thomas Beierlein <tomjbe@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
Date: Fri, 23 Jul 2010 11:30:54
Message-Id: 20100723133002.7912f158@test
In Reply to: Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog by "Tiziano Müller"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Fri, 23 Jul 2010 11:31:30 +0200
5 Tiziano Müller <dev-zero@g.o> wrote:
6
7 > Am Freitag, den 23.07.2010, 09:06 +0200 schrieb Thomas Beierlein:
8 > > -----BEGIN PGP SIGNED MESSAGE-----
9 > > Hash: SHA1
10 > >
11 > > Hi Jorge,
12 > >
13 > > On Thu, 22 Jul 2010 18:04:59 +0000
14 > > "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o> wrote:
15 > > > If you want to use sqlite3 as default and assuming your prefer
16 > > > postgres over mysql, you can use the following and drop the die
17 > > > from pkg_setup.
18 > > >
19 > > > DEPEND="
20 > > ... snip ...
21 > > > !bacula-clientonly? (
22 > > > sqlite3? (
23 > > > app-backup/bacula[-mysql.-postgres]
24 > > > dev-db/sqlite:3
25 > > > )
26 > > > !sqlite3? (
27 > > > postgres? (
28 > > > mysql? ( app-backup/bacula[-mysql] )
29 > > > dev-db/postgresql-base[threads]
30 > > > )
31 > > > !postgres? (
32 > > > mysql? ( virtual/mysql )
33 > > > !mysql? ( app-backup/bacula[sqlite3] )
34 > > > )
35 > > > !bacula-nodir? ( virtual/mta )
36 > > > )
37 > > ... snip ...
38 > > > "
39 > >
40 > > interesting. I did not know that an ebuild can use-depend on itself.
41 > > Good to know.
42 > No, not good. It doesn't make any sense.
43
44 Can you give some reasoning for that?
45
46 > We will have a solution for such cases somewhere in the future, but at
47 > the moment you should just display a warning that even though the user
48 > specified more than one db only is going to be used.
49 >
50 That is what I am doing at the moment. If 0 or more than one backends
51 are selected I fall back to sqlite3 as default and give an according
52 warning message.
53
54 Thomas
55
56
57 -----BEGIN PGP SIGNATURE-----
58 Version: GnuPG v2.0.15 (GNU/Linux)
59
60 iEYEARECAAYFAkxJfUkACgkQQe4uqXYgU9WW7QCbBYthd11EnPrtVJf4RXTqUMVT
61 q9UAoJ//DyXGQmlFLmU4EM3knn6wv98W
62 =CsP/
63 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>