From: "Dmitry V. Levin" <ldv@alt-linux.org> To: devel@altlinux.ru Subject: Re: [devel] rpm requires Date: Mon, 10 Dec 2001 18:03:52 +0300 Message-ID: <20011210150352.GA15250@ldv.office.alt-linux.org> (raw) In-Reply-To: <877krvp2v2.fsf@pc349.belcaf.minsk.by> [-- Attachment #1: Type: text/plain, Size: 1475 bytes --] On Mon, Dec 10, 2001 at 04:27:13PM +0200, Grigory Milev wrote: > Замечено несколько неприятных вещей, связанных с поиском provides и requires: Поскольку эти неприятные вещи известны уже более года, то могу предложить стандартные методы борьбы с ними. > В requires заносятся все зависимости из скриптов, что приводит, в > некоторых случаях, к нежелательным зависимостям. Например: > if [ -f /etc/sysconfig/apache ]; then > ./etc/sysconfig/apache > fi > Получаем зависимость пакета от /etc/sysconfig/apache. Решение1: APACHE_CONFIG=/etc/sysconfig/apache if [ -s "$APACHE_CONFIG" ]; then . "$APACHE_CONFIG" fi Решение2: # Source function library. . /etc/init.d/functions SourceIfNotEmpty /etc/sysconfig/apache > Так-же происходит поиск зависимостей в /usr/share/doc/packet-name. В > доках масса примеров скриптов, которые никто не правит на предмет правильности > путей, что приводит к зависимостям типа: /usr/local/samba/bin/smbmount. Решение1: Исправить скрипты. Решение2: find каталоги_со_скриптами -type f -print0 |xargs -r0 chmod a-x Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@alt-linux.org ALT Linux Team http://www.altlinux.ru/ Fandra Project http://www.fandra.org/ +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
prev parent reply other threads:[~2001-12-10 15:03 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-12-10 14:27 Grigory Milev 2001-12-10 15:03 ` Dmitry V. Levin [this message]
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=20011210150352.GA15250@ldv.office.alt-linux.org \ --to=ldv@alt-linux.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