Bug 22363

Summary: macros (e.g. %configure) expanded even in comments
Product: [Retired] Red Hat Linux Reporter: Fox, David <dsfox>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-12-15 20:01:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Fox, David 2000-12-15 20:01:45 UTC
I tried to comment out a %configure macro with a # and supply an
alternative configuration,
but the original one still ran, it was apparantly expanded and the lines
after the initial # were
executed.

Comments should be stripped before macros are expanded.

Comment 1 Jeff Johnson 2000-12-16 18:50:43 UTC
Macros are entirely context free, expanded in comments, within quotes, in the
false branch
of  %if, context free means context free.

Esacpe with an extra % if you want macro not to expand in comment.