Red Hat Bugzilla – Bug 166401
rpmbuild parses tags is spec file strangely
Last modified: 2007-11-30 17:07:08 EST
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):
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
Macros get expanded everywhere use %%install to escape in changelog, etc
What version of rpm was this known to work with.
Sorry, don't know which version. This file has been sat on my machine for quite
some time :-)
I'll use the %% workaround.
It's been like this for quite some time - eg:
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.