Bug 99253 - %define interpreted inside comment lines
%define interpreted inside comment lines
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: rpm (Show other bugs)
2.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-07-16 13:54 EDT by NN Poster
Modified: 2007-11-30 17:06 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-07-16 14:06:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description NN Poster 2003-07-16 13:54:59 EDT
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 14:06:45 EDT
The documentation is wrong.
Comment 2 NN Poster 2003-07-19 15:28:04 EDT
Aah, so it is a "feature".

Note You need to log in before you can comment on or make changes to this bug.