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 infra@gentoo.org or IRC

Bug 440556

Summary: sys-apps/util-linux-2.21.2: some elog messages should only be shown when upgrading from an old enough package.
Product: Gentoo Linux Reporter: poletti.marco
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
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:24 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package sys-apps/util-linux-2.21.2, the following elog messages are displayed:

 * The agetty util now clears the terminal by default.  You
 * might want to add --noclear to your /etc/inittab lines.

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 '<sys-apps/util-linux-1.0'; then

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

if !has_version 'sys-apps/util-linux' || has_version '<sys-apps/util-linux-1.0'; then

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 SpanKY gentoo-dev 2013-09-29 01:21:12 UTC
been fixed at some point:
pkg_postinst() {
    if [[ -z ${REPLACING_VERSIONS} ]]; then
        elog "The agetty util now clears the terminal by default. You"
        elog "might want to add --noclear to your /etc/inittab lines."
    fi
}