typo in new spec file (F7)

Tom "spot" Callaway tcallawa at redhat.com
Sun Jul 29 05:36:16 UTC 2007


On Sat, 2007-07-28 at 16:23 -0400, Ignacio Vazquez-Abrams wrote:
> On Sat, 2007-07-28 at 16:02 -0400, Sam Folk-Williams wrote:
> > I noticed this in the kernel-2.6.22.1-33.fc7.src.rpm spec file as I was 
> > revising the kernel build docs:
> > 
> > #% define buildid .local
> > 
> > Just need to remove that space before 'define', otherwise we get the 
> > following after uncommenting.
> > 
> > error: line 15: Unknown tag: % define buildid .local
> 
> Better yet, double up the percent sign so that rpm doesn't try to
> interpret the %define macro.

My guess is that the space is there specifically to prevent rpm from
interpreting the %define macro (simply # commenting doesn't prevent it).

%% is a cleaner way to do it, but some packagers may not realize it
disables the macro.

~spot




More information about the Fedora-kernel-list mailing list