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

Bug 440584

Summary: x11-libs/qt-gui-4.8.x: some elog messages should only be shown when upgrading from an old enough package.
Product: Gentoo Linux Reporter: poletti.marco
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED OBSOLETE    
Severity: trivial    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 440214    

Description poletti.marco 2012-10-31 11:29:38 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package x11-libs/qt-gui-4.8.2, the following elog messages are displayed:

 * Starting with Qt 4.8, you may choose the active Qt Graphics System
 * by using a new eselect module called qtgraphicssystem.
 * Run `eselect qtgraphicssystem` for more information.

Such messages should only be displayed when the package is upgraded from an old enough package (and possibly for new installs).
These situations can be checked in the ebuild as follows:

if has_version '<x11-libs/qt-gui-1.0'; then

Or, if the message should also be displayed for new installs:

if !has_version 'x11-libs/qt-gui' || has_version '<x11-libs/qt-gui-1.0'; then

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2012-10-31 19:47:46 UTC
BTW we have REPLACING_VERSIONS and REPLACED_BY_VERSION in EAPI >= 4.
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2013-01-26 11:27:40 UTC
The message has been removed altogether. It was useless anyway.