ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Obsoletes without version considered harmful
  @ 2007-11-23 10:46 ` Alexey Tourbin
  2007-11-23 10:51   ` Sergey V Turchin
  2007-11-23 19:35   ` Vladimir Zhukov
  0 siblings, 2 replies; 11+ messages in thread
From: Alexey Tourbin @ 2007-11-23 10:46 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]

On Fri, Nov 23, 2007 at 01:36:24PM +0300, Vladimir Zhukov wrote:
> Changes statistics since `0.1-alt1-24-g3d639cb' follows:
>  .gear-rules                                        |    2 +-
>  ...-desktop.spec => docs-install-desktop_lite.spec |    6 +++---
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> Changelog since `0.1-alt1-24-g3d639cb' follows:
> commit 259d2e6da9c1c84b4ca21fc9faaa613f7a8f0ec3
> Author: Vladimir Zhukov <bertis@altlinux>
> Date:   Fri Nov 23 13:34:28 2007 +0300
> 
>     package renamed: docs-install-desktop -> docs-install-desktop_lite
>     - .gear-rules: s/install-desktop/install-desktop_lite
>     - renamed: docs-install-desktop.spec -> docs-install-desktop_lite.spec
>     - docs-install-desktop_lite.spec:
>       + s/install-desktop/install-desktop_lite
>       + added Provides and Obsoletes needed for package renaming
[...]

> -Provides: docs-install0-desktop = 4.0-alt1, docs-install2-desktop = 0.2-alt1
> -Obsoletes: docs-install0-desktop, docs-install2-desktop
> +Provides: docs-install0-desktop = 4.0-alt1, docs-install2-desktop = 0.2-alt1, docs-install-desktop = 0.1-alt1
> +Obsoletes: docs-install0-desktop, docs-install2-desktop, docs-install-desktop

Господа, не пишите Obsoletes без версий.
Обычно в случае переименования пакетов лучше всего писать так:
Provides: foo = %version
Obsoletes: foo <= %version

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 10:46 ` [devel] Obsoletes without version considered harmful Alexey Tourbin
@ 2007-11-23 10:51   ` Sergey V Turchin
  2007-11-23 10:55     ` Sergey V Turchin
  2007-11-23 19:35   ` Vladimir Zhukov
  1 sibling, 1 reply; 11+ messages in thread
From: Sergey V Turchin @ 2007-11-23 10:51 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

On 23 ноября 2007, Alexey Tourbin wrote:

[...]
> Обычно в случае переименования пакетов лучше всего писать так:
> Provides: foo = %version
> Obsoletes: foo <= %version
Даже лучше
Provides: foo = %version-%release
Obsoletes: foo <= %version-%release

-- 
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 10:51   ` Sergey V Turchin
@ 2007-11-23 10:55     ` Sergey V Turchin
  2007-11-23 11:11       ` Alexey I. Froloff
  2007-11-23 12:04       ` Alexey Tourbin
  0 siblings, 2 replies; 11+ messages in thread
From: Sergey V Turchin @ 2007-11-23 10:55 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 518 bytes --]

On 23 ноября 2007, Sergey V Turchin wrote:
> On 23 ноября 2007, Alexey Tourbin wrote:
>
> [...]
>
> > Обычно в случае переименования пакетов лучше всего писать так:
> > Provides: foo = %version
> > Obsoletes: foo <= %version
>
> Даже лучше
> Provides: foo = %version-%release
> Obsoletes: foo <= %version-%release
Ой, не так
Provides: foo = %version-%release
Obsoletes: foo < %version-%release

-- 
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 10:55     ` Sergey V Turchin
@ 2007-11-23 11:11       ` Alexey I. Froloff
  2007-11-23 11:51         ` Sergey V Turchin
  2007-11-23 12:03         ` Alexey Tourbin
  2007-11-23 12:04       ` Alexey Tourbin
  1 sibling, 2 replies; 11+ messages in thread
From: Alexey I. Froloff @ 2007-11-23 11:11 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

