public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Fabian Groffen <grobian@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [RFC] Adding features to Portage that work on top of any EAPI
Date: Thu, 9 Oct 2008 20:54:54 +0200	[thread overview]
Message-ID: <20081009185454.GF21770@gentoo.org> (raw)
In-Reply-To: <20081009191526.1f42404e@googlemail.com>

On 09-10-2008 19:15:26 +0100, Ciaran McCreesh wrote:
> On Thu, 9 Oct 2008 19:46:55 +0200
> Fabian Groffen <grobian@gentoo.org> wrote:
> > Currently in Prefix we implemented EAPI as being a set of tokens that
> > are orthogonal to each other.  In other words, while 0, 1 and 2 are
> > mutual exclusive, "prefix" can be applied to 0, 1, or 2.  The result
> > is something like EAPI="prefix 1".  Of course with this approach the
> > recent introduction of EAPI=2, resulted in a problem with eclasses
> > that do a blind check on the EAPI variable to be e.g. 2.
> 
> EAPI's defined as being a single value because mixing between EAPIs is
> in general impossible. For example, I'm guessing prefix might need to
> do something to econf / the default src_compile/configure functions at
> some point, so it's not really truly independent.

While that is true, currently Prefix is designed in such a way that
an empty offset results in a fully "backwards" compatible Portage.

> Is there anything stopping you from formalising your specification of
> what you need? (The PMS team can probably help with the 'writing formal'
> bit if necessary, given an informal description.) Could it be done in
> such a way that non-prefix package managers can do minimal support to
> get the current /usr behaviour, whilst optionally implementing
> everything else? If this is the case, the best route's probably to get
> the whole thing into the next EAPI, start using that EAPI for all your
> overlay packages and persuade people to include the necessary prefixy
> things in main-tree eclasses (which they should, once said EAPI is
> Council approved).

A problem I have with requiring a "next" EAPI for each ebuild, is that
Prefix requires all base-system ebuilds to be "Prefix compatible".
However, this category of ebuilds requires being conservative with EAPI
requirements.

I once started on an attempt to document the stuff[1], but it's pretty
verbose, and it misses the necessary informal definitions of in
particular chapter [2].

> > Something that was raised in previous discussions was that maybe the
> > Prefix extensions don't need an EAPI in itself, but that an ebuild has
> > to be marked as Prefix-ready through e.g. the recently proposed
> > PROPERTIES variable, (a horrible hack) in KEYWORDS, or a newly to be
> > added variable.
> 
> What's the scope of the changes? I think it'd be easiest to discuss
> this if you posted an informal summary describing the differences in
> terms of which bits of PMS are affected.

[2] sums it up for as much as I can recall for the moment, the
non-privileged stuff is supposed to be separate, but its use is
inherently related to offset installations.  Our overlay[3] contains
enough material to get an idea of what it looks like in practise.  If
you want specific pointers, I can give you them.


[1] http://dev.gentoo.org/~grobian/gleps/glep-prefix.html
[2] http://dev.gentoo.org/~grobian/gleps/glep-prefix.html#ebuild-changes-in-prefix
[3] http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay

-- 
Fabian Groffen
Gentoo on a different level



  reply	other threads:[~2008-10-09 18:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09 17:46 [gentoo-dev] [RFC] Adding features to Portage that work on top of any EAPI Fabian Groffen
2008-10-09 18:15 ` Ciaran McCreesh
2008-10-09 18:54   ` Fabian Groffen [this message]
2008-10-10 15:40   ` Jeremy Olexa
2008-10-10 16:10     ` 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=20081009185454.GF21770@gentoo.org \
    --to=grobian@gentoo.org \
    --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