Bug 166401 - rpmbuild parses tags is spec file strangely
Summary: rpmbuild parses tags is spec file strangely
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rpm
Version: 3.0
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-08-20 14:18 UTC by Vic
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-08-20 15:04:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.



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