* Sergey V Turchin <zerg@> [071123 14:04]:
> Obsoletes: foo < %version-%release
А не надо ли тут (только в Obsoletes) раскрыть макросы?

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 11:11       ` Alexey I. Froloff
@ 2007-11-23 11:51         ` Sergey V Turchin
  2007-11-23 12:00           ` Alexey I. Froloff
  2007-11-23 12:03         ` Alexey Tourbin
  1 sibling, 1 reply; 11+ messages in thread
From: Sergey V Turchin @ 2007-11-23 11:51 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 453 bytes --]

On 23 ноября 2007, Alexey I. Froloff wrote:
> * Sergey V Turchin <zerg@> [071123 14:04]:
> > Obsoletes: foo < %version-%release
> А не надо ли тут (только в Obsoletes) раскрыть макросы?
Нет. В собранном пакете они ж раскрыты будут.
Для переименования пакета туда-сюда-обратно достаточно релиз 
увеличивать в каждой новой сборке.

-- 
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 11:51         ` Sergey V Turchin
@ 2007-11-23 12:00           ` Alexey I. Froloff
  2007-11-23 12:09             ` Sergey V Turchin
  0 siblings, 1 reply; 11+ messages in thread
From: Alexey I. Froloff @ 2007-11-23 12:00 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

* Sergey V Turchin <zerg@> [071123 14:54]:
> > > Obsoletes: foo < %version-%release
> > А не надо ли тут (только в Obsoletes) раскрыть макросы?
> Нет. В собранном пакете они ж раскрыты будут.
> Для переименования пакета туда-сюда-обратно достаточно релиз 
> увеличивать в каждой новой сборке.
Я в том сысле, чтобы не обсолетить предыдущую версию себя самого.

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 11:11       ` Alexey I. Froloff
  2007-11-23 11:51         ` Sergey V Turchin
@ 2007-11-23 12:03         ` Alexey Tourbin
  1 sibling, 0 replies; 11+ messages in thread
From: Alexey Tourbin @ 2007-11-23 12:03 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

On Fri, Nov 23, 2007 at 02:11:28PM +0300, Alexey I. Froloff wrote:
> * Sergey V Turchin <zerg@> [071123 14:04]:
> > Obsoletes: foo < %version-%release
> А не надо ли тут (только в Obsoletes) раскрыть макросы?

Нет наверное.

Смысл в том что нужно сохранить возможность обратного переименования
пакета, начиная со "следующей версии".  Never say never again или как
там люди из цивилизации говорят.

Иначе при обратном переименовании пакета, если оба они лежат
в репозитарии, апт при каждом дист-апгрейде будет "ходить по кругу"
и предлагать заменять один пакет на другой.

То есть при первом дист-апгредей апт будет считать свои долгом заменить
foo1 на foo2, а при следующем -- foo2 на foo1, и т.д.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 10:55     ` Sergey V Turchin
  2007-11-23 11:11       ` Alexey I. Froloff
