Red Hat Bugzilla – Bug 194360
rpmbuild deliberately runs unasked %configure macro
Last modified: 2007-11-30 17:11:34 EST
Description of problem:
I was writing a spec file and i put ./configure in it instead of %configure
because of buffer overflow issues in the application.
Then i noticed rpmbuild runs first %configure , then ./configure which should be
impossible because i never put the %configure line in the .spec file.
So I tried recompiling other rpms and it runs %configure twice!
I'm adding the output of rpmbuild (notice that i run aclocal and autoconf on
purpose). This is the %build section:
aclocal --acdir=`sdl-config --prefix`/share/aclocal
# I had some buffer overflow in zsnes having it configured by the %configure script
### end of %build section ###
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add ./configure in the spec file instead of %configure
2. rpmbuild will runs %configure then ./configure
Created attachment 130682 [details]
output of rpmbuild -ba specfile
Macros are expanded everywhere, including comments.
Add a 2nd '%' escape to prevent expansion as in ' ... %%configure ...'