Bug 99253

Summary: %define interpreted inside comment lines
Product: Red Hat Enterprise Linux 2.1 Reporter: NN Poster <nnposter>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-16 18:06:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description NN Poster 2003-07-16 17:54:59 UTC
Description of problem:
%define directives in RPM spec file comment lines are interpreted.
This contradicts the documentation, which specifies that 
"Any text following the comment character will be ignored by RPM."

Version-Release number of selected component (if applicable):
rpm-4.0.4-7x.20

Spec file:
	%define foo xxx
	#%define foo yyy
	%prep
	echo %{foo}

Steps to Reproduce:
1. Create sample spec file
2. Run rpm -bp

    
Actual results:
yyy


Expected results:
xxx

Comment 1 Jeff Johnson 2003-07-16 18:06:45 UTC
The documentation is wrong.

Comment 2 NN Poster 2003-07-19 19:28:04 UTC
Aah, so it is a "feature".