@ 2007-11-23 12:04       ` Alexey Tourbin
  1 sibling, 0 replies; 11+ messages in thread
From: Alexey Tourbin @ 2007-11-23 12:04 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

On Fri, Nov 23, 2007 at 01:55:39PM +0300, Sergey V Turchin wrote:
> On 23 ноября 2007, Sergey V Turchin wrote:
> > On 23 ноября 2007, Alexey Tourbin wrote:
> >
> > [...]
> >
> > > Обычно в случае переименования пакетов лучше всего писать так:
> > > Provides: foo = %version
> > > Obsoletes: foo <= %version
> >
> > Даже лучше
> > Provides: foo = %version-%release
> > Obsoletes: foo <= %version-%release
> Ой, не так
> Provides: foo = %version-%release
> Obsoletes: foo < %version-%release

Трудно сказать, следует ли привязывать переименование пакета к релизу
при сохранении версии.  Наверное лучше переименовывать пакет только
при изменении версии.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 12:00           ` Alexey I. Froloff
@ 2007-11-23 12:09             ` Sergey V Turchin
  0 siblings, 0 replies; 11+ messages in thread
From: Sergey V Turchin @ 2007-11-23 12:09 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

On 23 ноября 2007, Alexey I. Froloff wrote:

[...]

> Я в том сысле, чтобы не обсолетить предыдущую версию себя самого.
"foo" тоже менять нужно на старое имя

-- 
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 10:46 ` [devel] Obsoletes without version considered harmful Alexey Tourbin
  2007-11-23 10:51   ` Sergey V Turchin
@ 2007-11-23 19:35   ` Vladimir Zhukov
  2007-11-23 21:10     ` Alexey Tourbin
  1 sibling, 1 reply; 11+ messages in thread
From: Vladimir Zhukov @ 2007-11-23 19:35 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Alexey Tourbin пишет:
> On Fri, Nov 23, 2007 at 01:36:24PM +0300, Vladimir Zhukov wrote:
>   
>> Changes statistics since `0.1-alt1-24-g3d639cb' follows:
>>  .gear-rules                                        |    2 +-
>>  ...-desktop.spec => docs-install-desktop_lite.spec |    6 +++---
>>  2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> Changelog since `0.1-alt1-24-g3d639cb' follows:
>> commit 259d2e6da9c1c84b4ca21fc9faaa613f7a8f0ec3
>> Author: Vladimir Zhukov <bertis@altlinux>
>> Date:   Fri Nov 23 13:34:28 2007 +0300
>>
>>     package renamed: docs-install-desktop -> docs-install-desktop_lite
>>     - .gear-rules: s/install-desktop/install-desktop_lite
>>     - renamed: docs-install-desktop.spec -> docs-install-desktop_lite.spec
>>     - docs-install-desktop_lite.spec:
>>       + s/install-desktop/install-desktop_lite
>>       + added Provides and Obsoletes needed for package renaming
>>     
> [...]
>
>   
>> -Provides: docs-install0-desktop = 4.0-alt1, docs-install2-desktop = 0.2-alt1
>> -Obsoletes: docs-install0-desktop, docs-install2-desktop
>> +Provides: docs-install0-desktop = 4.0-alt1, docs-install2-desktop = 0.2-alt1, docs-install-desktop = 0.1-alt1
>> +Obsoletes: docs-install0-desktop, docs-install2-desktop, docs-install-desktop
>>     
>
> Господа, не пишите Obsoletes без версий.
> Обычно в случае переименования пакетов лучше всего писать так:
> Provides: foo = %version
> Obsoletes: foo <= %version
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel
Спасибо, буду знать. Как оказалось, в данном случае ни Provides, ни 
Obsoletes были вообще не нужны.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Obsoletes without version considered harmful
  2007-11-23 19:35   ` Vladimir Zhukov
@ 2007-11-23 21:10     ` Alexey Tourbin
  0 siblings, 0 replies; 11+ messages in thread
From: Alexey Tourbin @ 2007-11-23 21:10 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 605 bytes --]

> > Господа, не пишите Obsoletes без версий.
> > Обычно в случае переименования пакетов лучше всего писать так:
> > Provides: foo = %version
> > Obsoletes: foo <= %version

> Спасибо, буду знать. Как оказалось, в данном случае ни Provides, ни 
> Obsoletes были вообще не нужны.

Как правило, Provides и Obsoletes требуется в случае переименования
пакета.  Как минимум это необходимо для того, чтобы разрулить конфликт
по файлам при установке нового пакета.

Если конфликта по файлам между старым и новым пакетами нету, то, как
правило, не следует использовать Provides или Obsoletes вообще.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-11-23 21:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-23 10:46 ` [devel] Obsoletes without version considered harmful Alexey Tourbin
2007-11-23 10:51   ` Sergey V Turchin
2007-11-23 10:55     ` Sergey V Turchin
2007-11-23 11:11       ` Alexey I. Froloff
2007-11-23 11:51         ` Sergey V Turchin
2007-11-23 12:00           ` Alexey I. Froloff
2007-11-23 12:09             ` Sergey V Turchin
2007-11-23 12:03         ` Alexey Tourbin
2007-11-23 12:04       ` Alexey Tourbin
2007-11-23 19:35   ` Vladimir Zhukov
2007-11-23 21:10     ` Alexey Tourbin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git