From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Devel discussion list <devel@altlinux.ru> Subject: Re: [devel] Q: post/preun_service vs service/chkconfig Date: Fri, 06 Feb 2004 09:12:02 -0000 Message-ID: <20040206091157.GC765@basalt.office.altlinux.org> (raw) Message-ID: <20040206091202.ueN-cvVu83HN8rWwJ9Vtr8v-t57Kutb0Z6Vx2ts_m0w@z> (raw) In-Reply-To: <20040206031607.GD7324@solemn.turbinal.org> [-- Attachment #1: Type: text/plain, Size: 921 bytes --] 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...? Нет, пока ещё не умеет. Т.е. пакет, содержащий start/stop-скрипт, получит зависимость на service, но в этой зависимости не будет информации о post/preun; в 99% случаев это и не требуется, поскольку librpm умеет упорядочивать транзакции. > Аналогичный вопрос касается install/uninstall_info и некоторых других > макросов. Тут ситуация принципиально иная - %install_info/%uninstall_info изменились, и потому должны присутствовать в зависимостях явно: Requires(post): %install_info Requires(preun): %uninstall_info -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-02-06 9:12 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 [this message] 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 ` [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=20040206091157.GC765@basalt.office.altlinux.org \ --to=ldv@altlinux.org \ --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