Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 205557

Summary: [Future EAPI] Provide ebuilds a way to differentiate between updates and removals
Product: Gentoo Hosted Projects Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Severity: normal CC: pacho, serkan
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: in-eapi-4
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

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.