Bug 32804

Summary: %configure in spec file comment runs configure twice
Product: [Retired] Red Hat Raw Hide Reporter: kenneth_porter
Component: ntpAssignee: Preston Brown <pbrown>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.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: 2001-03-25 23:30:19 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 kenneth_porter 2001-03-23 07:04:37 UTC
RPM macros in spec files are expanded even when within a comment. In the spec file for ntp-4.0.99k-13, the line "#%configure" is expanded 
and the results are executed. This causes configure to run twice.

Comment 1 Brian Brock 2001-03-25 23:30:15 UTC
I can verify that, and the package builds in spite of the bug in the spec file. 
However, #%configure is on a line by itself, and there are no other uses of the
%configure macro within that spec file:

# XXX work around for anal ntp configure
%define _target_platform        %{nil}
#%configure
CFLAGS="-g -DDEBUG" ./configure --prefix=/usr
%undefine       _target_platform


Comment 2 Preston Brown 2001-03-26 15:32:04 UTC
fixed in 4.0.99k-14 and later.