#9068: update-leap for ntp does not work
-----------------------------+-------------------------
Reporter: pierre.labastie | Owner: blfs-book@…
Type: defect | Status: new
Priority: normal | Milestone: 8.1
Component: BOOK | Version: SVN
Severity: normal | Keywords:
-----------------------------+-------------------------
There are two issues:
- A perl regular expression which does not work with /etc/ntp.conf from
the book. The following perl RE is used for extracting the name of the
leap-seconds file from /etc/ntp.conf:
{{{
/^ *leapfile\s+"(\S+)"/
}}}
This suppose that the file occurs in a line of the form:
{{{
leapfile "/path/to/leap/seconds/file"
}}}
with explicit quotes. If, as we advise, the line is of the form:
{{{
leapfile /path/to/leap/seconds/file
}}}
the perl RE does not find the file. In the documentation, nothing says the
quotes should be there. And in examples from internet, some have quotes,
and some haven't...
- A download site, which is not accessible if some perl modules are not
built. For downloading the file, the script uses File::Fetch, which,
according to [http://search.cpan.org/~bingos/File-
Fetch-0.52/lib/File/Fetch.pm], is not set up for https urls. But the
default download site is [https://www.ietf.org/timezones/data/leap-
seconds.list], which make the download hang. Another one is given in a
comment in the script, but not used: [ftp://time.nist.gov/pub/leap-
seconds.list], but this one works, if used in place of the other...
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/9068>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page