ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] RPM %_tmppath - что плохого в силинках?
Date: Thu, 13 Mar 2008 09:30:43 +0300
Message-ID: <20080313063043.GO24653@solemn.turbinal> (raw)
In-Reply-To: <1205306530l.24196l.2l@ildar.innovations.kz>

[-- Attachment #1: Type: text/plain, Size: 1393 bytes --]

On Wed, Mar 12, 2008 at 01:22:10PM +0600, Ildar Mulyukov wrote:
> find-lang: ERROR: non-canonical  
> RPM_BUILD_ROOT=/home/ildar/tmp/RPM/gq-buildroot  
> real_buildroot=/var/tmp/RPM/gq-buildroot
> ошибка: Неверный код возврата из /home/ildar/tmp/RPM/rpm-tmp.92244  
> (%install)
> Ошибки сборки пакетов:
>     Неверный код возврата из /home/ildar/tmp/RPM/rpm-tmp.92244  
> (%install)
> 
> После того, как я изменил %_topdir и %_tmppath на `readlink -f {}`,  
> стало собираться.

$ rpm -q --changelog rpm |grep canon
- functions (ValidateBuildRoot): require RPM_BUILD_ROOT path be canonical
$

> Мне, как пользователю RPM непонятно, почему неканонические пути - это  
> плохо?

Это вопрос или утверждение? :)  Ну, в двух словах, появляется две
сущности - 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 не канонический,
то встаёт вопрос, что нужно отрезать спереди в первую очередь.

> Более того, почему с неканоническими путями без find-lang пакеты  
> собираются?

Не собираются.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-03-13  6:30 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 [this message]
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
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=20080313063043.GO24653@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