public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ciaran McCreesh <ciaran.mccreesh@blueyonder.co.uk>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Phase invariancy and exclusivity requirements
Date: Sun, 11 Nov 2007 19:56:54 +0000	[thread overview]
Message-ID: <20071111195654.15666780@blueyonder.co.uk> (raw)
In-Reply-To: <20071109224008.7f946930@blueyonder.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]

On Fri, 9 Nov 2007 22:40:08 +0000
Ciaran McCreesh <ciaran.mccreesh@blueyonder.co.uk> wrote:
> Is the following set sufficient? Is the following set the least
> restrictive correct solution?

... to explain the implications of these...

Say we have packages a, b and c, and none of them have any
dependencies. One valid solution to the build ordering is as follows:

* Install a
* Install b
* Install c

One of many solutions that is *not* valid is:

* Start doing a, b and c in parallel. Install them as they become
ready, doing only one merge at once.

Another that is not valid is:

* Start doing a, b and c in parallel, but don't merge them.
* Merge a.
* Merge b.
* Merge c.

One that is valid is:

* Build binary packages for a, b and c in parallel.
* Merge a's binary.
* Merge b's binary.
* Merge c's binary.

Another trickier situation. Say a-1 is installed, and a-2 and b are
targets, and b deps upon a (any version). By the rules given, this is
allowed:

* Build binary packages for a-2 and b in parallel.
* Merge a-2's binary (and clean a-1).
* Merge b's binary.

The situation becomes a whole lot more fun when, for example, we have
ten packages with interdependencies, and we only want to build at most
three things at once. That's why it pretty much has to be defined in
terms of invariancies and exclusivities rather than by listing a small
set of permitted algorithms.

-- 
Ciaran McCreesh

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-11-11 20:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09 22:40 [gentoo-dev] Phase invariancy and exclusivity requirements Ciaran McCreesh
2007-11-11 19:56 ` Ciaran McCreesh [this message]
2007-11-12 12:26   ` Marijn Schouten (hkBst)
2007-11-12 13:31     ` Piotr Jaroszyński
2007-11-12 13:33     ` Fernando J. Pereda
2007-11-13 15:44     ` Ciaran McCreesh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071111195654.15666780@blueyonder.co.uk \
    --to=ciaran.mccreesh@blueyonder.co.uk \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox