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] ccache support in gcc-common
Date: Thu, 2 Oct 2003 21:09:43 +0400
Message-ID: <20031002170943.GA12664@basalt.office.altlinux.org> (raw)
In-Reply-To: <20031002140258.GL10067@sam-solutions.net>

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

On Thu, Oct 02, 2003 at 05:02:58PM +0300, Alexander Bokovoy wrote:
> On Tue, Sep 30, 2003 at 08:58:30PM +0400, Dmitry V. Levin wrote:
> > On Tue, Sep 30, 2003 at 07:48:29PM +0300, Alexander Bokovoy wrote:
> > > On Tue, Sep 30, 2003 at 08:43:09PM +0400, Dmitry V. Levin wrote:
> > [...]
> > > > Идея красивая, осталось только её реализовать.
> > > > Желающие есть?
> > > в /etc/rpm/macros.d/ccache? Так я это реализую в ccache-2.3-alt1.
> > 
> > Это я уже понял. :)
> > 
> > > Или ты про %build_add_variable_expand ? 
> > 
> > Про него.
> Пожалуйста:
> 
> %_variable_expand_list %nil
> %set_variable_expand() %global _variable_expand_list %* ^
> %add_variable_expand() %global _variable_expand_list %_variable_expand_list %* ^
> %___pre_variable_extender() %{expand:%(echo %_variable_expand_list | \
> 		while read -d^ var1 var2 ; do \
> 			echo -e "\\tunset $var2 ||:\\\\" ; \
> 			echo -e "\\t%%{?$var1:export $var2=\\\"%$var1\\\"}\\\\"\
> 		done \
> 		)}
> 
> Результат работы:
> 
> $ rpm -v --define '__ccache_use 1' --define '__ccache_dir /foo/bar' --eval '
> %add_variable_expand __ccache_use GCC_USE_CCACHE
> %add_variable_expand __ccache_dir CCACHE_DIR
> %add_variable_expand __ccache_false GCC_FALSE_CCACHE
> %___pre_variable_extender'
> 
>          unset GCC_USE_CCACHE ||:\
>          export GCC_USE_CCACHE="1"\
>          unset CCACHE_DIR ||:\
>          export CCACHE_DIR="/foo/bar"\
>          unset GCC_FALSE_CCACHE ||:\
> 	 \

Только это не будет работать, если перенести
%add_variable_expand __ccache_use GCC_USE_CCACHE
%add_variable_expand __ccache_dir CCACHE_DIR
%add_variable_expand __ccache_false GCC_FALSE_CCACHE
в ~/.rpmmacros


-- 
ldv

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

  reply	other threads:[~2003-10-02 17:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-17 16:13 Alexander Bokovoy
2003-09-17 16:21 ` [devel] " Alexey Tourbin
2003-09-17 12:41   ` Sergey Vlasov
2003-09-17 16:48   ` Alexander Bokovoy
2003-09-17 17:19     ` Alexey Tourbin
2003-09-17 17:29       ` Alexander Bokovoy
2003-09-18 10:28   ` Dmitry V. Levin
2003-09-22 14:08   ` Michael Shigorin
2003-09-17 18:23 ` [devel] " Dmitry V. Levin
2003-09-18  8:29   ` Alexander Bokovoy
2003-09-23  8:12     ` Dmitry V. Levin
2003-09-23  8:21       ` Alexander Bokovoy
2003-09-23  8:28         ` Dmitry V. Levin
2003-09-23  8:50           ` Alexander Bokovoy
2003-09-30 16:43             ` Dmitry V. Levin
2003-09-30 16:48               ` Alexander Bokovoy
2003-09-30 16:58                 ` Dmitry V. Levin
2003-10-02 14:02                   ` Alexander Bokovoy
2003-10-02 17:09                     ` Dmitry V. Levin [this message]
2003-10-16 11:18 ` 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=20031002170943.GA12664@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