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: Ulrich Mueller <ulm@g.o>
Subject: Re: Phase order changes (was: One-Day Gentoo Council Reminder for September)
Date: Thu, 11 Sep 2008 20:21:43 +0200
>>>>> On Thu, 11 Sep 2008, Zac Medico wrote:

> I think it's worthwhile to have consistent phase ordering across all
> EAPIs. Consider an upgrade from EAPI 0 to EAPI 2. If the phase order
> is consistent across all EAPIs, as implemented in
> >=sys-apps/portage-2.1.5, then the order of phase execution order is
> uniform and unambiguous:

>   Upgrade from EAPI 0 to EAPI 2

>     pkg_preinst   (EAPI 2)
>     pkg_prerm     (EAPI 0)
>     pkg_postinst  (EAPI 0)

This should read "pkg_postrm" I think?

>     pkg_postinst  (EAPI 2)

> [...]

> Given that the phase order used in <sys-apps/portage-2.1.5 varies
> depending on whether or not the new and old version are identical
> [1], I consider the uniformity introduced by the new phase order to
> be a change that is well worth keeping. Given the small number of
> problems that have been discovered in practice, tracked by bug
> 226505 [3], I believe that the potential problems have proven to be
> negligible.

+1

In some situations involving eclasses, the new phase order avoids some
problems. pkg_postrm may call a function of an eclass saved with the
old package in the VDB, and it may have advantages if you can clean up
things in pkg_postinst of the new version.

For example, the Emacs team had quite some headache due to pkg_postrm
running after pkg_postinst, leading to complicated code in the present
version of elisp-common.eclass. This wouldn't have been necessary if
the new phase order already was in effect at that time. See ref. [4]
for further details.

Ulrich

[4] http://bugs.gentoo.org/show_bug.cgi?id=210764#c3


References:
One-Day Gentoo Council Reminder for September
-- Mike Frysinger
Re: One-Day Gentoo Council Reminder for September
-- Donnie Berkholz
Re: One-Day Gentoo Council Reminder for September
-- Zac Medico
Re: One-Day Gentoo Council Reminder for September
-- Ciaran McCreesh
Re: One-Day Gentoo Council Reminder for September
-- Zac Medico
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: One-Day Gentoo Council Reminder for September
Next by thread:
Re: One-Day Gentoo Council Reminder for September
Previous by date:
Re: EAPI-2
Next by date:
mail-filter/spamassassin: maintainer needed


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.