* [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
@ 2010-07-22 16:20 Thomas Beierlein
2010-07-22 18:04 ` Jorge Manuel B. S. Vicetto
0 siblings, 1 reply; 12+ messages in thread
From: Thomas Beierlein @ 2010-07-22 16:20 UTC (permalink / raw
To: gentoo-dev
Did not see the mail here and replied only with p.m. to darkside.
So please find here teh attached copy to keep the discussion on the
right list.
Thomas.
Begin forwarded message:
Date: Thu, 22 Jul 2010 18:07:40 +0200
From: Thomas Beierlein <tomjbe@gentoo.org>
To: Jeremy Olexa <darkside@gentoo.org>
Subject: Re: [gentoo-commits] gentoo-x86 commit in app-backup/bacula:
bacula-5.0.2-r2.ebuild ChangeLog
On Thu, 22 Jul 2010 10:57:32 -0500
Jeremy Olexa <darkside@gentoo.org> wrote:
> On Thu, 22 Jul 2010 15:48:51 +0000 (UTC), "Thomas Beierlein (tomjbe)"
> <tomjbe@gentoo.org> wrote:
> > <snip>
> > elif [[ "${dbnum}" -gt 1 ]]; then
> > eerror
> > eerror "You have set ${P} to use multiple
> > database types." eerror "I don't know which to set as the default!"
> > eerror "You can
> > use /etc/portage/package.use to set per-package USE flags" eerror
> > "Set it so only one database type, mysql, postgres, sqlite3" eerror
> > die "Multiple database types selected."
>
> Hello Thomas,
> I've just noticed this code snippet. Please don't die here, instead
> pick a default if there are conflicting choices in USE.
>
> For reference, please see "Conflicting USE Flags" section on this
> page,
> http://devmanual.gentoo.org/general-concepts/use-flags/index.html
>
> Thanks,
> Jeremy
Hi Jeremy,
thanks for pointing it out.
That is old heritage from former maintainer. I tried to fix the ebuild
step by step and that was atm not on my 'urgent' list :).
So maybe as sqlite3 use flag is default now. I should also default to
that database here.
Regards,
Thomas.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-22 16:20 [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog Thomas Beierlein
@ 2010-07-22 18:04 ` Jorge Manuel B. S. Vicetto
2010-07-23 7:06 ` Thomas Beierlein
0 siblings, 1 reply; 12+ messages in thread
From: Jorge Manuel B. S. Vicetto @ 2010-07-22 18:04 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Thomas
On 22-07-2010 16:20, Thomas Beierlein wrote:
> Did not see the mail here and replied only with p.m. to darkside.
>
> So please find here teh attached copy to keep the discussion on the
> right list.
>
> Thomas.
>
> Begin forwarded message:
>
> Date: Thu, 22 Jul 2010 18:07:40 +0200
> From: Thomas Beierlein <tomjbe@gentoo.org>
> To: Jeremy Olexa <darkside@gentoo.org>
> Subject: Re: [gentoo-commits] gentoo-x86 commit in app-backup/bacula:
> bacula-5.0.2-r2.ebuild ChangeLog
>
>
> On Thu, 22 Jul 2010 10:57:32 -0500
> Jeremy Olexa <darkside@gentoo.org> wrote:
>
>> On Thu, 22 Jul 2010 15:48:51 +0000 (UTC), "Thomas Beierlein (tomjbe)"
>> <tomjbe@gentoo.org> wrote:
>>> <snip>
>>> elif [[ "${dbnum}" -gt 1 ]]; then
>>> eerror
>>> eerror "You have set ${P} to use multiple
>>> database types." eerror "I don't know which to set as the default!"
>>> eerror "You can
>>> use /etc/portage/package.use to set per-package USE flags" eerror
>>> "Set it so only one database type, mysql, postgres, sqlite3" eerror
>>> die "Multiple database types selected."
>>
>> Hello Thomas,
>> I've just noticed this code snippet. Please don't die here, instead
>> pick a default if there are conflicting choices in USE.
>>
>> For reference, please see "Conflicting USE Flags" section on this
>> page,
>> http://devmanual.gentoo.org/general-concepts/use-flags/index.html
>>
>> Thanks,
>> Jeremy
>
> Hi Jeremy,
>
> thanks for pointing it out.
>
> That is old heritage from former maintainer. I tried to fix the ebuild
> step by step and that was atm not on my 'urgent' list :).
>
> So maybe as sqlite3 use flag is default now. I should also default to
> that database here.
>
> Regards,
> Thomas.
If you want to use sqlite3 as default and assuming your prefer postgres
over mysql, you can use the following and drop the die from pkg_setup.
DEPEND="
dev-libs/gmp
sys-libs/ncurses
>=sys-libs/zlib-1.1.4
!bacula-clientonly? (
sqlite3? (
app-backup/bacula[-mysql.-postgres]
dev-db/sqlite:3
)
!sqlite3? (
postgres? (
mysql? ( app-backup/bacula[-mysql] )
dev-db/postgresql-base[threads]
)
!postgres? (
mysql? ( virtual/mysql )
!mysql? ( app-backup/bacula[sqlite3] )
)
!bacula-nodir? ( virtual/mta )
)
logwatch? ( sys-apps/logwatch )
python? ( dev-lang/python[threads] )
qt4? (
x11-libs/qt-svg:4
>=x11-libs/qwt-5
)
readline? ( >=sys-libs/readline-4.1 )
ssl? ( dev-libs/openssl )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
"
- --
Regards,
Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / Devrel / KDE / Elections
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJMSIhLAAoJEC8ZTXQF1qEPrJkP/1UxpBirLBwfK67MS6o1ydgy
LnrW17cz1kSSOAyrLAKG3Ef0gOLUSTKDvcaSDWg/J/eyQR9zTE88jO8bZggUmZNp
idZpdBHu8KTtcKG+VJ4Y9xqNF1kBJ+qIU3SaY8bmclKo9xL0Obro24daxHD6TzdH
aqcoU+CcK64kV2xOGefOFkW6z5SrsqabDIDut19/g3kNK2vt/9R6U6ZaFPFbxNFn
ZakHsLCkb8klAmxQPOdH82UXMZ6AJTBBOoaKSbhlNaUqE1bKns8Y2oemoSTQfPrA
KFf26pKjLKALvnDuFWLC/k/mBPBtzTiDDY96ux4jJuKGfJM9UcbhqKLt1M6LnpSG
WF4S+DK9RaHGpFCIVI5vwb+G+ZTl4CFWDCz/rJMCO+n7wuTMuytG7UdumaYMdND1
9G6LcHCos+49q1NkpJ+6PO0p2OTmSqNGAx8j92wK1sOaBGJ8GKv6kei+QH0VfWU+
kGTUq3F0kelPtK0YE06U6xIPTaBZcJH5NJOxaWJ0C3uLru1rtw2aOQvauLezAPWZ
WfeDPz09IuPxRSLRrqgwwUnFGZoJr4e9ALNftwxFvoaVKqYRE/7YgsCsztcmZ0h9
QMahFvYidDK+nDJ8bPVwXNqK6/m/ND+j42fGNA0vHu/wakSrBzzLzotALFRxtMYB
rpkyNyJC7DtpzqWnEycX
=46dt
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-22 18:04 ` Jorge Manuel B. S. Vicetto
@ 2010-07-23 7:06 ` Thomas Beierlein
2010-07-23 8:38 ` Tomáš Chvátal
2010-07-23 9:31 ` Tiziano Müller
0 siblings, 2 replies; 12+ messages in thread
From: Thomas Beierlein @ 2010-07-23 7:06 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Jorge,
On Thu, 22 Jul 2010 18:04:59 +0000
"Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org> wrote:
> If you want to use sqlite3 as default and assuming your prefer
> postgres over mysql, you can use the following and drop the die from
> pkg_setup.
>
> DEPEND="
... snip ...
> !bacula-clientonly? (
> sqlite3? (
> app-backup/bacula[-mysql.-postgres]
> dev-db/sqlite:3
> )
> !sqlite3? (
> postgres? (
> mysql? ( app-backup/bacula[-mysql] )
> dev-db/postgresql-base[threads]
> )
> !postgres? (
> mysql? ( virtual/mysql )
> !mysql? ( app-backup/bacula[sqlite3] )
> )
> !bacula-nodir? ( virtual/mta )
> )
... snip ...
> "
interesting. I did not know that an ebuild can use-depend on itself.
Good to know.
I had implemented a simpler solution in meantime. But I will test your
solution. It would shorten the ebuild by a good amount (It is already
much to big and complicated).
Furthermore it catches the problems very early (before merging the
wrong dependencies).
Only downside I see is that the user has to find out why she gets the
messages about the wrong USE flag requirements. Say, you want to build
it with mysql and have 'sqlite' in make.conf your
USE=mysql emerge bacula
resultes in a
emerge: there are no ebuilds built with USE flags to satisfy
"app-backup/bacula[-mysql,-postgres]".
And than you have to think.
Anyway I will think over it.
Regards,
Thomas.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
iEYEARECAAYFAkxJP2wACgkQQe4uqXYgU9XomwCfeFkb780NSjA0Q7eUCMDmGF0U
1kAAn2pJwIFXbBF0t6gN0eosBxv5c3f4
=jy0D
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-23 7:06 ` Thomas Beierlein
@ 2010-07-23 8:38 ` Tomáš Chvátal
2010-07-23 12:10 ` Thomas Beierlein
2010-07-23 9:31 ` Tiziano Müller
1 sibling, 1 reply; 12+ messages in thread
From: Tomáš Chvátal @ 2010-07-23 8:38 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dne 23.7.2010 09:06, Thomas Beierlein napsal(a):
> Hi Jorge,
> interesting. I did not know that an ebuild can use-depend on itself.
> Good to know.
>
> I had implemented a simpler solution in meantime. But I will test your
> solution. It would shorten the ebuild by a good amount (It is already
> much to big and complicated).
>
> Furthermore it catches the problems very early (before merging the
> wrong dependencies).
>
> Only downside I see is that the user has to find out why she gets the
> messages about the wrong USE flag requirements. Say, you want to build
> it with mysql and have 'sqlite' in make.conf your
> USE=mysql emerge bacula
> resultes in a
> emerge: there are no ebuilds built with USE flags to satisfy
> "app-backup/bacula[-mysql,-postgres]".
> And than you have to think.
>
> Anyway I will think over it.
>
> Regards,
> Thomas.
So I will help with my 2c :P
I reworked the bacula for the purposes at my company:
http://git.overlays.gentoo.org/gitweb/?p=dev/scarabeus.git;a=blob;f=app-backup/bacula/bacula-3.0.3.ebuild
I implemented most things people complain here, so might be really
really smart to just copy the parts.
Cheers
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxJVR8ACgkQHB6c3gNBRYfDmACfXGtiijVHHMZKDSvuXpHjpAe9
gloAoMw/lTI6TvW+rt4+eXYakcaRu2Dw
=AaHp
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-23 7:06 ` Thomas Beierlein
2010-07-23 8:38 ` Tomáš Chvátal
@ 2010-07-23 9:31 ` Tiziano Müller
2010-07-23 11:30 ` Thomas Beierlein
2010-07-23 12:28 ` Jorge Manuel B. S. Vicetto
1 sibling, 2 replies; 12+ messages in thread
From: Tiziano Müller @ 2010-07-23 9:31 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1592 bytes --]
Am Freitag, den 23.07.2010, 09:06 +0200 schrieb Thomas Beierlein:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Jorge,
>
> On Thu, 22 Jul 2010 18:04:59 +0000
> "Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org> wrote:
> > If you want to use sqlite3 as default and assuming your prefer
> > postgres over mysql, you can use the following and drop the die from
> > pkg_setup.
> >
> > DEPEND="
> ... snip ...
> > !bacula-clientonly? (
> > sqlite3? (
> > app-backup/bacula[-mysql.-postgres]
> > dev-db/sqlite:3
> > )
> > !sqlite3? (
> > postgres? (
> > mysql? ( app-backup/bacula[-mysql] )
> > dev-db/postgresql-base[threads]
> > )
> > !postgres? (
> > mysql? ( virtual/mysql )
> > !mysql? ( app-backup/bacula[sqlite3] )
> > )
> > !bacula-nodir? ( virtual/mta )
> > )
> ... snip ...
> > "
>
> interesting. I did not know that an ebuild can use-depend on itself.
> Good to know.
No, not good. It doesn't make any sense.
We will have a solution for such cases somewhere in the future, but at
the moment you should just display a warning that even though the user
specified more than one db only is going to be used.
Cheers,
Tiziano
--
Tiziano Müller
Gentoo Linux Developer
Areas of responsibility:
Samba, PostgreSQL, CPP, Python, sysadmin, GLEP Editor
E-Mail : dev-zero@gentoo.org
GnuPG FP : F327 283A E769 2E36 18D5 4DE2 1B05 6A63 AE9C 1E30
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3551 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-23 9:31 ` Tiziano Müller
@ 2010-07-23 11:30 ` Thomas Beierlein
2010-07-23 11:37 ` Ciaran McCreesh
2010-07-23 12:28 ` Jorge Manuel B. S. Vicetto
1 sibling, 1 reply; 12+ messages in thread
From: Thomas Beierlein @ 2010-07-23 11:30 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 23 Jul 2010 11:31:30 +0200
Tiziano Müller <dev-zero@gentoo.org> wrote:
> Am Freitag, den 23.07.2010, 09:06 +0200 schrieb Thomas Beierlein:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi Jorge,
> >
> > On Thu, 22 Jul 2010 18:04:59 +0000
> > "Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org> wrote:
> > > If you want to use sqlite3 as default and assuming your prefer
> > > postgres over mysql, you can use the following and drop the die
> > > from pkg_setup.
> > >
> > > DEPEND="
> > ... snip ...
> > > !bacula-clientonly? (
> > > sqlite3? (
> > > app-backup/bacula[-mysql.-postgres]
> > > dev-db/sqlite:3
> > > )
> > > !sqlite3? (
> > > postgres? (
> > > mysql? ( app-backup/bacula[-mysql] )
> > > dev-db/postgresql-base[threads]
> > > )
> > > !postgres? (
> > > mysql? ( virtual/mysql )
> > > !mysql? ( app-backup/bacula[sqlite3] )
> > > )
> > > !bacula-nodir? ( virtual/mta )
> > > )
> > ... snip ...
> > > "
> >
> > interesting. I did not know that an ebuild can use-depend on itself.
> > Good to know.
> No, not good. It doesn't make any sense.
Can you give some reasoning for that?
> We will have a solution for such cases somewhere in the future, but at
> the moment you should just display a warning that even though the user
> specified more than one db only is going to be used.
>
That is what I am doing at the moment. If 0 or more than one backends
are selected I fall back to sqlite3 as default and give an according
warning message.
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
iEYEARECAAYFAkxJfUkACgkQQe4uqXYgU9WW7QCbBYthd11EnPrtVJf4RXTqUMVT
q9UAoJ//DyXGQmlFLmU4EM3knn6wv98W
=CsP/
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-23 11:30 ` Thomas Beierlein
@ 2010-07-23 11:37 ` Ciaran McCreesh
2010-07-23 12:30 ` Jorge Manuel B. S. Vicetto
0 siblings, 1 reply; 12+ messages in thread
From: Ciaran McCreesh @ 2010-07-23 11:37 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 23 Jul 2010 13:30:02 +0200
Thomas Beierlein <tomjbe@gentoo.org> wrote:
> > > interesting. I did not know that an ebuild can use-depend on
> > > itself. Good to know.
> >
> > No, not good. It doesn't make any sense.
>
> Can you give some reasoning for that?
It's entirely unclear what deps upon self actually mean. Some people
use them to say that a package needs to be installed before it can
install itself. Thus, things like:
DEPEND="|| ( myself myself-bin )"
So a dependency upon myself[foo] would probably mean "I need
myself[foo] to be installed before I can install myself", not "I need
the foo flag to be set on myself".
In any case, abusing DEPEND isn't a mechanism for implementing use
requirements. You should use the mechanism that's designed for use
requirements to do use requirements, which means waiting for EAPI 4
and pkg_pretend, or just follow existing policy and pick one in the
case of a conflict.
- --
Ciaran McCreesh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
iEYEARECAAYFAkxJfxcACgkQ96zL6DUtXhGXkQCcDzxMWkqm+ShdOEBOWH0nQJtE
q0gAn0TRU7BtLVyKib6YJLNWtjjWoNFk
=uYQb
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-23 8:38 ` Tomáš Chvátal
@ 2010-07-23 12:10 ` Thomas Beierlein
0 siblings, 0 replies; 12+ messages in thread
From: Thomas Beierlein @ 2010-07-23 12:10 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 23 Jul 2010 10:38:56 +0200
Tomáš Chvátal <scarabeus@gentoo.org> wrote:
> So I will help with my 2c :P
> I reworked the bacula for the purposes at my company:
> http://git.overlays.gentoo.org/gitweb/?p=dev/scarabeus.git;a=blob;f=app-backup/bacula/bacula-3.0.3.ebuild
>
> I implemented most things people complain here, so might be really
> really smart to just copy the parts.
>
> Cheers
>
> Tom
Thanks for the link Tomáš. I am sure I will do some cherry
pickings :).
I agree with you that we need a better set of use flags, as you did in
your in-house solution. The actual set is quite a pain.
Let us see how we can switch to such a new set (like yours or similar).
I was thinking about an accompanying news item, but not before the next
release of a new bacula version. That gives some time for preparation
and a chance for thorough tests.
I am still not sure why some of the old features gets dropped starting
with bacula-5.0.1. I asked the former maintainer, but got no
response at all. So any ideas are welcome.
Thomas.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
iEYEARECAAYFAkxJhqoACgkQQe4uqXYgU9WdMwCgq20FoE1FqjlPaMYF7QmXEmHX
BKoAnRH5QAzkvIzln6Mylj4Xyh8nLJp9
=5aGB
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-23 9:31 ` Tiziano Müller
2010-07-23 11:30 ` Thomas Beierlein
@ 2010-07-23 12:28 ` Jorge Manuel B. S. Vicetto
2010-07-23 12:43 ` Ciaran McCreesh
1 sibling, 1 reply; 12+ messages in thread
From: Jorge Manuel B. S. Vicetto @ 2010-07-23 12:28 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 23-07-2010 09:31, Tiziano Müller wrote:
> Am Freitag, den 23.07.2010, 09:06 +0200 schrieb Thomas Beierlein:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi Jorge,
>>
>> On Thu, 22 Jul 2010 18:04:59 +0000
>> "Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org> wrote:
>>> If you want to use sqlite3 as default and assuming your prefer
>>> postgres over mysql, you can use the following and drop the die from
>>> pkg_setup.
>>>
>>> DEPEND="
>> ... snip ...
>>> !bacula-clientonly? (
>>> sqlite3? (
>>> app-backup/bacula[-mysql.-postgres]
>>> dev-db/sqlite:3
>>> )
>>> !sqlite3? (
>>> postgres? (
>>> mysql? ( app-backup/bacula[-mysql] )
>>> dev-db/postgresql-base[threads]
>>> )
>>> !postgres? (
>>> mysql? ( virtual/mysql )
>>> !mysql? ( app-backup/bacula[sqlite3] )
>>> )
>>> !bacula-nodir? ( virtual/mta )
>>> )
>> ... snip ...
>>> "
>>
>> interesting. I did not know that an ebuild can use-depend on itself.
>> Good to know.
> No, not good. It doesn't make any sense.
You may not like it, but saying it doesn't make sense is wrong. It does
make sense and ensures what Tom was trying to get and is already being
used in the tree.
> We will have a solution for such cases somewhere in the future, but at
> the moment you should just display a warning that even though the user
> specified more than one db only is going to be used.
Nothing prevents us from using the above, which already produces the
same output as basic use dependencies, so users should be getting used
to it by now. It would be great if PMs could produce more detailed
warnings to the user, but that can wait (may have to wait?) for the new
solutions.
> Cheers,
> Tiziano
>
- --
Regards,
Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / Devrel / KDE / Elections
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJMSYrlAAoJEC8ZTXQF1qEPW7oP/0Ct9gGS3xeFjkX1EI2PwkL6
uu9ZMQOnKIrfeWkmN3XCtTB/CHoBKLQlnspiOh47O3Rm+dsOcaWg+sjTp+4UJqO9
ldTjEltcEbAk7PdpVceg4c3vvXJBsVyVWCYY2tXCQA7MQMamLZ12GxaqfB9un+hl
BuqUwqdvLaZ3EFkOyZR4UfSGd4sRPGaTQjHGtk0/P8LJXOy9RjfMPCYTfyKuSuHG
B0OU5y+GPcjEQtfkIDCQpUoKH/K3IhIwlkNGd9+nmS+x1ny9GZ0XSr4YiR+lVpLq
TU2iHW75HFJa6g0f4HGE01gwRfYy7QX9EZsjenrEiN6dkvI2BOIB92VWXj9Y5Ppa
ZBQey9MfQ7m26V4fJtlzM+PP25uJkIJLHBTPlrE44xuCWxMwKXjtGcFGrAkn1Uof
xJC94OhzGglcGxBcj8oKNRsdLPcPSajctbZgnxyLMUYpQhpQ2tAg7/loH1MUdbOE
rj943cw4kucHSz/AOBMZVV1nOdqnSvuO7WnbTxjynxe4wDzI+66bg7pEtFfqXaO+
rMPGhp6kUl29j7SIQnGzNcZCOZ4Dm/MXW4BQygFYkVZUsz+AFkCR3AZocrkMMpD2
dXJfn9QHsVaN8t8crYGLI6ya9M+bXYb5yh9O2QEmmJrIHbSweHGeb/nwAs+BtMJH
Gig3dsa7gH19pNYRBoKP
=zddJ
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-23 11:37 ` Ciaran McCreesh
@ 2010-07-23 12:30 ` Jorge Manuel B. S. Vicetto
2010-07-23 12:39 ` Ciaran McCreesh
0 siblings, 1 reply; 12+ messages in thread
From: Jorge Manuel B. S. Vicetto @ 2010-07-23 12:30 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 23-07-2010 11:37, Ciaran McCreesh wrote:
> On Fri, 23 Jul 2010 13:30:02 +0200
> Thomas Beierlein <tomjbe@gentoo.org> wrote:
>>>> interesting. I did not know that an ebuild can use-depend on
>>>> itself. Good to know.
>>>
>>> No, not good. It doesn't make any sense.
>
>> Can you give some reasoning for that?
>
> It's entirely unclear what deps upon self actually mean. Some people
> use them to say that a package needs to be installed before it can
> install itself. Thus, things like:
>
> DEPEND="|| ( myself myself-bin )"
>
> So a dependency upon myself[foo] would probably mean "I need
> myself[foo] to be installed before I can install myself", not "I need
> the foo flag to be set on myself".
In this case the dependencies are clear. They're not pretty, but they're
clear.
> In any case, abusing DEPEND isn't a mechanism for implementing use
> requirements. You should use the mechanism that's designed for use
> requirements to do use requirements, which means waiting for EAPI 4
> and pkg_pretend, or just follow existing policy and pick one in the
> case of a conflict.
Abusing depend is a good way to do this, until we get better tools. I
have to agree with Brian's proposal and say that in this particular
case, the best solution is required_use and not pkg_pretend.
- --
Regards,
Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / Devrel / KDE / Elections
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJMSYtrAAoJEC8ZTXQF1qEPERoQAL6mZOy0q7SnJO1+7ykRCvSa
sUTsb1sKwSi9XMAGeKGdwMZ6+8y9sbaidqlAyCcp+EOFRlUP2eXb+fZVgHCWSjRn
VXEVBz3sYf/9VY8S2JF56MifJcysv9QePrf9dtm0VtbsD/lAlTBBVW2xM4AUJITB
kZLaDTTWBh3KaK57EYkeT0cSzhB2wkmFo5uBvoTl3Gjefsdvx9pQwA3/W9BJl7YY
XnxdXjSzVKw0t382dyoOvyNhRjnYN6eMnHKhLwUt1k7p1AmQLDIZso02IF1GpzwZ
YVwMMogvBkAbJvFnwl+Vc/nQIsydYeYoQi5KDxVbQn3Dgmn7+i3yjfkGpCv2nHLQ
QOBOlzxdx5cGxS1cQFM0//ugR16WWisfHn7d9X9kPlwvE516x14Pqig//cATh/Jk
mbuvICHeUnxDzBnrWH4Z5QjRQhwtA/3dlK7M0k78PFgVjzChS+2o9w8jNNdjhp1+
oFj650hLrG3tpATZwLdKJViRo75Em+Mi+18z4BbwAhoL5VdeDPOxPYT8JemnLD2i
2f5hGvPcnAHJmlMkT00PpTR5BZZ4o6Kw69pqA0gYSP2pvDOtmqXVlEeJlhYpv57j
bAgPXiG0DVlNkfPf9g+wVzcbFUYob7xGAG0IlDHU7S4IfIX+JzlfsFsskashH8of
K7zcCISFebd/uD59cRPB
=6TgE
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-23 12:30 ` Jorge Manuel B. S. Vicetto
@ 2010-07-23 12:39 ` Ciaran McCreesh
0 siblings, 0 replies; 12+ messages in thread
From: Ciaran McCreesh @ 2010-07-23 12:39 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 23 Jul 2010 12:30:35 +0000
"Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org> wrote:
> > In any case, abusing DEPEND isn't a mechanism for implementing use
> > requirements. You should use the mechanism that's designed for use
> > requirements to do use requirements, which means waiting for EAPI 4
> > and pkg_pretend, or just follow existing policy and pick one in the
> > case of a conflict.
>
> Abusing depend is a good way to do this, until we get better tools.
No, it's not, because it doesn't work. Assuming self deps are legal in
the || ( myself myself-bin ) case, they can't do what you want for use
requirements. myself[foo] would be met when building with USE=-foo so
long as myself[foo] was installed originally, and it wouldn't be met
unless myself were already installed.
> I have to agree with Brian's proposal and say that in this particular
> case, the best solution is required_use and not pkg_pretend.
required_use may theoretically allow a package manager to do cycle
breaking if all the relevant packages are updated to export information
about which flags are and are not safe to toggle, but since no-one's
proposed exporting that information or has even worked out exactly what
the requirements would be for that to happen, and since pkg_pretend is
required anyway for other things, just going with pkg_pretend for now
is the sensible solution.
Of course, this is all irrelevant since at the current rate of progress
Portage is two years off any of this being available for developers
anyway...
- --
Ciaran McCreesh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
iEYEARECAAYFAkxJjWoACgkQ96zL6DUtXhEpzQCfWxZS/6t+U+5n/ASlR4cUbC07
ofkAoMTbjrwE3d19xaapxcB58eEJn3qX
=F3XH
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog
2010-07-23 12:28 ` Jorge Manuel B. S. Vicetto
@ 2010-07-23 12:43 ` Ciaran McCreesh
0 siblings, 0 replies; 12+ messages in thread
From: Ciaran McCreesh @ 2010-07-23 12:43 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 23 Jul 2010 12:28:21 +0000
"Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org> wrote:
> Nothing prevents us from using the above, which already produces the
> same output as basic use dependencies, so users should be getting used
> to it by now. It would be great if PMs could produce more detailed
> warnings to the user, but that can wait (may have to wait?) for the
> new solutions.
If it does, it's a bug in Portage.
If you've got foo[bar] installed, and the user tries to install
foo[-bar], and foo[bar] DEPENDs upon foo[bar], that has to be allowed as
a generalisation of handling || ( foo foo-bin ).
Conversely, if foo isn't installed at all, then foo[bar] as a dependency
must not be met even if the user is installing foo[bar].
Dependencies on self must match the previously installed package, not
the thing being installed at the time.
- --
Ciaran McCreesh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
iEYEARECAAYFAkxJjn4ACgkQ96zL6DUtXhG4UgCfQ09rlDbVEAAFDYHr4mQQJzjb
ke4AoIPCUwAOl38RHW6aUcAhwihxjEid
=4Wrl
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-07-23 12:43 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22 16:20 [gentoo-dev] Fw: [gentoo-commits] gentoo-x86 commit in app-backup/bacula: bacula-5.0.2-r2.ebuild ChangeLog Thomas Beierlein
2010-07-22 18:04 ` Jorge Manuel B. S. Vicetto
2010-07-23 7:06 ` Thomas Beierlein
2010-07-23 8:38 ` Tomáš Chvátal
2010-07-23 12:10 ` Thomas Beierlein
2010-07-23 9:31 ` Tiziano Müller
2010-07-23 11:30 ` Thomas Beierlein
2010-07-23 11:37 ` Ciaran McCreesh
2010-07-23 12:30 ` Jorge Manuel B. S. Vicetto
2010-07-23 12:39 ` Ciaran McCreesh
2010-07-23 12:28 ` Jorge Manuel B. S. Vicetto
2010-07-23 12:43 ` Ciaran McCreesh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox