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

Bug 440566

Summary: app-vim/gentoo-syntax-20120109: some elog messages should only be shown when upgrading from an old enough package.
Product: Gentoo Linux Reporter: poletti.marco
Component: Current packagesAssignee: Ben de Groot (RETIRED) <yngwin>
Status: RESOLVED FIXED    
Severity: normal CC: vim
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:29 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package app-vim/gentoo-syntax-20120109, the following elog messages are displayed:

 * Note for developers and anyone else who edits ebuilds:
 *     This release of gentoo-syntax now contains filetype rules to set
 *     fileencoding for ebuilds and ChangeLogs to utf-8 as per GLEP 31.
 *     If you find this feature breaks things, please submit a bug and
 *     assign it to vim@gentoo.org. You can use the 'ignore-glep31' USE
 *     flag to remove these rules.

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-vim/gentoo-syntax-1.0'; then

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

if !has_version 'app-vim/gentoo-syntax' || has_version '<app-vim/gentoo-syntax-1.0'; then

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 Tim Harder gentoo-dev 2013-06-19 08:09:56 UTC
Fixed in >=gentoo-syntax-20130619.