ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Q: srpms buildrequires
Date: Fri, 22 Jul 2005 23:30:30 +0400
Message-ID: <20050722193030.GD21783@basalt.office.altlinux.org> (raw)
In-Reply-To: <20050719123426.GF7794@immo.ru>

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

On Tue, Jul 19, 2005 at 04:34:26PM +0400, Alexey I. Froloff wrote:
> * Alexey Gladkov <legion@> [050719 16:13]:
> > Единственным выходом мне видится, запрет на уровне полиси создания
> > сборочных зависимостей зависящих от _сборочной_архитектуры_ .
> > Подчеркиваю, что речь идет только про BuildRequires.
> А можно пример?

%ifarch %ix86
%def_with ada
%else
%def_without ada
%endif
[...]
%{?_with_ada:BuildPreReq: gcc%gcc_branch-gnat}

Увы, rpm'овский spec-файл существенно сложнее чем deb'овский
debian/control.

Между прочим, есть workaround: hsh --query-repackage,
и делает он следующее:

cat >chroot/.host/query_req <<__EOF__
#!/bin/sh -e
rpmi -i -- "\$@"
cd \`rpm --eval %_specdir\`
rpmbuild -bs --nodeps $rpmargs -- *.spec >/dev/null
cd \`rpm --eval %_srcrpmdir\`
rpmquery -pR -- "\$@"
__EOF__

Так что, если имя файла исходного пакета при перепаковке не изменится,
то этот метод будет работать.
А вот изменение имени файла исходного пакета надо ограничить правилами.


-- 
ldv

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

  parent reply	other threads:[~2005-07-22 19:30 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-19 12:07 Alexey Gladkov
2005-07-19 12:34 ` Alexey I. Froloff
2005-07-19 13:06   ` [devel] " Anton Farygin
2005-07-22 19:30   ` Dmitry V. Levin [this message]
2005-07-23  6:58     ` [devel] " Anton D. Kachalov
2005-07-23 11:19       ` Alexey Gladkov
2005-07-23 11:34       ` Ivan Fedorov
2005-07-26 14:28     ` [devel] " Michael Shigorin
2005-07-27 20:59       ` Igor Zubkov
2005-07-28  2:45         ` Ivan Fedorov
2005-07-28 16:51           ` Igor Zubkov
2005-07-28 17:38             ` Andrey Rahmatullin
2005-07-28  3:09         ` Andrey Rahmatullin
2005-07-28 16:56           ` Igor Zubkov
2005-07-28 17:38             ` Andrey Rahmatullin
2005-07-19 12:39 ` Michael Shigorin
2005-07-19 12:59   ` Sergey Vlasov
2005-07-19 13:01     ` Michael Shigorin
2005-07-19 13:02     ` Michael Shigorin
2005-07-19 13:06     ` Alexey Tourbin
2005-07-19 13:15       ` Sergey Vlasov
2005-07-19 13:19         ` Anton D. Kachalov
2005-07-19 13:17       ` Alexey Gladkov
2005-07-19 13:23         ` Michael Shigorin
2005-07-19 13:39           ` Alexey Gladkov
2005-07-19 13:44             ` Kirill A. Shutemov
2005-07-19 14:00             ` Alexey Gladkov
2005-07-20  7:31             ` Michael Shigorin
2005-07-19 13:06     ` Alexey I. Froloff
2005-07-19 13:15       ` Anton D. Kachalov
2005-07-19 13:35     ` Denis Ovsienko
2005-07-19 13:28       ` Anton D. Kachalov
2005-07-19 13:30         ` [devel] " Anton Farygin
2005-07-20  7:31         ` [devel] " Michael Shigorin
2005-07-20  9:15   ` Mikhail Zabaluev
2005-07-19 13:28 ` [devel] " Sergey Vlasov
2005-07-20 13:47 ` [devel] Q: digital photo & quicktime MOV support Igor Vlasenko
2005-07-20 13:59   ` [devel] " Michael Shigorin
2005-07-21 17:09     ` Igor Vlasenko
2005-07-22  7:29       ` [devel] [JT] " Michael Shigorin
2005-07-20 15:44 ` [devel] Q: srpms buildrequires Alexander Bokovoy
2005-07-20 19:43   ` Anton D. Kachalov
2005-07-21 18:55     ` [devel] " Sergey Bolshakov
2005-07-21 19:05       ` Alexey Gladkov
2005-07-20 20:51   ` [devel] " Alexey I. Froloff
2005-07-21  9:23     ` Sergey V Turchin

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=20050722193030.GD21783@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --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