Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Fabian Groffen <grobian@g.o>
Subject: [RFC] Adding features to Portage that work on top of any EAPI
Date: Thu, 9 Oct 2008 19:46:55 +0200
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


Replies:
Re: [RFC] Adding features to Portage that work on top of any EAPI
-- Ciaran McCreesh
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: [gentoo-commits] gentoo-x86 commit in net-fs/openafs: openafs-1.4.8_pre2.ebuild
Next by thread:
Re: [RFC] Adding features to Portage that work on top of any EAPI
Previous by date:
Re: Monthly Gentoo Council Reminder for October
Next by date:
[RFC] New keywords for non-Gentoo Linux platforms


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.