RPM Community Forums

Mailing List Message of <rpm-devel>

Re: rpmbuild gives errors when patches are commented ou

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 04 Mar 2008 - 20:45:08 CET
Message-Id: <68A38B7C-B5F1-4E3B-8FFB-0BE17712EB15@mac.com>

On Mar 4, 2008, at 2:38 PM, Per Øyvind Karlsen wrote:

> LC_ALL=C rpmbuild -bb rpm.spec
> error: File %PATCH69: No such file or directory
> error: File %PATCH107: No such file or directory
> error: File %PATCH125: No such file or directory
>
> In rpm.spec you can find the following related:
> #Patch69:       rpm-4.5-bb-shortcircuit.patch
> #%patch69 -p0 -b .trans
>

You %patch is now a multiline macro, macros are expanded in comments.

The workaround is to comment out as
     #%%patch69

which should be fixed.

But likely the recent lua "stuff" added from rpm.org is what is  
breaking.

See the change from like 2 weeks ago ...

73 de Jeff
> Both are commented out and should therefore not be of any concern..

Not true. Macros are expanded wherever they are found, within  
comments, etc etc ...

73 de Jeff
Received on Tue Mar 4 20:46:18 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.