ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Ivan A. Melnikov" <iv@altlinux.org>
To: community@lists.altlinux.org
Subject: Re: [Comm] Сборка, хашер
Date: Mon, 27 Dec 2010 15:16:04 +0300
Message-ID: <20101227151604.3b96d314@deimos.localdomain> (raw)
In-Reply-To: <201012271756.42913.lex@asd.iao.ru>

On Mon, 27 Dec 2010 17:56:42 +0600
Alexey Petrakov <lex@asd.iao.ru> wrote:

> В сообщении от 27 декабря 2010 17:52:59 автор Ivan A. Melnikov
> написал:Нет, просто можно отдла
> > Это прописано в самой src.rpm. При сборке src.rpm в хешере
> > раскрываются макросы в контексте хешера, а затем сборочные
> > зависимости фиксируются в src.rpm, как requires. Никакой магии ;)
> 
> Появилось средство что-то прописывать в src.rpm минуя .spec файл?
> 
[...]

Ну не совсем минуя -- просто src.rpm зависит не только от спека и
исходников, но и от среды, в которой собирается. Именно поэтому в
ALTLinux src.rpm называют устаревшим форматом ;)

Например, в этом случае %setup_python_module добавляет сборочную
зависимость на python-dev вот так:

%(echo "BuildPreReq: python-devel = %__python_version")

В свою очередь,

%__python_version	%(LC_ALL=C %__python -c 'import sys; print "%%u.%%u" %% sys.version_info[0:2]' 2>/dev/null || echo 2.6)

То есть, в зависимости src.rpm попадёт версия python из того окружения,
в котором собрана src.rpm.

-- 
WBR,
Ivan A. Melnikov


  reply	other threads:[~2010-12-27 12:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-27 11:34 [Comm] =?utf-8?b?0KHQsdC+0YDQutCw?=, =?utf-8?b?0YXQsNGI0LXRgA==?=, чудеса Alexey Petrakov
2010-12-27 11:52 ` [Comm] =?utf-8?b?0KHQsdC+0YDQutCw?=, хашер Ivan A. Melnikov
2010-12-27 11:56   ` [Comm] Сборка, хашер Alexey Petrakov
2010-12-27 12:16     ` Ivan A. Melnikov [this message]
2010-12-27 12:33       ` Alexey Petrakov

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=20101227151604.3b96d314@deimos.localdomain \
    --to=iv@altlinux.org \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git