On 30/03/2017 23:18, Bruce Dubbs wrote:
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.

OK, will file a ticket, and try to work on it...

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