Bug 9575 - Missing dependency on ntp-client?
Summary: Missing dependency on ntp-client?
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Olav Vitters
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 605
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-31 12:48 CEST by Reinout van Schouwen
Modified: 2013-10-25 17:11 CEST (History)
2 users (show)

See Also:
Source RPM: gnome-control-center
CVE:
Status comment:


Attachments

Description Reinout van Schouwen 2013-03-31 12:48:24 CEST
Description of problem:
In the Date & Time settings, network time can be enabled without ntp-client being installed. It appears to work only if ntp-client is installed, but g-c-c does not require ntp-client.

Version-Release number of selected component (if applicable):
3.6.3

How reproducible:
Always

Steps to Reproduce:
1. Go to Settings > Date & Time
2. Switch Network Time to On
3.


Reproducible: 

Steps to Reproduce:
Thierry Vignaud 2013-03-31 15:09:25 CEST

Assignee: bugsquad => olav

Comment 1 Pierre Jarillon 2013-04-07 17:06:21 CEST
Please, have a look to
http://en.wikipedia.org/wiki/Ntpdate
and the whole thread
https://www.mageia.org/pipermail/mageia-dev/2013-February/022737.html
especially
https://www.mageia.org/pipermail/mageia-dev/2013-February/022746.html

If you want always call ntpdate, use alias ntpdate='ntpd -gq'
IMO, this bug report should be closed if these explanations are correct.

CC: (none) => jarillon

Comment 2 Reinout van Schouwen 2013-04-07 20:08:56 CEST
@1: how is this related to my bug report? One way or another, the Network Time switch should just work.
Comment 3 Pablo Saratxaga 2013-05-16 11:06:00 CEST
currently ntp package (ntpd server) requires ntp-client (ntpdate); however ntpdate cannot work if ntpd is running.

ntpdate synchronizes date once; while ntpd does it continously (eg they are similar to anacron vs cron, or cache dns vs full named setup).

so imho "ntp" package should also provide "ntp-client", and an ntpdate script be provided in "ntp" package to allow one-shot run (in case ntpd is not running), or tell the daemon to do a synchronization now (if it is running)

CC: (none) => pablo

Pablo Saratxaga 2013-05-20 14:54:50 CEST

Hardware: x86_64 => All

Comment 4 Pablo Saratxaga 2013-06-06 14:58:03 CEST
actually "gnome-control-center datetime" only requires systemd (the communication is done trough dbus).

it is systemd that does the necessary; of course, for NTP support the proper packages must be installed.

Having a requirement for "ntp" package in the gnome-control-center is imho wrong as it would be needed only if you want to use ntp; there are already too much unconditional requirements that are most of the time not used.

the distribution tool to set the date (drakclock) does triggers the right package if needed and do the right thing.

maybe you can propse an enhancement to systemd that if a request to use ntp is set trough dbus, and ntpd or equivalent is not present, then push a message to a packagekit service to obtain the package?

PS: I also just submitted a patch that will make drakclock cooperate (by using the approrpaite systemd dbus service) with gnome-control-center and other date/time tools; see on bug #6056

Depends on: (none) => 605

Comment 5 Reinout van Schouwen 2013-06-13 22:39:07 CEST
(In reply to Pablo Saratxaga from comment #4)

> Having a requirement for "ntp" package in the gnome-control-center is imho
> wrong as it would be needed only if you want to use ntp; there are already
> too much unconditional requirements that are most of the time not used.

At least, a "suggests" is in desirable. And, if NTP isn't available, the NTP switch shouldn't pretend to work.

> PS: I also just submitted a patch that will make drakclock cooperate (by
> using the approrpaite systemd dbus service) with gnome-control-center and
> other date/time tools; see on bug #6056

Nice :)
Comment 6 Olav Vitters 2013-10-22 20:21:46 CEST
Submitted gnome-control-center-3.10.1-3.mga4 with suggests on ntp.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 7 David Walser 2013-10-25 17:11:42 CEST
We're switching to chrony as the default ntp client for Mageia 4, so a suggests on ntp probably isn't appropriate.

Note You need to log in before you can comment on or make changes to this bug.