Commit a05bb581 authored by Martin Banky's avatar Martin Banky Committed by Peter Korsgaard
Browse files

ntp: convert to autotargets and bump to 4.2.6p2



Also added additional options for ntp and fixed a build issue when
IPv6 support is not available.

[Peter: small tweaks]
Signed-off-by: default avatarMartin Banky <Martin.Banky@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 6b899a43
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -24,8 +24,8 @@
	libdnet, libevent, libglade, libgtk2, libiconv, libidn, libnl,
	liboil, libpcap, libpng, libungif, libxml2, libxslt, lighttpd,
	lite, m4, mdadm, metacity, mysql_client, nano, nbd, ncftp,
	neon, netperf, ntfsprogs, openntpd, openssh, openvpn, oprofile,
	pango, pcre, php, prboom, radvd, qt, samba, sdl_sound,
	neon, netperf, ntfsprogs, ntp, openntpd, openssh, openvpn,
	oprofile, pango, pcre, php, prboom, radvd, qt, samba, sdl_sound,
	shared-mime-info, speex, sqlite, squashfs, strace, taglib,
	tcpdump, tiff, tn5250, udev, udpcast, usbmount, usbutils,
	which, xlib_libX11, zlib
+44 −0
Original line number Diff line number Diff line
@@ -11,3 +11,47 @@ config BR2_PACKAGE_NTP_SNTP
	depends on BR2_PACKAGE_NTP
	help
	  Simple network time protocol program

config BR2_PACKAGE_NTP_NTP_KEYGEN
	bool "ntp-keygen"
	depends on BR2_PACKAGE_NTP
	help
	  Create a NTP host key

config BR2_PACKAGE_NTP_NTP_WAIT
	bool "ntp-wait"
	depends on BR2_PACKAGE_MICROPERL
	depends on BR2_PACKAGE_NTP
	help
	  ntp-wait waits until the locally running ntpd is in state 4
	  (synchronized). This could be useful at boot time, to delay the
	  boot sequence until after "ntpd -g" has set the time.

config BR2_PACKAGE_NTP_NTPDC
	bool "ntpdc"
	depends on BR2_PACKAGE_NTP
	help
	  The ntpdc utility program is used to query an NTP daemon about
	  its current state and to request changes in that state.

config BR2_PACKAGE_NTP_NTPQ
	bool "ntpq"
	depends on BR2_PACKAGE_NTP
	help
	  The ntpq utility program is used to query NTP servers requesting
	  information about current state and/or changes in that state.

config BR2_PACKAGE_NTP_NTPTRACE
	bool "ntptrace"
	depends on BR2_PACKAGE_MICROPERL
	depends on BR2_PACKAGE_NTP
	help
	  ntptrace is a perl script that uses the ntpq utility program to
	  follow the chain of NTP servers from a given host back to the
	  primary time source

config BR2_PACKAGE_NTP_TICKADJ
	bool "tickadj"
	depends on BR2_PACKAGE_NTP
	help
	  set time-related kernel variables
+0 −36
Original line number Diff line number Diff line
Fixes the MOD_NANO build failure

ntp_loopfilter.c: In function 'local_clock':
ntp_loopfilter.c:571: error: 'MOD_NANO' undeclared (first use in this function)
ntp_loopfilter.c:571: error: (Each undeclared identifier is reported only once
ntp_loopfilter.c:571: error: for each function it appears in.)
ntp_loopfilter.c: In function 'loop_config':
ntp_loopfilter.c:896: error: 'MOD_NANO' undeclared (first use in this function)

Taken from
http://cvs.fedoraproject.org/viewvc/devel/ntp/ntp-4.2.4p7-nano.patch?revision=1.1&content-type=text/plain&view=co

See the discussion at
https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/412242 for more
details and links. The below fix is not a correct fix, but only a
workaround. The real fix required changes to kernel/libc headers.

Index: ntp-4.2.4p5/include/ntp_syscall.h
===================================================================
--- ntp-4.2.4p5.orig/include/ntp_syscall.h	2010-05-14 17:34:48.000000000 +0200
+++ ntp-4.2.4p5/include/ntp_syscall.h	2010-05-14 17:35:13.000000000 +0200
@@ -14,6 +14,14 @@
 # include <sys/timex.h>
 #endif
 
+#if defined(ADJ_NANO) && !defined(MOD_NANO)
+#define MOD_NANO ADJ_NANO
+#endif
+
+#if defined(ADJ_TAI) && !defined(MOD_TAI)
+#define MOD_TAI ADJ_TAI
+#endif
+
 #ifndef NTP_SYSCALLS_LIBC
 #ifdef NTP_SYSCALLS_STD
 # define ntp_adjtime(t)		syscall(SYS_ntp_adjtime, (t))
+0 −24
Original line number Diff line number Diff line
[PATCH] ntpd: fix build without ipv6 support

ntp_io.c was checkin the non-existing DISABLE_IPV6 define rather
than WANT_IPV6 as defined in config.h, breaking the build if
the toolchain doesn't have ipv6 support.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 ntpd/ntp_io.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: ntp-4.2.4p5/ntpd/ntp_io.c
===================================================================
--- ntp-4.2.4p5.orig/ntpd/ntp_io.c
+++ ntp-4.2.4p5/ntpd/ntp_io.c
@@ -55,7 +55,7 @@
  * Set up some macros to look for IPv6 and IPv6 multicast
  */
 
-#if defined(ISC_PLATFORM_HAVEIPV6) && !defined(DISABLE_IPV6)
+#if defined(ISC_PLATFORM_HAVEIPV6) && defined(WANT_IPV6)
 
 #define INCLUDE_IPV6_SUPPORT
 
Loading