Re: "rpmbuild" to do prep and configure?

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

 



On Fri, 2005-07-15 at 10:09 -0400, Robert P. J. Day wrote:
>   i'm experimenting with rebuilding "lftp" from the src rpm file, and
> i was curious to see the Makefile generated from the configure step in
> the spec file:
> 
> %configure --with-modules --disable-static --with-ssl --with-debug
> 
>   i realize that rpmbuild doesn't have an option that lets me stop
> after the configure step without going on to the actual make.

You are possibly confusing the overloading of % in the spec file.

It is used as a section marker (%prep,%build,%install,%clean,%files,etc)
which the appropriate build sections corresponds to rpmbuild -bp, -bc
-bi, etc.  You can thus stop at one of those stages

%configure is a macro (rpm -E '%configure') used in the %build section,
so you can't just step to the stage.

Just add "exit 1" between the configure and the make macros in %build,
then you can inspect and remove the terminating command

rpmbuild --short-circuit -bc foo.spec to restart the %build stage
without re-expanding the root.

Paul


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux