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

Bug 440576

Summary: app-benchmarks/phoronix-test-suite-4.0.1: some elog messages should only be shown when upgrading from an old enough package.
Product: Gentoo Linux Reporter: poletti.marco
Component: Current packagesAssignee: Patrick Lauer <patrick>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 440214    

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

When emerging the package app-benchmarks/phoronix-test-suite-4.0.1, the following elog messages are displayed:

 * If you upgrade from phoronix-test-suite-2*, you should reinstall all
 * your tests because
 *    $HOME/.phoronix-test-suite/installed-tests/$TEST_NAME/
 * moves to
 *    $HOME/.phoronix-test-suite/installed-tests/pts/$TEST_NAME-$TEST_VERSION/
 * in phoronix-test-suite-3* version. The $TEST_VERSION can be find in
 * pts-install.xml file.

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 '<app-benchmarks/phoronix-test-suite-1.0'; then

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

if !has_version 'app-benchmarks/phoronix-test-suite' || has_version '<app-benchmarks/phoronix-test-suite-1.0'; then

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 Pacho Ramos gentoo-dev 2016-10-01 07:56:51 UTC