An easy way to redefine configure?

Michael Schwendt mschwendt at gmail.com
Tue Aug 4 10:45:08 UTC 2009


On Tue, 04 Aug 2009 12:14:34 +0300, Jussi wrote:

> Hi,
> 
> 
> related to the MPI packaging draft
>  http://www.fedoraproject.org/wiki/PackagingDrafts/MPI
> I have a need to redefine %configure to use ../configure instead
> of ./configure to do off-root builds.
> 
> 
> So far I've tried
> 
> %global dconfigure %(echo "%{configure}" | sed
> 's|./configure|../configure|g')
> 
> but calling
> 
> %dconfigure
> 
> gives me
> 
> + CFLAGS=-O2
> + -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic
> /var/tmp/rpm-tmp.mvjW71: line 42: -g: command not found
> 
> 
> What's the correct way to do this?

The easy way (as in Subject) or the correct way?
Here's an easy way:

echo '%configure' | sed 's!./configure!../configure!g' > my-configure
sh my-configure




More information about the fedora-devel-list mailing list