From owner-freebsd-ports Thu May 24 8:30:17 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3787837B423 for ; Thu, 24 May 2001 08:30:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4OFU5V15248; Thu, 24 May 2001 08:30:05 -0700 (PDT) (envelope-from gnats) Received: from yertle.kciLink.com (yertle.kcilink.com [216.194.193.105]) by hub.freebsd.org (Postfix) with ESMTP id 0AD3037B422; Thu, 24 May 2001 08:28:11 -0700 (PDT) (envelope-from khera@kciLink.com) Received: from onceler.kciLink.com (onceler.kciLink.com [216.194.193.106]) by yertle.kciLink.com (Postfix) with ESMTP id BBE552E461; Thu, 24 May 2001 11:28:08 -0400 (EDT) Received: (from khera@localhost) by onceler.kciLink.com (8.11.3/8.11.3) id f4OFS8280964; Thu, 24 May 2001 11:28:08 -0400 (EDT) (envelope-from khera) Message-Id: <200105241528.f4OFS8280964@onceler.kciLink.com> Date: Thu, 24 May 2001 11:28:08 -0400 (EDT) From: Reply-To: khera@kciLink.com To: FreeBSD-gnats-submit@freebsd.org Cc: lioux@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/27617: ports/sysutils/clockspeed doesn't install leapsecs.dat Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 --- #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