Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440438 - net-misc/ntp-4.2.6_p5-r1: some elog messages should only be shown for the first install.
Summary: net-misc/ntp-4.2.6_p5-r1: some elog messages should only be shown for the fir...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 491700 (view as bug list)
Depends on:
Blocks: first-time-messages
  Show dependency tree
 
Reported: 2012-10-31 10:58 UTC by poletti.marco
Modified: 2015-04-04 08:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description poletti.marco 2012-10-31 10:58:44 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package net-misc/ntp-4.2.6_p5-r1, the following elog messages are displayed:

 * You can find an example /etc/ntp.conf in /usr/share/ntp/
 * Review /etc/ntp.conf to setup server info.
 * Review /etc/conf.d/ntpd to setup init.d info.
 * The way ntp sets and maintains your system time has changed.
 * Now you can use /etc/init.d/ntp-client to set your time at
 * boot while you can use /etc/init.d/ntpd to maintain your time
 * while your machine runs

Such messages should only be displayed when the package is a new install.
These situations can be checked in the ebuild as follows:

if ! has_version 'net-misc/ntp'; then

See the tracker bug 440214 for more details.
Comment 1 SpanKY gentoo-dev 2012-11-06 21:40:35 UTC
has_version does not work in pkg_postinst functions
Comment 2 Pacho Ramos gentoo-dev 2013-11-19 19:59:05 UTC
*** Bug 491700 has been marked as a duplicate of this bug. ***
Comment 3 Pacho Ramos gentoo-dev 2013-11-19 19:59:41 UTC
Bug 491700 was about using readme.gentoo.eclass for the same, I can do the work if you want
Comment 4 SpanKY gentoo-dev 2015-04-04 08:03:14 UTC
(In reply to Pacho Ramos from comment #3)

i rarely find readme.gentoo.eclass to be the right answer, including this case

these lines are largely redundant ... this is how Gentoo / ntp basically works:
 * You can find an example /etc/ntp.conf in /usr/share/ntp/
 * Review /etc/ntp.conf to setup server info.
 * Review /etc/conf.d/ntpd to setup init.d info.

these have outlived their usefulness (over 8 years old now);
 * The way ntp sets and maintains your system time has changed.
 * Now you can use /etc/init.d/ntp-client to set your time at
 * boot while you can use /etc/init.d/ntpd to maintain your time
 * while your machine runs

i've deleted all the log messages from the latest version.
Comment 5 SpanKY gentoo-dev 2015-04-04 08:05:41 UTC
should be all set now in the tree; thanks for the report!

Commit message: Drop old postinst messages
http://sources.gentoo.org/net-misc/ntp/ntp-4.2.8-r3.ebuild?rev=1.1