On Thu, May 18, 2006 at 09:34:19PM +0200, Pascal Bleser wrote:
> > When patch is commented in spec file and not deleted, there should be
> > comment, explaining this.
> > e.g.
> > # FIXME: This patch should be backported.
> > #%patch2
> > # Uncomment this patch, if automake fails.
> > #%patch3
> 
> Some RPM macros are applied regardless of whether they're commented out
> or now. Are you 100% sure that #%patch will not be applied ?
> I've seen pretty weird stuff with that.
> I'd suggest changing %patch2 to #patch2 instead of #%patch2 (unless, of
> course, you're sure no RPM 4.x version will apply #%patch2)

%patch is not a macro (it just looks like one). Same is true
for %prep, %package, %changelog and the like. Using '#' on such
pseudo macros works.

Cheers,
  Michael.

-- 
Michael Schroeder                                   [EMAIL PROTECTED]
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to