Bug 670553

Summary: RPM erroneously runs macros in comments
Product: [Fedora] Fedora Reporter: Susi Lehtola <susi.lehtola>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: ffesti, jnovy, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-19 13:46:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Susi Lehtola 2011-01-18 16:41:42 UTC
RPM erroneously executes macros in comments.

For instance, the following in %build

%build
# The configure script uses FCFLAGS instead of FFLAGS declared by the %configure macro.
export FCFLAGS="%{optflags} -ffree-form -ffree-line-length-none -I%{_fmoddir}"
%configure

will cause RPM to run %configure on the first line, before the FCFLAGS variable has been declared. It *really* should not do that.

Comment 1 Panu Matilainen 2011-01-19 13:46:46 UTC

*** This bug has been marked as a duplicate of bug 594672 ***