Re: %{expand:...} documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux