How to change --exec-prefix in %configure?
jdennis at redhat.com
Tue Jul 3 20:36:01 UTC 2007
On Tue, 2007-07-03 at 23:52 +0400, Peter Lemenkov wrote:
> Hello All!
> I faced some difficulties. For some reason I need to add
> --exec-prefix=/ to %configure. Firstly, I did it in he trivial way:
> %configure --exec-prefix=/
> but failed - default exec-prefix (which explicitly defines in that
> macro) used instead of mine.
> So far I've got simple question - how can I pass my custom exec-prefix
> w/o copypasting whole %configure macro into my spec and fixing it a
Don't use %configure, IMHO it's evil. Why? You just found out.
I think it's better to know exactly where things are going placed when
your spec file is evaluated so its better to obvious and explicit in the
spec file and pass the parameters explicitly so there is no confusion
due to silent obfuscation. Not all configure scripts are the same. It's
your job as a packager to know exactly what your package's configure
script is doing. Perhaps others disagree, but I've seen too many people
burned by %configure defying expectation. YMMV.
John Dennis <jdennis at redhat.com>
More information about the Fedora-maintainers