Re: %{macro} vs. %macro in spec files

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

 



On Wed, 24 Apr 2013 14:06:26 -0400, Tom Callaway wrote:

> On 04/19/2013 05:12 AM, Alexey I. Froloff wrote:
> > On Fri, Apr 19, 2013 at 01:00:31PM +0400, Peter Lemenkov wrote:
> >> Let's say someone defines a macro "_bindirmacro", and actually
> >> starts using it in a spec-files. Then there will be an ambiguity
> >> during substituting %_bindirmacro - is this %{_bindir}macro or 
> >> %{_bindirmacro}? Adding brackets will resolve this.
> > %_bindir will never be substituted in %_bindirmacro.  Another thing
> > that comes to mind is mass greps.
> 
> You're right, 

Just for the record, something like

  echo "FU=BAR" > %nameconfig.ini
  echo "FU=BAR" > %name2.conf

still does not expand as one might think even with %{name} being
define by default.

So, please use explicit braces/brackets more often than not.

-- 
Fedora release 19 (Schrödinger’s Cat) - Linux 3.9.0-0.rc7.git3.1.fc19.x86_64
loadavg: 0.04 0.03 0.05
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux