Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403255 - net-misc/ntp - ntpdate is deprecated
Summary: net-misc/ntp - ntpdate is deprecated
Status: RESOLVED DUPLICATE of bug 21527
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: http://support.ntp.org/bin/view/Dev/D...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-12 10:46 UTC by Sergio
Modified: 2012-02-13 16:09 UTC (History)
0 users

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 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 ***