Re: An easy way to redefine configure?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tis 2009-08-04 klockan 12:14 +0300 skrev Jussi Lehtola:
> 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?

%global dconfigure %(rpm -E %%configure | sed 's!./configure!../configure!g')
%dconfigure

	Mattias

<<attachment: smime.p7s>>

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux