[PATCH] Enhance RPM support

Andy Green andy at warmcat.com
Fri Feb 17 08:30:31 UTC 2006


Rob Landley wrote:

Hi Rob -

> Um, the _way_ you made it configurable is...  Ouch.
> 
> (Reproducing the entire "main" code wasn't quite what I had in mind, but then 
> again I wasn't very specific, was I?)

Unfortunately the old code is SO hacked about (main() is completely
different, several routines were changed to operate on
pointers-to-structs passed in as parameters instead of statically
defined vars, so every operation is changed to have ptr->) that I think
you will not be able to find much more commonality... especially when
you asked for assurance of identity of the resulting binary.  The old
code is also much smaller than the new one.  But I can understand it
doesn't sound like a good proposition coming from cold... until you
compare the code.

> I'm working on it (along with tonight's project: writing a "mount" regression 
> test suite so I can have some confidence about the mount upgrade)...

Great let me know if I can help.  I am in the UK so I read this the
following morning unfortunately.

> I believe you.  Sounds like RPM is is another thing I need to make a 
> regression test suite for.  (Hmmm, where would I get about three suitably 
> small RPMs, less than 10k each, which we could bundle in the busybox source 
> for testing purposes?  Preferably with dependencies only on each other.  

I can provide these if you let me know the kind of thing you want in them.

> How does one _create_ RPMs, anyway?)

I have also created a set of scripts that make RPM packaging -- and
critically for FOSS code users, capture of matching source in an SRPM to
allow some certainty of license compliance -- as simple as possible.  If
you have a nice fast machine and can survive the cycle time for full app
rebuilds every time, it promotes using RPMs for development code as well
as release, and does one-step (S)RPM generation, scp to the box and
scripted ssh update (using busybox rpm) on the box.  You need "real RPM"
rpmbuild on your main build machine machine.

Source tree capture is a serious problem especially for commercial
users... I also have a script which leverages the new busybox rpm stuff
to generate a list of unpackaged files in the box filesystem tree so you
can make sure everything in your box filesystem is in a package.

-Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4492 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060217/4dac3b32/attachment.bin 


More information about the busybox mailing list