Mailinglist Archive: opensuse-packaging (86 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Obsoletes < vs Obsoletes <=
- From: Vincent Untz <vuntz@xxxxxxxxxxxx>
- Date: Mon, 10 Oct 2011 12:48:59 +0200
- Message-id: <20111010104859.GC32466@vuntz.net>
Hi,
(forgot to reply to this...)
Le mardi 20 septembre 2011, à 21:37 +0200, Christian Boltz a écrit :
It really depends, there are two cases here:
a) package got renamed: %{version} is fine
b) upstream got renamed: then a fixed version might be better
Case b should not be strict, imho, as I can see cases where the the
upstream name simply got adapted a bit, but it's really the same team,
working on the same project. For instance, if foo2 got renamed to foo,
then using %{version} is fine, imho.
Cheers,
Vincent
--
Les gens heureux ne sont pas pressés.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
(forgot to reply to this...)
Le mardi 20 septembre 2011, à 21:37 +0200, Christian Boltz a écrit :
Hello,
on Montag, 19. September 2011, Vincent Untz wrote:
Le dimanche 18 septembre 2011, à 20:07 +0200, Jan Engelhardt a écrit :
obsoletes/provides relation:
Obsoletes: foo < %version
Provides: foo = %version
Sascha mentioned this case in his talk about packaging best
practices.
The recommendation is the following:
- if there's a version update at the same time, use <
- if there's no version update, use <=, and add a comment specifying
for which version this was done, so people know when it's safe to
go to <.
So far, so good, but: does it really make sense to use %version for the
obsoletes? IMHO a hardcoded version would make more sense...
It really depends, there are two cases here:
a) package got renamed: %{version} is fine
b) upstream got renamed: then a fixed version might be better
Case b should not be strict, imho, as I can see cases where the the
upstream name simply got adapted a bit, but it's really the same team,
working on the same project. For instance, if foo2 got renamed to foo,
then using %{version} is fine, imho.
Cheers,
Vincent
--
Les gens heureux ne sont pas pressés.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
| < Previous | Next > |