Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205557 - [Future EAPI] Provide ebuilds a way to differentiate between updates and removals
Summary: [Future EAPI] Provide ebuilds a way to differentiate between updates and remo...
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PMS/EAPI
Whiteboard: in-eapi-4
Depends on:
Blocks: future-eapi
  Show dependency tree
Reported: 2008-01-13 02:15 UTC by Petteri Räty (RETIRED)
Modified: 2010-12-30 19:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2008-01-13 02:15:18 UTC
For example every time you upgrade tcl you get:

 * Messages for package dev-lang/tcl-8.4.15:

 * If you're upgrading from tcl-8.3, you must recompile the other
 * packages on your system that link with tcl after the upgrade
 * completes.  To perform this action, please run revdep-rebuild
 * in package app-portage/gentoolkit.
 * If you have dev-lang/tk and dev-tcltk/tclx installed you should
 * upgrade them before this recompilation, too,
 * GNU info directory index is up-to-date.

So I propose we add some variables like

for upgrade PREVIOUS_VERSION="8.3"

This way the ebuild could detect where we are upgrading from and only give the messages when one is really upgrading.
Comment 1 SpanKY gentoo-dev 2008-01-13 02:20:00 UTC
ive resorted to "has_version" in pkg* functions in the past which sucks and can be unreliable ... having the package manager tell the ebuild the transition state would be nice
Comment 2 Ulrich Müller gentoo-dev 2010-12-30 19:53:11 UTC
EAPI 4 has been approved by the council.