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

Bug 403255

Summary: net-misc/ntp - ntpdate is deprecated
Product: Gentoo Linux Reporter: Sergio <hujuice>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate
Whiteboard:
Package list:
Runtime testing required: ---

Description Sergio 2012-02-12 10:46:25 UTC
The net-misc/ntp ebuild set up a ntp-client (boot) service with the goal to correct a heavily wrong system clock.
But the used command (ntpdate) is deprecated and should be replaced by 'ntpd -gq' or 'sntp -Ss'. This is what I read here: http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate

Personal considerations follow.

IMO, a clean way to receive the suggestion could be change the default configuration in this way:
NTPCLIENT_CMD="ntpd"
NTPCLIENT_OPTS="-g -q"
and then introduce a ntp-wait step in the initscript.
It allows also to use the ntp configuration during boot, but could make the boot process appreciably slow.

A rough way could be simply change the default configuration as follow:
NTPCLIENT_CMD="sntp"
NTPCLIENT_OPTS="-s -S \
        0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org \
        2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
It's efect is more similar to the previous one.

Regards,
Sergio

Reproducible: Always

Steps to Reproduce:
1. Emerge and install net-misc/ntp
2. rc-update add ntp-client boot
3.
Actual Results:  
The initial time sinchronization is performed with the deprecated ntpdate command.

Expected Results:  
The suggestions given at http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate are followed.
Comment 1 SpanKY gentoo-dev 2012-02-13 16:09:30 UTC

*** This bug has been marked as a duplicate of bug 21527 ***