Bug 166401

Summary: rpmbuild parses tags is spec file strangely
Product: Red Hat Enterprise Linux 3 Reporter: Vic <rhbugs>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: low Docs Contact:
Priority: medium    
Version: 3.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: 2005-08-20 15:04:20 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 Vic 2005-08-20 14:18:05 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124

Description of problem:
I had an old spec file (i.e. it used to work) which mentioned a change to the "%install" section within the %changelog.

Running this through rpmbuild causes the changelog comment to be parsed as the start of the %install section, and the real %install tag is then seen as a second %install section. rpmbuild then complains about this, and doesn't build anything.

Version-Release number of selected component (if applicable):
rpm-build-4.2.3-13

How reproducible:
Always

Steps to Reproduce:
1. Put a comment in %changelog saying something about %install
2. Run rpmbuild on that spec file
3. Watch it fail...
  

Actual Results:  rpmbuild complains & doesn't do anything

Expected Results:  rpmbuild should have built the rpms

Additional info:

Comment 1 Paul Nasrat 2005-08-20 14:46:13 UTC
Macros get expanded everywhere use %%install to escape in changelog, etc

What version of rpm was this known to work with.

Comment 2 Vic 2005-08-20 14:50:26 UTC
Sorry, don't know which version. This file has been sat on my machine for quite
some time :-)

I'll use the %% workaround.

Vic.

Comment 3 Paul Nasrat 2005-08-20 15:04:20 UTC
It's been like this for quite some time - eg:

http://www.redhat.com/archives/rpm-list/2000-September/msg00209.html

It does bite people when they first hit it but once you know that macros are
expanded everywhere (in comments, changelog, etc) then people don't forget.