[systemd-bugs] [Bug 89676] New: systemd-timesyncd When no --with-ntp-servers is provided ntp doesn't work. [PATCH]

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 19 06:36:53 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89676

            Bug ID: 89676
           Summary: systemd-timesyncd When no --with-ntp-servers is
                    provided ntp doesn't work. [PATCH]
           Product: systemd
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: costamagnagianfranco at yahoo.it
        QA Contact: systemd-bugs at lists.freedesktop.org

Created attachment 114470
  --> https://bugs.freedesktop.org/attachment.cgi?id=114470&action=edit
patch

Hi, as said in the title, I built systemd for yocto, without changing the
default ntp configuration.

seems that time1.google.com doesnt' work, at least timesyncd keeps switching
between google ntp servers with no luck.

changing to ntp pool fixes the issue.

Patch following
>From 0cf1d11dee4af9fe515c18b115874ce5f229d69d Mon Sep 17 00:00:00 2001
From: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Thu, 19 Mar 2015 14:32:41 +0100
Subject: [PATCH] When no --with-ntp-servers is provided default to
 pool.ntp.org rather than on the non-working time.google.com

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 29111f5..8c6a7f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1051,7 +1051,7 @@ AC_ARG_WITH(ntp-servers,
         AS_HELP_STRING([--with-ntp-servers=NTPSERVERS],
                 [Space-separated list of default NTP servers]),
         [NTP_SERVERS="$withval"],
-        [NTP_SERVERS="time1.google.com time2.google.com time3.google.com
time4.google.com"])
+        [NTP_SERVERS="pool.ntp.org 0.pool.ntp.org 1.pool.ntp.org
2.pool.ntp.org 3.pool.ntp.org"])

 AC_DEFINE_UNQUOTED(NTP_SERVERS, ["$NTP_SERVERS"], [Default NTP Servers])
 AC_SUBST(NTP_SERVERS)
-- 
2.1.0

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150319/fbf56ebe/attachment.html>


More information about the systemd-bugs mailing list