Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-dev@g.o
From: Alexis Ballier <aballier@g.o>
Subject: Re: FEATURES use or misuse?
Date: Tue, 3 Nov 2009 22:26:24 +0100
> To quote:
> "FEATURES is a portage specific package manager configuration
> variable not specified in PMS and cannot reliably be used in ebuilds
> or eclasses."

For distcc & ccache, let me quote code:

if hasq distcc $FEATURES ; then
	export PATH="/usr/lib/distcc/bin:$PATH"
        [[ -n $DISTCC_LOG ]] && addwrite "${DISTCC_LOG%/*}"

if hasq ccache $FEATURES ; then
	export PATH="/usr/lib/ccache/bin:$PATH"

Do you want an example how to mimic this with portage without having
neither distcc nor ccache in FEATURES?
Even with portage, checking the FEATURES variable isn't reliable. If
you do not want to fix the real bugs and check/disable distcc/ccache
for any reason, then check PATH.

If you want to keep this simple, write an eclass providing functions
for disabling/checking these features.

> Well then, I suggest we finally start documenting reality and fix
> PMS. The use of the FEATURES variable, while it has been there
> for ... uhm ... as long as I can think back, actually :), should not
> be randomly suppressed. 

If you want to fix PMS, then send a patch rephrasing it to explain why
it isn't correct to check FEATURES in some cases. On the other hand, as
its name implies, PMS is a spec, not a documentation on why every
single choice has been made.

> So ... what's your opinion? Should we do things as they are correct,
> or as they are specified in PMS?

PMS may have some flaws, but not these, sorry.

> ( /me points at bash 3.0 )

Ever thought about backward compatibility and keeping a sane upgrade
path? Because that's exactly what this EAPI & PMS debate is all about


signature.asc (PGP signature)
Re: FEATURES use or misuse?
-- Patrick Lauer
FEATURES use or misuse?
-- Patrick Lauer
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: a pragmatic approach to FEATURES [was FEATURES use or misuse?]
Next by thread:
Re: FEATURES use or misuse?
Previous by date:
Re: FEATURES use or misuse?
Next by date:
Re: FEATURES use or misuse?

Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.