public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ciaran McCreesh <ciaran.mccreesh@googlemail.com>
To: "Michał Górny" <mgorny@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] How to handle dependencies on protocol headers?
Date: Fri, 16 Sep 2011 09:08:36 +0100	[thread overview]
Message-ID: <20110916090836.27313e1e@googlemail.com> (raw)
In-Reply-To: <20110916095447.18cc8808@pomiocik.lan>

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

On Fri, 16 Sep 2011 09:54:47 +0200
Michał Górny <mgorny@gentoo.org> wrote:
> > This is a build-against dependency, and it's best expressed either
> > by its own BADEPEND, or (because it's apparently now possible, and
> > because otherwise we'd end up with six or seven *DEPEND variables)
> > by switching to something like DEPENDENCIES with a build-against
> > label.
> 
> Please do not wreak exheres into Gentoo. The current variable forms
> are complex enough; there is no reason to put even more logic into
> the parser. And yes, it's better to have 7 *DEPEND variables than one
> more magical, conditional thingie in the 'Dependencies' section.

From feedback so far, I think you're in the minority on that (at least
from people who have expressed an opinion), and that more people have
come out in favour of a single unified variable (not necessarily with
exactly the same syntax as exheres-0).

*shrug* I don't really mind about the syntax either way, and I suspect
that'll come down to a Council decision. I do care about getting the
exact definitions of what the various kinds of dependencies mean right
-- as you saw in the "what's available in pkg_setup?" discussion, we
have to be very very careful to avoid contradictions.

I think we need at least the following classes to represent all the
different dependencies people seem to need:

Build dependencies (DEPEND): available in src_*.

Run dependencies (RDEPEND): available when the package is used to
satisfy a dependency.

Install dependencies (IDEPEND?): available in pkg_setup. (Anyone
interested in why this is necessary should see the "Rephrasing *DEPEND"
thread on gentoo-pms. Sticking something in both DEPEND and RDEPEND
isn't enough, since RDEPEND-RDEPEND cycles are breakable. But please
read the original discussion before claiming we're wrong.)

Build-against dependencies (BDEPEND?): the thing described in the
original post in this thread.

Post dependencies (PDEPEND): available sometime.

Suggested dependencies (SDEPEND?): optionally available sometime.

We may also want:

Recommended dependencies (TDEPEND?): optionally available sometime,
and chosen unless the user says not to.

If we're trying to solve the SCM fetch problem in EAPI 5 (I don't think
we are):

Special Fetch dependencies (FDEPEND?): available during the special
fetch phase, however we decide to do that.

Note that suggested dependencies *have* to be PDEPEND-like. You can't
sensibly have suggested DEPENDs, since that violates the "repeatable
builds" principle. If something's an optional DEPEND, it needs a flag.

-- 
Ciaran McCreesh

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

  reply	other threads:[~2011-09-16  8:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-16  4:32 [gentoo-dev] How to handle dependencies on protocol headers? Matt Turner
2011-09-16  4:36 ` Alec Warner
2011-09-16  4:47   ` Matt Turner
2011-09-16  4:42 ` [gentoo-dev] " Matt Turner
2011-09-16  4:49   ` Zac Medico
2011-09-16  5:00     ` Alexander Bersenev
2011-09-16  5:24     ` Matt Turner
2011-09-16  6:25 ` [gentoo-dev] " Ciaran McCreesh
2011-09-16  7:54   ` Michał Górny
2011-09-16  8:08     ` Ciaran McCreesh [this message]
2011-09-16  9:15       ` Brian Harring

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=20110916090836.27313e1e@googlemail.com \
    --to=ciaran.mccreesh@googlemail.com \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=mgorny@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