Pierre Labastie wrote:
Hi,

Has anybody tried update-leap from the ntp package? For me, it does not
work. There are two issues:
- the leap seconds filename is not read from /etc/ntp.conf. I had to
apply: sed '/\\S/s/"//g' -i /usr/sbin/update-leap (after installation.

I'm not sure what that does. I tried it on an older version (Jan 2015) and it did nothing.

Checking a newer version:

-    if (/^ *leapfile\s+"(\S+)"/) {
+    if (/^ *leapfile\s+(\S+)/) {

The older version did not have the quotes.

I did have a leapfile entry in the newer ntp.conf, but not the older one.

I did get the following when running on the newer system after the patch:

# update-leap
FORCE is <>
verifySHA is 0
EXPIRES <1496275200>  vs 1496091826
INFO: Not time to replace /etc/ntp.leapseconds

Removing /etc/ntp.leapseconds, I get:

# update-leap
/etc/ntp.conf specifies /etc/ntp.leapseconds as a leapfile, which is empty.
Can't open </etc/ntp.leapseconds>: No such file or directory
Will try and create that file.

and at that point it hangs.

Changing the url in update-leap update-leap gives:

# update-leap
/etc/ntp.conf specifies /etc/ntp.leapseconds as a leapfile, which is empty.
Can't open </etc/ntp.leapseconds>: No such file or directory
Will try and create that file.
INFO: Download of ftp://time.nist.gov/pub/leap-seconds.list succeeded
NOTICE: Installed new /etc/ntp.leapseconds from ftp://time.nist.gov/pub/leap-seconds.list

My conclusion is that we do need to massage that file on the ntp page.
It does appear that the perl construct File::Fetch does not handle https.

   -- Bruce

guess it would be enough to apply the same sed to
scripts/update-leap/update-leap.in in the source directory.
- the download hangs: I guess it is because the script tries to use
File::Fetch with an https url [1], but I am not sure. Anyway, changing the
url to the ftp one [2] allowed to download the file.

Should we write something to the book?

Regards
Pierre

[1] https://www.ietf.org/timezones/data/leap-seconds.list
[2] ftp://time.nist.gov/pub/leap-seconds.list

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to