From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] Re: Q: post/preun_service vs service/chkconfig
Date: Fri, 06 Feb 2004 10:23:38 -0000
Message-ID: <20040206102328.GL7324@solemn.turbinal.org> (raw)
Message-ID: <20040206102338._dkk3jkCGNtzuY-wKp1ZzzVrdkE_2ivLtGNVHysEU4o@z> (raw)
In-Reply-To: <20040206091157.GC765@basalt.office.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
On Fri, Feb 06, 2004 at 12:11:57PM +0300, Dmitry V. Levin wrote:
> > Нужно ли в пакетах, в которых используется конструкция
> > %post
> > %post_service %name
> > %preun
> > %preun_service %name
> >
> > проставлять зависимость
> > Requires(post,preun): service
> > ?
>
> Да, нужно.
>
> > Иными словами, умеет ли rpm искать зависимости в собственных /bin/sh
> > скриптах и выставлять эти зависимости с учетом pre/post...?
>
> Нет, пока ещё не умеет.
Теперь понятно, почему вместо
%post
%post_ldconfig
лучше писать
%post -p %post_ldconfig
:)
Точно так же можно писать
%post -p "%post_service %name"
и
%post -p "%install_info %name.info"
чтобы зависимости проставлялись автоматически.
Впрочем, ситуация противоречивая:
$ rpm --eval %install_info
/usr/sbin/install_info
$ rpm --eval %update_menus
[ -x /usr/bin/update-menus ] && /usr/bin/update-menus ||:
$
> Т.е. пакет, содержащий start/stop-скрипт, получит зависимость на service,
> но в этой зависимости не будет информации о post/preun; в 99% случаев это
> и не требуется, поскольку librpm умеет упорядочивать транзакции.
Можно чуть подробнее? Т.е. при установке происходит что-то вроде
сортировки requires зависимостей?
> > Аналогичный вопрос касается install/uninstall_info и некоторых других
> > макросов.
>
> Тут ситуация принципиально иная - %install_info/%uninstall_info
> изменились, и потому должны присутствовать в зависимостях явно:
>
> Requires(post): %install_info
> Requires(preun): %uninstall_info
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-02-06 10:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 3:16 [devel] " 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
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 ` Alexey Tourbin [this message]
2004-02-06 10:23 ` [devel] " 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=20040206102328.GL7324@solemn.turbinal.org \
--to=at@altlinux.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