From: Vitaly Ostanin <vyt@vzljot.ru>
To: devel@altlinux.ru
Subject: [devel] Re: rpm packaging (was: Symbolic link and replace the dir)
Date: Fri, 7 Feb 2003 20:56:28 +0300
Message-ID: <20030207205628.4aab4a10.vyt@vzljot.ru> (raw)
In-Reply-To: <Pine.LNX.4.51L.0302072037150.2489@arrakis.zephyrous>
[-- Attachment #1: Type: text/plain, Size: 1525 bytes --]
On Fri, 7 Feb 2003 20:47:12 +0300 (MSK)
Ivan Zakharyaschev <imz@altlinux.ru> wrote:
<skipped/>
> > Ставятся новые файлы, и в этом месте (видимо) почему-то
> > удаляются
> > те их новых, которые были в старой сборке.
> >
> > Я так и не понял, почему часть файлов удаляется, а для других
> > пишется skip. И гадать уже особо некогда. Это секретная
> > информация, или никто не сталкивался?
>
> Предположение: symlink сбивает rpm столку.
>
> В старом пакете было:
>
> /dir1/a
>
> В новом пакете:
>
> /dir1 -> /dir2
> /dir2/a
>
>
> Тогда происходит так:
>
> %pre удаляет всю /dir1/.
>
> Ставится новый пакет, в том числе файлы: /dir1 как симлинк на
> /dir2 и /dir2/a.
>
> Удаляется старый, в том числе все те файлы, которые
> принадлежали старому, но не принадлежали новому.
>
> В старом был файл /dir1/a, а в новом файла с таким путём нет.
Если верить rpm -qf pathtofile, то после установки "dir1/a"
принадлежит пакету, как и "dir2/a", при том, что dir1 - симлинк
на dir2.
Так вот, в моём случае удаляются файл в старом
пакете есть файл "dir1(каталог)/a" и в новом
пакете есть "dir1(симлинк)/a".
То есть в новом пакете файл с таким путём есть (но через
симлинк).
По наводке MHZ попробовал создавать этот симлинк в %post и
включать в %files через %ghost. Не помогло.
> Он удаляется -- на самом деле удаляется /dir2/a.
>
> Если это так, то, наверное, решение возможно только внутри rpm.
--
Regards, Vyt
mailto: vyt@vzljot.ru
JID: vyt@vzljot.ru
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-02-07 17:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-03 18:21 [devel] Symbolic link and replace the dir Vitaly Ostanin
2003-02-04 7:45 ` Alexander Bokovoy
2003-02-05 16:42 ` [devel] " Vitaly Ostanin
2003-02-05 16:59 ` Sergey Vlasov
2003-02-05 18:01 ` [devel] Re: rpm packaging (was: Symbolic link and replace the dir) Vitaly Ostanin
2003-02-06 12:46 ` Sergey Vlasov
2003-02-07 17:27 ` Vitaly Ostanin
2003-02-07 17:35 ` Vitaly Ostanin
2003-02-07 17:47 ` Ivan Zakharyaschev
2003-02-07 17:56 ` Vitaly Ostanin [this message]
2003-02-07 18:14 ` Sergey Vlasov
2003-02-07 18:17 ` Sergey Vlasov
2003-02-07 18:19 ` Ivan Zakharyaschev
2003-02-07 18:22 ` Sergey Vlasov
2003-02-07 19:34 ` Vitaly Ostanin
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=20030207205628.4aab4a10.vyt@vzljot.ru \
--to=vyt@vzljot.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