* [devel] зависимости. Как разрулить?
@ 2008-09-30 6:48 "Шишков Е.В."
2008-09-30 7:09 ` Andrey Rahmatullin
2008-09-30 7:22 ` Andrey Rahmatullin
0 siblings, 2 replies; 10+ messages in thread
From: "Шишков Е.В." @ 2008-09-30 6:48 UTC (permalink / raw)
To: devel
Здравствуйте.
Есть пакет (если быть точнее, то foo2zjs)
Он разбит на 3 части.
В первом пакете есть проверка на наличие файла, который находится в пакете номер 3.
При сборке в первый пакет прописывается зависимость третьего пакета.
Т.е. первый пакет нельзя установить не поставив пакет 3.
Как разорвать эту зависимость?
В spec файле я не прописывал зависимость первого пакета от третьего.
--
С уважением,
Шишков Евгений (evgen[собак]svi[тчк]pp[тчк]ru)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] зависимости. Как разрулить?
2008-09-30 6:48 [devel] зависимости. Как разрулить? "Шишков Е.В."
@ 2008-09-30 7:09 ` Andrey Rahmatullin
2008-09-30 7:13 ` "Шишков Е.В."
2008-09-30 7:22 ` Andrey Rahmatullin
1 sibling, 1 reply; 10+ messages in thread
From: Andrey Rahmatullin @ 2008-09-30 7:09 UTC (permalink / raw)
To: devel
On Tue, Sep 30, 2008 at 10:48:21AM +0400, "Шишков Е.В." wrote:
> В первом пакете есть проверка на наличие файла, который находится в пакете номер 3.
> При сборке в первый пакет прописывается зависимость третьего пакета.
> Т.е. первый пакет нельзя установить не поставив пакет 3.
> Как разорвать эту зависимость?
Зачем её разрывать?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] зависимости. Как разрулить?
2008-09-30 7:09 ` Andrey Rahmatullin
@ 2008-09-30 7:13 ` "Шишков Е.В."
0 siblings, 0 replies; 10+ messages in thread
From: "Шишков Е.В." @ 2008-09-30 7:13 UTC (permalink / raw)
To: ALT Linux Team development discussions
Andrey Rahmatullin пишет:
> On Tue, Sep 30, 2008 at 10:48:21AM +0400, "Шишков Е.В." wrote:
>> В первом пакете есть проверка на наличие файла, который находится в пакете номер 3.
>> При сборке в первый пакет прописывается зависимость третьего пакета.
>> Т.е. первый пакет нельзя установить не поставив пакет 3.
>> Как разорвать эту зависимость?
> Зачем её разрывать?
Затем, что пакет номер 1 может жить без пакета номер 3.
Пакет номер 3 - небольшое дополнение автоматизирующее процесс загрузки/установки прошивки
принтера. Постоянное наличие этого скрипта не целесообразно (это уже обсуждали), но как
опция он должен быть (для начинающих пользователей например а-ля desktop вариант).
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] зависимости. Как разрулить?
2008-09-30 6:48 [devel] зависимости. Как разрулить? "Шишков Е.В."
2008-09-30 7:09 ` Andrey Rahmatullin
@ 2008-09-30 7:22 ` Andrey Rahmatullin
2008-09-30 7:29 ` "Шишков Е.В."
1 sibling, 1 reply; 10+ messages in thread
From: Andrey Rahmatullin @ 2008-09-30 7:22 UTC (permalink / raw)
To: devel
On Tue, Sep 30, 2008 at 10:48:21AM +0400, "Шишков Е.В." wrote:
> В первом пакете есть проверка на наличие файла, который находится в пакете номер 3.
Что за проверка, мы телепатически должны определить?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] зависимости. Как разрулить?
2008-09-30 7:22 ` Andrey Rahmatullin
@ 2008-09-30 7:29 ` "Шишков Е.В."
2008-09-30 7:43 ` Aleksey Avdeev
0 siblings, 1 reply; 10+ messages in thread
From: "Шишков Е.В." @ 2008-09-30 7:29 UTC (permalink / raw)
To: ALT Linux Team development discussions
Andrey Rahmatullin пишет:
> On Tue, Sep 30, 2008 at 10:48:21AM +0400, "Шишков Е.В." wrote:
>> В первом пакете есть проверка на наличие файла, который находится в пакете номер 3.
> Что за проверка, мы телепатически должны определить?
Ну простая проверка.
В скрипте:
if [ ! -f "/usr/sbin/foo2zjs_download_fw" ]; then тра-ля-ля
Это в пакете номер 1. Вот rpm и считает, что это (/usr/sbin/foo2zjs_download_fw)
обязательно должно быть и добавляет в зависимость.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] зависимости. Как разрулить?
2008-09-30 7:29 ` "Шишков Е.В."
@ 2008-09-30 7:43 ` Aleksey Avdeev
2008-09-30 8:58 ` Michael Shigorin
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Aleksey Avdeev @ 2008-09-30 7:43 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 506 bytes --]
Шишков Е.В. пишет:
> Andrey Rahmatullin пишет:
>> On Tue, Sep 30, 2008 at 10:48:21AM +0400, "Шишков Е.В." wrote:
>>> В первом пакете есть проверка на наличие файла, который находится в
>>> пакете номер 3.
>> Что за проверка, мы телепатически должны определить?
>
> Ну простая проверка.
> В скрипте:
>
> if [ ! -f "/usr/sbin/foo2zjs_download_fw" ]; then тра-ля-ля
Попробуйте:
VAR="/usr/sbin/foo2zjs_download_fw"
if [ ! -f "$VAR" ]; then тра-ля-ля
--
С уважением. Алексей.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 552 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] зависимости. Как разрулить?
2008-09-30 7:43 ` Aleksey Avdeev
@ 2008-09-30 8:58 ` Michael Shigorin
2008-09-30 9:25 ` "Шишков Е.В."
2008-09-30 9:55 ` Dmitry V. Levin
2 siblings, 0 replies; 10+ messages in thread
From: Michael Shigorin @ 2008-09-30 8:58 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Tue, Sep 30, 2008 at 11:43:30AM +0400, Aleksey Avdeev wrote:
> >if [ ! -f "/usr/sbin/foo2zjs_download_fw" ]; then тра-ля-ля
> VAR="/usr/sbin/foo2zjs_download_fw"
> if [ ! -f "$VAR" ]; then тра-ля-ля
; трам-пам-пам "$VAR"
; fi
(использование переменной "заслоняет" имя файла от автопоиска)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] зависимости. Как разрулить?
2008-09-30 7:43 ` Aleksey Avdeev
2008-09-30 8:58 ` Michael Shigorin
@ 2008-09-30 9:25 ` "Шишков Е.В."
2008-09-30 9:55 ` Dmitry V. Levin
2 siblings, 0 replies; 10+ messages in thread
From: "Шишков Е.В." @ 2008-09-30 9:25 UTC (permalink / raw)
To: ALT Linux Team development discussions
Aleksey Avdeev пишет:
> Попробуйте:
>
> VAR="/usr/sbin/foo2zjs_download_fw"
> if [ ! -f "$VAR" ]; then тра-ля-ля
Ага. Благодарю. Сработало.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] зависимости. Как разрулить?
2008-09-30 7:43 ` Aleksey Avdeev
2008-09-30 8:58 ` Michael Shigorin
2008-09-30 9:25 ` "Шишков Е.В."
@ 2008-09-30 9:55 ` Dmitry V. Levin
2008-09-30 10:02 ` "Шишков Е.В."
2 siblings, 1 reply; 10+ messages in thread
From: Dmitry V. Levin @ 2008-09-30 9:55 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
On Tue, Sep 30, 2008 at 11:43:30AM +0400, Aleksey Avdeev wrote:
> Шишков Е.В. пишет:
> >Andrey Rahmatullin пишет:
> >>On Tue, Sep 30, 2008 at 10:48:21AM +0400, "Шишков Е.В." wrote:
> >>>В первом пакете есть проверка на наличие файла, который находится в
> >>>пакете номер 3.
> >>Что за проверка, мы телепатически должны определить?
> >
> >Ну простая проверка.
> >В скрипте:
> >
> >if [ ! -f "/usr/sbin/foo2zjs_download_fw" ]; then тра-ля-ля
>
> Попробуйте:
>
> VAR="/usr/sbin/foo2zjs_download_fw"
> if [ ! -f "$VAR" ]; then тра-ля-ля
Именно тра-ля-ля и породило зависимость.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-09-30 10:02 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-30 6:48 [devel] зависимости. Как разрулить? "Шишков Е.В."
2008-09-30 7:09 ` Andrey Rahmatullin
2008-09-30 7:13 ` "Шишков Е.В."
2008-09-30 7:22 ` Andrey Rahmatullin
2008-09-30 7:29 ` "Шишков Е.В."
2008-09-30 7:43 ` Aleksey Avdeev
2008-09-30 8:58 ` Michael Shigorin
2008-09-30 9:25 ` "Шишков Е.В."
2008-09-30 9:55 ` Dmitry V. Levin
2008-09-30 10:02 ` "Шишков Е.В."
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