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: [gentoo-dev] [RFC] Adding features to Portage that work on top of any EAPI
Date: Thu, 9 Oct 2008 19:46:55 +0200	[thread overview]
Message-ID: <20081009174654.GD21770@gentoo.org> (raw)

Hi all,

The Prefix team has a separate Portage branch which implements the
"prefix" extensions.  In short, this encompasses the addition of the
variables EPREFIX, ED and EROOT, and the function eprefixify to the
ebuild/eclass environment, which may be used to make an ebuild work for
a given prefix offset.

I would like to get some input on how best to deal with these additions
in the light of EAPI and the main (gentoo-x86) tree and Portage.  Since
the Prefix extensions can currently be applied on top of any existing
EAPI, they are not requiring any special EAPI value as baseline.

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.
An alternative is to create multiple new EAPIs, such as prefix-1 or
1-prefix, containing the Prefix extensions on top of EAPI=1.  Same
problem when checks on EAPI are done of course, but EAPI then always
consists of a single value.
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.

Please discuss.


-- 
Fabian Groffen
Gentoo on a different level



             reply	other threads:[~2008-10-09 17:47 UTC|newest]

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