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: %build aclocal --acdir=`sdl-config --prefix`/share/aclocal autoconf # I had some buffer overflow in zsnes having it configured by the %configure script ./configure make %{?_smp_mflags} ### end of %build section ### Version-Release number of selected component (if applicable): 4.4.2-15.2 How reproducible: always 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 ...'