Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via or IRC

Bug 440554

Summary: x11-libs/pango-1.30.1: some elog messages should only be shown when upgrading from an old enough package.
Product: Gentoo Linux Reporter: poletti.marco
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
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:23 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package x11-libs/pango-1.30.1, the following elog messages are displayed:

 * In >=pango-1.30.1, default configuration file locations moved from
 * ~/.pangorc and ~/.pangox_aliases to ~/.config/pango/pangorc and
 * ~/.config/pango/pangox.aliases

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/pango-1.0'; then

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

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

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 Gilles Dartiguelongue gentoo-dev 2012-10-31 12:44:56 UTC
It is probably better to check this with EAPI 4/5 REPLACES_VERSION
Comment 2 Pacho Ramos gentoo-dev 2013-05-13 19:15:26 UTC
fixed in latest versions