ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] rpm requires
@ 2001-12-10 14:27 Grigory Milev
  2001-12-10 15:03 ` Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Grigory Milev @ 2001-12-10 14:27 UTC (permalink / raw)
  To: devel

Замечено несколько неприятных вещей, связанных с поиском provides и requires:
        В requires заносятся все зависимости из скриптов, что приводит, в
некоторых случаях, к нежелательным зависимостям. Например:
        if [ -f /etc/sysconfig/apache ]; then
                ./etc/sysconfig/apache
        fi
Получаем зависимость пакета от /etc/sysconfig/apache.

        Так-же происходит поиск зависимостей в /usr/share/doc/packet-name. В
доках масса примеров скриптов, которые никто не правит на предмет правильности
путей, что приводит к зависимостям типа: /usr/local/samba/bin/smbmount.

        Как вариант решения, можно сделать макрос, в котором будут указываться
пути и/или файлы, от которых пакет не будет зависеть. И может быть имеет смысл
убрать docdir из путей поиска зависимостей.

+-------------------------------------------------------+
Grigory Milev	mailto://week@altlinux.ru
ALT Linux Team	http://www.altlinux.ru
PC Club owner	mailto://pcclub@tut.by
+-------------------------------------------------------+
Life too beautiful and interest... Don't worry, be happy.



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

* Re: [devel] rpm requires
  2001-12-10 14:27 [devel] rpm requires Grigory Milev
@ 2001-12-10 15:03 ` Dmitry V. Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2001-12-10 15:03 UTC (permalink / raw)
  To: devel

[-- 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 --]

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

end of thread, other threads:[~2001-12-10 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-10 14:27 [devel] rpm requires Grigory Milev
2001-12-10 15:03 ` Dmitry V. Levin

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