RPM hacking.

Sam Varshavchik mrsam at courier-mta.com
Thu Mar 18 01:27:50 UTC 2004


Gene C. writes:

> On Wednesday 17 March 2004 07:44, Matthias Saou wrote:
>> Sam Varshavchik wrote :
>> > Mike A. Harris writes:
>> > > On Tue, 16 Mar 2004, Sam Varshavchik wrote:
>> > >>I have a dim recollection of an undocumented option to rpm (now
>> > >> rpmbuild) that's essentially equivalent to "-bb --short-circuit". 
>> > >> That is, it jumps directly to binary RPM files creation; the
>> > >> installation buildroot is already assumed to exist and populated
>> > >> according to whatever's in %files.
>> > >>
>> > >>Anyone remember what it is?
>> > >
>> > > Unless this has changed since times past, there is no such
>> > > option.  If I recall correctly, rpm very intentionally does not
>> > > allow you to skip over all stages and jump directly to the file
>> > > packaging stage which then writes out the final binary packages.
>> >
>> > Yeah and all that.  This is a debugging/hacking option only.
>> >
>> > I managed to drudge my memory cell and remember the undocumented -bs
>> > option, which creates just the .src.rpm.  Now, I need to remember the
>> > rest of the story___
>>
>> Well, it's in both "--help" output and the rpmbuild man page, which is
>> pretty good exposure for an "undocumented option" ;-p
> 
> The current set of options which can be "short-circuit"'ed are fine.  However, 
> from a security perspective, I would be very bothered by an easy method of 
> creating binary rpms which could not be rebuilt by the source rpm.

Again: nobody wants to distribute the binary RPMs.

This for hacking/debugging only.

Say that I'm trying to chase down a kernel bug.  I have the kernel source 
rpm unpacked and compiled in BUILD.

I'd like to be able to play with the kernel source, make small changes, and 
be able to quickly build installable kernel RPMs for testing purposes, 
instead of waiting two fscking hours to rebuild the whole bloody mess from 
scratch all because of a one or a two-line change.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20040317/d446fc1f/attachment.sig>


More information about the fedora-devel-list mailing list