On Tue, Mar 16, 2004, David M. Fetter wrote:
> How do I get the rpm rebuilds to keep the rpm-tmp.* file around so I can
> look for information on why something failed? It looks like when I do a
> rebuild even if it fails the rpm-tmp.* file is automatically removed
> before I have a chance to review it.
>
David,
the --rebuild is essentially a fetch (--fetch foo.src.rpm), install
SRPM into %{l_prefix}/RPM/PKG/foo (-Uvh foo.src.rpm), cd to that
directory and build binary (-bb foo.spec). You can do these steps
manually and (re)gain control over the build process between each
step. The build binary instruction is even a whole bunch of steps
which can be executed individually. See package life cycle at
http://www.openpkg.org/doc/slideset/openpkg.html/slide-015-l.html
Having the SRPM installed aka unpacked you can do the %prep (usually
tar and patch) and %build (usually configure and make) step executing
a "rpm -bc foo.spec". If you change something in the temp directory to
give it a try and want to repeat the %build step without executing the
(destructive!) %prep step again, use "rpm -bc --short-circuit foo.spec".
--
[EMAIL PROTECTED], Cable & Wireless
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]