Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2001 11:28:08 -0400 (EDT)
From:      <khera@kciLink.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        lioux@freebsd.org
Subject:   ports/27617: ports/sysutils/clockspeed doesn't install leapsecs.dat
Message-ID:  <200105241528.f4OFS8280964@onceler.kciLink.com>

next in thread | raw e-mail | index | archive | help

>Number:         27617
>Category:       ports
>Synopsis:       clockspeed port needs leapsecs.dat
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 24 08:30:04 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Vivek Khera
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD onceler.kciLink.com 4.3-STABLE FreeBSD 4.3-STABLE #3: Wed May 2 13:09:53 EDT 2001 khera@yertle.kciLink.com:/u/yertle2/usr.obj/amd/onceler/u/onceler1/usr/src/sys/ONCELER i386

ports cvsup'd today

	
>Description:
	

the sntpclock program from the sysutils/clockspeed port reports time
that is off by about 22 seconds.  This just about corresponds with the
number of leap seconds added since the "epoch" used as the basis time.
the leapsecs.dat file should adjust for these, but it is not
installed.

however, even with the file installed, it still gets my clock off by
about 22 seconds from the reference ntp server...

>How-To-Repeat:

run sntpclock IP.OF.NTP.SERVER | clockview

the "after" time will be 22 seconds off from the before time, assuming that
your local clock is synchronized with the reference clock.

>Fix:

the following patch installs the leapsecs.dat file, but it doesn't
still solve my problem.  any ideas?

--- #Makefile~	Thu May 24 10:47:46 2001
+++ Makefile	Thu May 24 10:47:46 2001
@@ -37,5 +37,6 @@
 .endif
 	@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
 		${PREFIX}/etc/clockspeed
+	@${INSTALL_DATA} ${WRKSRC}/leapsecs.dat ${PREFIX}/etc/clockspeed
 
 .include <bsd.port.mk>
--- #pkg-plist~	Thu May 24 10:49:20 2001
+++ pkg-plist	Thu May 24 10:49:20 2001
@@ -4,6 +4,7 @@
 bin/sntpclock
 bin/taiclock
 bin/taiclockd
+etc/clockspeed/leapsecs.dat
 %%PORTDOCS%%share/doc/clockspeed/INSTALL
 %%PORTDOCS%%@dirrm share/doc/clockspeed
 @mode 0755
--- /dev/null	Thu May 24 10:51:24 2001
+++ files/patch-ae	Thu May 24 10:49:55 2001
@@ -0,0 +1,11 @@
+--- #leapsecs_read.c~	Thu May 24 10:40:43 2001
++++ leapsecs_read.c	Thu May 24 10:40:43 2001
+@@ -18,7 +18,7 @@
+   int i;
+   struct tai u;
+ 
+-  fd = open("/etc/leapsecs.dat",O_RDONLY | O_NDELAY);
++  fd = open("etc/clockspeed/leapsecs.dat",O_RDONLY | O_NDELAY);
+   if (fd == -1) {
+     if (errno != ENOENT) return -1;
+     if (leapsecs) free(leapsecs);
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105241528.f4OFS8280964>