Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2010 10:28:55 GMT
From:      Niclas Zeising <niclas.zeising@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/148836: Update to NTP in base system
Message-ID:  <201007221028.o6MAStnw098013@www.freebsd.org>
Resent-Message-ID: <201007221030.o6MAU5HI099274@freefall.freebsd.org>

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

>Number:         148836
>Category:       bin
>Synopsis:       Update to NTP in base system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 22 10:30:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Niclas Zeising
>Release:        FreeBSD 9-CURRENT
>Organization:
>Environment:
>Description:
The NTP distribution in the FreeBSD base system is almost two years old, and new releases of NTP from www.ntp.org has come since it was imported. The patch located at http://www.lysator.liu.se/~zeising/FreeBSD/ntp-update/ updates NTP to the latest version available at this time (4.2.6p2). Note that the patches are the same;
http://www.lysator.liu.se/~zeising/FreeBSD/ntp-update/ntpupdate.diff is uncompressed, while
http://www.lysator.liu.se/~zeising/FreeBSD/ntp-update/ntpupdate.diff.bz2 is compressed with bz2.
The patch contains both the update to the NTP source in src/contrib/ntp and updates to the make files in src/usr.sbin/ntp to make it build.
The patch can be applied, while standing in the src directory, with 
patch -p0 < ntpupdate.diff .
I believe the new version of NTP works, but it might require some testing. Note that in the new distribution the HTML docs are excluded from the build since they can be found on the internet. It is possible to reconnect them though.

The patch above can't be used for a vendor import of ntp, since it doesn't take into account the vendor area. To import it, download ntp-4.2.6p2.tar.gz from
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.6p2.tar.gz
unpack it, and then remove the following files and directories:
ElectricFence
ports
html
lib/isc/win32
ntpd/ntp_parser.y
as these are not needed for the build.
The file http://www.lysator.liu.se/~zeising/FreeBSD/ntp-update/ntpupdate-no-vendor.diff then contains only the updates to make files in src/usr.sbin/ntp which also needs to be applied when doing the vendor update. I can't give more specific instructions regarding the vendor update, as I don't know how it is done. I will post updates to FREEBSD-upgrade and FREEBSD-Xlist later.

Please test it, and import it. If something is unclear just contact me.
//Niclas
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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