-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 7 Jul 2001, Stefan van der Eijk wrote:

>>What I'd love to have is the most minimal
>>set of packages installed, the install would then download and compile
>>the SRPMS according to your specified arch and optflags.
>
>I'm actually working on a mechanism like this. The script I'm using
>first installs the BuildRequires of the src.rpm (with urpmi) and then
>rebuilds the package.
>
>But, the main problem is that the BuildRequires aren't accurate at the
>moment in cooker.

To be really slick: if a package fails, your script could randomly
install some extra packages on the machine (perhaps 50% at random of the
total packages in Cooker) and try again to build.  If that succeeds,
remove some packages and try again, etc.  By a kind of binary search you
would find the minimal set of packages needed, and those could be added
to the spec files as BuildRequires lines.

Once all the dependencies are correct, it wouldn't take long to just
verify that things work whenever a new package is released, just as a
kind of sanity check.  It might be good for Mandrakesoft to dedicate a
fairly old, slow box to doing this 24 hours a day - getting the latest
uploads to Cooker, uninstalling everything except essential packages and
what's mentioned in BuildRequires, trying to build it, sending mail to
the maintainer if it fails.

>At the moment I'm rebuilding without any -devel package installed (let
>urpmi install what's required by BuildRequires).

That's a good start, but I have a feeling that the lack of some 'not
- -devel' packages may also cause builds to fail.  Ideally you'd start
from a completely minimal setup - what you'd get if you installed
Mandrake and chose the smallest possible selection of packages.

>If you're interested, I can share the script and setup with you...

I would be interested to have a look.  If you don't mind me randomly
butting in...

- -- 
Ed Avis <[EMAIL PROTECTED]>
Finger for PGP key

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7R1sBIMp73jhGogoRAqrxAJ447DwbF86acXoPRXgoqqfEBYB87wCePcvY
blukTfOey0aj+V1GMSqSKHk=
=HcNN
-----END PGP SIGNATURE-----


Reply via email to