ALT Linux Team development discussions
 help / color / mirror / Atom feed
WARNING: multiple messages have this Message-ID
From: "Valery V. Inozemtsev" <shrek@progroup.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Q: post/preun_service vs service/chkconfig
Date: Fri, 6 Feb 2004 12:15:57 +0300
Message-ID: <200402061215.58318.shrek@progroup.ru> (raw)
In-Reply-To: <20040206091157.GC765@basalt.office.altlinux.org>

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 1175 bytes --]

В сообщении от 6 Февраль 2004 12:11 Dmitry V. Levin написал(a):
> On Fri, Feb 06, 2004 at 06:16:07AM +0300, Alexey Tourbin wrote:
> > Нужно ли в пакетах, в которых используется конструкция
> > %post
> > %post_service %name
> > %preun
> > %preun_service %name
> >
> > проставлять зависимость
> > Requires(post,preun): service
> > ?
>
> Да, нужно.
>
> > Иными словами, умеет ли rpm искать зависимости в собственных /bin/sh
> > скриптах и выставлять эти зависимости с учетом pre/post...?
>
> Нет, пока ещё не умеет.

тогда я не догоняю откуда берется зависимость на service в пакетах в которых 
нет Requires: service

>
> Т.е. пакет, содержащий start/stop-скрипт, получит зависимость на service,
> но в этой зависимости не будет информации о post/preun; в 99% случаев это
> и не требуется, поскольку librpm умеет упорядочивать транзакции.
>
> > Аналогичный вопрос касается install/uninstall_info и некоторых других
> > макросов.
>
> Тут ситуация принципиально иная - %install_info/%uninstall_info
> изменились, и потому должны присутствовать в зависимостях явно:
>
> Requires(post): %install_info
> Requires(preun): %uninstall_info

-- 
Valery V. Inozemtsev	ftp://212.13.100.3/

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

From: "Valery V. Inozemtsev" <shrek@progroup.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Q: post/preun_service vs service/chkconfig
Date: Fri, 06 Feb 2004 09:16:09 -0000
Message-ID: <200402061215.58318.shrek@progroup.ru> (raw)
Message-ID: <20040206091609.bisMK0Rbw8RcgKsSaGEI8VBPKfsls_hlaOSFrs6pdYc@z> (raw)
In-Reply-To: <20040206091157.GC765@basalt.office.altlinux.org>

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 1175 bytes --]

В сообщении от 6 Февраль 2004 12:11 Dmitry V. Levin написал(a):
> On Fri, Feb 06, 2004 at 06:16:07AM +0300, Alexey Tourbin wrote:
> > Нужно ли в пакетах, в которых используется конструкция
> > %post
> > %post_service %name
> > %preun
> > %preun_service %name
> >
> > проставлять зависимость
> > Requires(post,preun): service
> > ?
>
> Да, нужно.
>
> > Иными словами, умеет ли rpm искать зависимости в собственных /bin/sh
> > скриптах и выставлять эти зависимости с учетом pre/post...?
>
> Нет, пока ещё не умеет.

тогда я не догоняю откуда берется зависимость на service в пакетах в которых 
нет Requires: service

>
> Т.е. пакет, содержащий start/stop-скрипт, получит зависимость на service,
> но в этой зависимости не будет информации о post/preun; в 99% случаев это
> и не требуется, поскольку librpm умеет упорядочивать транзакции.
>
> > Аналогичный вопрос касается install/uninstall_info и некоторых других
> > макросов.
>
> Тут ситуация принципиально иная - %install_info/%uninstall_info
> изменились, и потому должны присутствовать в зависимостях явно:
>
> Requires(post): %install_info
> Requires(preun): %uninstall_info

-- 
Valery V. Inozemtsev	ftp://212.13.100.3/

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

  parent reply	other threads:[~2004-02-06  9:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-06  3:16 Alexey Tourbin
2004-02-06  3:16 ` Alexey Tourbin
2004-02-06  5:42 ` Valery V. Inozemtsev
2004-02-06  5:42   ` Valery V. Inozemtsev
2004-02-06  9:11 ` Dmitry V. Levin
2004-02-06  9:12   ` Dmitry V. Levin
2004-02-06  9:15   ` Valery V. Inozemtsev [this message]
2004-02-06  9:16     ` Valery V. Inozemtsev
2004-02-06  9:21     ` Dmitry V. Levin
2004-02-06  9:21       ` Dmitry V. Levin
2004-02-06  9:27       ` Valery V. Inozemtsev
2004-02-06  9:27         ` Valery V. Inozemtsev
2004-02-06 10:23   ` [devel] " Alexey Tourbin
2004-02-06 10:23     ` Alexey Tourbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200402061215.58318.shrek@progroup.ru \
    --to=shrek@progroup.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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