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] [git update] packages/gear: tags/compound_subst_stable
Date: Tue, 28 Aug 2007 20:48:50 +0400
Message-ID: <20070828164850.GD24207@solemn.turbinal> (raw)
In-Reply-To: <20070828164158.GB3479@hell.fortress>

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

On Tue, Aug 28, 2007 at 08:41:58PM +0400, Alexey I. Froloff wrote:
> * Dmitry V. Levin <ldv@> [070828 11:25]:
> > > +	spec_name=$($RPM "$arg" -q --qf '%{NAME}' --specfile "$spec")
> > > +	spec_version=$($RPM "$arg" -q --qf '%{VERSION}' --specfile "$spec")
> > > +	spec_release=$($RPM "$arg" -q --qf '%{RELEASE}' --specfile "$spec")
> > Это изменение противоречит архитектуре gear.
> > rpmquery --specfile даёт возможность выполнить произвольный код.
> К тому же при недостатке зависимостей rpmquery может просто не
> суметь распарсить спек.
> 
> Но на самом деле очень неудобно, что в gear-rules нельзя
> использовать полупроизвольные токены, типа svnrev, cvsdate и им
> подобных...

Произвольные токены из %define в спеке?  Я об этом думал.
https://bugzilla.altlinux.org/show_bug.cgi?id=12387

Нужно уметь очень корректно распарсить %define, потому что
последующий define отменяет предыдущий %define (точнее,
перекрывает).  А последующий %define можно попробовать
оформить очень нестандартно.

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

      reply	other threads:[~2007-08-28 16:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-28  7:17 ` Dmitry V. Levin
2007-08-28 16:41   ` Alexey I. Froloff
2007-08-28 16:48     ` Alexey Tourbin [this message]

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=20070828164850.GD24207@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