From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] RPM %_tmppath - что плохого в силинках?
Date: Thu, 13 Mar 2008 10:02:59 +0300
Message-ID: <20080313070259.GS24653@solemn.turbinal> (raw)
In-Reply-To: <1205391144l.24196l.6l@ildar.innovations.kz>
[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]
On Thu, Mar 13, 2008 at 12:52:24PM +0600, Ildar Mulyukov wrote:
> >сущности - RPM_BUILD_ROOT и канонический путь к RPM_BUILD_ROOT. В
> >скриптах поиска зависимостей приходится всё время учитывать эти
> >варианты. Например, представьте, что хочется узнать realpath
> >какого-то файла под RPM_BUILD_ROOT.
> >
> > f=/etc/init.d/functions
> > p=$(readlink -ve "$RPM_BUILD_ROOT$f")
> > p=${p#$RPM_BUILD_ROOT}
> >
> >Так вот, при каноническом RPM_BUILD_ROOT "отрезание пути спереди"
> >всегда просто работает. А если RPM_BUILD_ROOT не канонический, то
> >встаёт вопрос, что нужно отрезать спереди в первую очередь.
>
> Хорошо, я согласен с обоснованием. Но я не согласен с решением. Можно
> сделать так (не углубляясь в подробности реализации):
> 1. В самом начале работы rpmbuild сделать преобразование в канонический
> путь.
В принципе, да. Но проблема ещё и в том, что каталог RPM_BUILD_ROOT
может просто не существовать. То есть тут нужна каноникализация типа
"readlink -m" (или, может быть, "readlink -f").
> 2. Использовать дальше везде преобразованный.
> В общем, #14885
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-03-13 7:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 7:22 Ildar Mulyukov
2008-03-13 6:30 ` Alexey Tourbin
2008-03-13 6:50 ` Хихин Руслан
2008-03-13 6:58 ` Alexey Tourbin
2008-03-13 7:05 ` Хихин Руслан
2008-03-13 10:50 ` Alexey Tourbin
2008-03-13 6:52 ` Ildar Mulyukov
2008-03-13 7:02 ` Alexey Tourbin [this message]
2008-03-15 0:27 ` Dmitry V. Levin
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=20080313070259.GS24653@solemn.turbinal \
--to=at@altlinux.ru \
--cc=devel@lists.altlinux.org \
/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