So the first command makes sense, and at least right now we parse
conflicts like we do depends- we allow version specifiers. However, I
found the oddity with REPLACES when doing some archweb work tonight.
Should we be allowing this? Should it be restricted to '=' only like
provides? I'm not sure, so please chime in.
On this note, it would probably be good to make sure we have all the
proper definitions nailed down in the manpage, as well as sanity
checks in makepkg:
depends: name[(=|<|<=|>=|>)version]
makedepends: name[(=|<|<=|>=|>)version] (same as depends)
checkdepends: name[(=|<|<=|>=|>)version] (same as depends)
optdepends: name[(=|<|<=|>=|>)version][: description] (this one is a bit tricky)
conflicts: name[(=|<|<=|>=|>)version] (same as depends)
provides: name[=version]
replaces: name (???)
dmcgee@galway ~/projects/archweb (master)
$ zcat /tmp/updaterepos/i686/*.db.tar.gz | grep -A 1 -a REPLACES |
grep -a '[=><]' | sort | uniq
haskell-array<0.3.0.1
02-17-2011, 10:00 AM
Allan McRae
Version specs in replaces
On 17/02/11 10:42, Dan McGee wrote:
So the first command makes sense, and at least right now we parse
conflicts like we do depends- we allow version specifiers. However, I
found the oddity with REPLACES when doing some archweb work tonight.
Should we be allowing this? Should it be restricted to '=' only like
provides? I'm not sure, so please chime in.
I am struggling to think of any case where it would be appropriate to
have a version in a replaces entry.
Allan
02-17-2011, 10:26 AM
Daenyth Blank
Version specs in replaces
On Thu, Feb 17, 2011 at 06:00, Allan McRae <allan@archlinux.org> wrote:
> On 17/02/11 10:42, Dan McGee wrote:
>>
>> So the first command makes sense, and at least right now we parse
>> conflicts like we do depends- we allow version specifiers. However, I
>> found the oddity with REPLACES when doing some archweb work tonight.
>> Should we be allowing this? Should it be restricted to '=' only like
>> provides? I'm not sure, so please chime in.
>
> I am struggling to think of any case where it would be appropriate to have a
> version in a replaces entry.
>
> Allan
>
>
I ran into this the other day. An example would be python-yaml in
community. Currently it's for python 2. I'm going to switch it so that
there's a python2-yaml package and python-yaml would be python3. It
would make sense for python2-yaml to
REPLACES=("python-yaml<$py3k_version")
02-18-2011, 07:08 PM
Dan McGee
Version specs in replaces
On Thursday, February 17, 2011, Daenyth Blank <daenyth+arch@gmail.com> wrote:
> On Thu, Feb 17, 2011 at 06:00, Allan McRae <allan@archlinux.org> wrote:
>> On 17/02/11 10:42, Dan McGee wrote:
>>>
>>> So the first command makes sense, and at least right now we parse
>>> conflicts like we do depends- we allow version specifiers. However, I
>>> found the oddity with REPLACES when doing some archweb work tonight.
>>> Should we be allowing this? Should it be restricted to '=' only like
>>> provides? I'm not sure, so please chime in.
>>
>> I am struggling to think of any case where it would be appropriate to have a
>> version in a replaces entry.
>>
>> Allan
>>
>>
> I ran into this the other day. An example would be python-yaml in
> community. Currently it's for python 2. I'm going to switch it so that
> there's a python2-yaml package and python-yaml would be python3. It
> would make sense for python2-yaml to
> REPLACES=("python-yaml<$py3k_version")
Any other input from anyone before Allan and I lock the definition
down, and then make the code work appropriately?
-Dan
02-18-2011, 11:44 PM
Xavier Chantry
Version specs in replaces
On Fri, Feb 18, 2011 at 9:08 PM, Dan McGee <dpmcgee@gmail.com> wrote:
> On Thursday, February 17, 2011, Daenyth Blank <daenyth+arch@gmail.com> wrote:
>> On Thu, Feb 17, 2011 at 06:00, Allan McRae <allan@archlinux.org> wrote:
>>> On 17/02/11 10:42, Dan McGee wrote:
>>>>
>>>> So the first command makes sense, and at least right now we parse
>>>> conflicts like we do depends- we allow version specifiers. However, I
>>>> found the oddity with REPLACES when doing some archweb work tonight.
>>>> Should we be allowing this? Should it be restricted to '=' only like
>>>> provides? I'm not sure, so please chime in.
>>>
>>> I am struggling to think of any case where it would be appropriate to have a
>>> version in a replaces entry.
>>>
>>> Allan
>>>
>>>
>> I ran into this the other day. An example would be python-yaml in
>> community. Currently it's for python 2. I'm going to switch it so that
>> there's a python2-yaml package and python-yaml would be python3. It
>> would make sense for python2-yaml to
>> REPLACES=("python-yaml<$py3k_version")
>
> Any other input from anyone before Allan and I lock the definition
> down, and then make the code work appropriately?
>
Versioned replace sounds good to me, and Daenyth provided an example.