[gentoo-dev] Depending on a range of slots

2015-11-02 Thread Michael Orlitzky
In the dev-lang/php ebuilds, we currently have: DEPEND="... berkdb? ( =sys-libs/db-4* ) ..." PHP will actually accept any 4.x or 5.x version of db; the ./configure flag is poorly-named: https://bugs.gentoo.org/show_bug.cgi?id=521222 Now, we also get repoman warnings for not specifying a

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread Kristian Fiskerstrand
On 11/02/2015 06:48 PM, Michael Orlitzky wrote: > In the dev-lang/php ebuilds, we currently have: > .. > > Is there a way to say "give me any 4.x or 5.x slot"? > Is that necessarily a good idea? Given that the database formats are not compatible between versions without cleaning out the BDB

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread Michał Górny
On Mon, 2 Nov 2015 14:33:57 -0500 Michael Orlitzky wrote: > On 11/02/2015 02:21 PM, Ciaran McCreesh wrote: > > On Mon, 2 Nov 2015 12:48:29 -0500 > > Michael Orlitzky wrote: > >> Is there a way to say "give me any 4.x or 5.x slot"? > > > > No. Slots are

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread Michael Orlitzky
On 11/02/2015 01:00 PM, Kristian Fiskerstrand wrote: > On 11/02/2015 06:48 PM, Michael Orlitzky wrote: >> In the dev-lang/php ebuilds, we currently have: >> >> Is there a way to say "give me any 4.x or 5.x slot"? >> > > Is that necessarily a good idea? Given that the database formats are > not

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread Ciaran McCreesh
On Mon, 2 Nov 2015 12:48:29 -0500 Michael Orlitzky wrote: > Is there a way to say "give me any 4.x or 5.x slot"? No. Slots are meaningless strings and do not support any comparison except equality. -- Ciaran McCreesh signature.asc Description: PGP signature

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread Michael Orlitzky
On 11/02/2015 02:21 PM, Ciaran McCreesh wrote: > On Mon, 2 Nov 2015 12:48:29 -0500 > Michael Orlitzky wrote: >> Is there a way to say "give me any 4.x or 5.x slot"? > > No. Slots are meaningless strings and do not support any comparison > except equality. > Followup question,

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread Ciaran McCreesh
On Mon, 2 Nov 2015 14:33:57 -0500 Michael Orlitzky wrote: > Followup question, which of these is less dumb? > > Option 1: berkdb? ( >=sys-libs/db-4:* Option 2: berkdb? ( || ( sys-libs/db:4.2 ... sys-libs/db:5.3 ) ) Best option goes leftmost in ||. -- Ciaran McCreesh

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread Michael Orlitzky
On 11/02/2015 02:48 PM, Ciaran McCreesh wrote: > On Mon, 2 Nov 2015 14:33:57 -0500 > Michael Orlitzky wrote: >> Followup question, which of these is less dumb? >> >> Option 1: berkdb? ( >=sys-libs/db-4:* > This doesn't mean what you think it means. A user who has db-3 and db-7

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread Ciaran McCreesh
On Mon, 2 Nov 2015 22:01:05 +0100 hasufell wrote: > That's an interesting pitfall. I am pretty sure we have this kind of > syntax a lot in the tree. Might make sense to document it. Would make more sense just to implement version ranges in full generality, since developers

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread hasufell
On 11/02/2015 09:51 PM, Michael Orlitzky wrote: > On 11/02/2015 02:48 PM, Ciaran McCreesh wrote: >> On Mon, 2 Nov 2015 14:33:57 -0500 >> Michael Orlitzky wrote: >>> Followup question, which of these is less dumb? >>> >>> Option 1: berkdb? ( >=sys-libs/db-4:* > >> This doesn't

Re: [gentoo-dev] Depending on a range of slots

2015-11-02 Thread Chí-Thanh Christopher Nguyễn
hasufell schrieb: Followup question, which of these is less dumb? Option 1: berkdb? ( >=sys-libs/db-4:* >> >>> This doesn't mean what you think it means. A user who has db-3 and db-7 >>> installed satisfies that dependency. >>> >> >> Indeed, thanks. >> > > That's an interesting