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
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Maciej Mrozowski <reavertm@...>
Subject: [RFC] Dropping (or enabling only on request) bootstrap from SCM eclasses
Date: Thu, 24 Sep 2009 03:39:26 +0200
In pre-EAPI-2, src_unpack phase was the most logical phase to be provided by 
SCM eclasses, thus classes has been set up to export ${ECLASS}_src_unpack.

This phase in most (if not all) SCM eclasses provided:
- unpack functionality - fetch and store in ${DISTDIR}
- bootstrap functionality - either patching or bootstrapping just unpacked 
sourced with command

In EAPI-2, bootstrap functionality belongs to prepare phase, thus it's been 
moved there - SCM eclasses in EAPI-2 codepath has been set up to provide 
src_prepare.

And this is the problem (some people may be even unaware of it).
In pre EAPI-2 it was sufficient to do the following in live ebuilds:

inherit ${some_eclass} ${scm_eclass}

${scm_eclass} inherited as last one, would just shadow src_unpack, providing 
what we want. In EAPI-2 however, it as well shadows src_prepare which is in 
*most* cases unwelcome, especially if one uses autopatcher (base.eclass, so 
cmake-utils.eclass, kde4-*.eclass, and probably some other).

Because SCM bootstrap is either not used at all, or used very rarely, there's 
suggestion to:
- either drop it
- or (preferably) to make SCM eclasses export src_prepare only on specific 
request
- or to make it easier - to not export it at all - thus making it required for 
developer to intentionally invoke ${ECLASS}_src_prepare if bootstrapping is 
required.

-- 
regards
MM
Attachment:
signature.asc (This is a digitally signed message part.)
Replies:
Re: [RFC] Dropping (or enabling only on request) bootstrap from SCM eclasses
-- Ryan Hill
Re: [RFC] Dropping (or enabling only on request) bootstrap from SCM eclasses
-- Ulrich Mueller
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: On shebangs of scripts
Next by thread:
Re: [RFC] Dropping (or enabling only on request) bootstrap from SCM eclasses
Previous by date:
Re: On shebangs of scripts
Next by date:
Re: [RFC] Dropping (or enabling only on request) bootstrap from SCM eclasses


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.