[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: %{expand:...} documentation
- From: Jos Vos <jos xos nl>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: %{expand:...} documentation
- Date: Mon, 27 Aug 2007 21:08:46 +0200
On Mon, Aug 27, 2007 at 02:59:08PM -0400, Jeff Johnson wrote:
> > I think this is an example of proper use (as there is a recursion),
> > right?
> >
> > %{expand: %%define _includedir %{_includedir}/%{name}}
>
> In this case, it really doesn't matter how often "%{_includedir}/%
> {name}" is
> expanded. Well, it _MAY_matter if the value of %{name} is changing,
> but I doubt you can really solve the problem of, say, %{name} possibly
> changing
> meaningfully by using %{expand:...}.
Uhh... now I'm confused. I tried:
%define foo %{foo}X
and using that (with %{foo} defined on the command line) results in:
error: Recursion depth(17) greater than max(16)
15< (empty)
14< (empty)
13< (empty)
12< (empty)
11< (empty)
10< (empty)
9< (empty)
8< (empty)
7< (empty)
6< (empty)
5< (empty)
4< (empty)
3< (empty)
2< (empty)
1< (empty)
0< echo foo:
While it works with
%{expand: %%define foo %{foo}X}
as long as %{foo} was defined before.
--
-- Jos Vos <jos xos nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]