Google
  Web www.spinics.net

Re: Are brackets around macros required?

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


On Thu, 18 Aug 2011 21:57:43 +0200, GU (Göran) wrote:

> Tom Callaway:
> > %namev%version
> > 
> > Is the macro %namev? %name? %na?
> 
> Michael Schwendt:
> > RPM may accept it, but it cannot always parse it correctly either:
> > 
> >   echo "a=b" > %nameconfig.cfg
> > 
> > won't do the right thing even with %name being defined by default.
> 
> Are you joking?  Or am I missing something?  Of course, it means
> %namev and %nameconfig respectively.

What about these?

  %define name emacs
  ln -s %name %name23.2
  ln -s %name %name-23.2
  ln -s %name %name_23.2
  ln -s %name %name_%version
  ln -s %name %name23
  mv %name.man %name.2

Do you parse them all without testing? (not even programming language knowledge
is helpful in all cases)

Unless we can teach editors (the most common ones used to edit RPM spec files)
to do the variable highlighting correctly, explicit brackets are the way to go.
If a variable name is surrounded by whitespace, missing brackets are okay.
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging



[Home]     [Fedora Legacy]     [Fedora Desktop]     [Red Hat 9 Bible]     [Fedora Bible]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux

Google
  Web www.spinics.net