diff options
Diffstat (limited to 'package/ntp')
-rw-r--r-- | package/ntp/ntp-4.2.4_p5-nano.patch | 36 | ||||
-rw-r--r-- | package/ntp/ntp-optional-ipv6.patch | 24 |
2 files changed, 60 insertions, 0 deletions
diff --git a/package/ntp/ntp-4.2.4_p5-nano.patch b/package/ntp/ntp-4.2.4_p5-nano.patch new file mode 100644 index 000000000..f4097ee56 --- /dev/null +++ b/package/ntp/ntp-4.2.4_p5-nano.patch @@ -0,0 +1,36 @@ +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)) diff --git a/package/ntp/ntp-optional-ipv6.patch b/package/ntp/ntp-optional-ipv6.patch new file mode 100644 index 000000000..20d6edfad --- /dev/null +++ b/package/ntp/ntp-optional-ipv6.patch @@ -0,0 +1,24 @@ +[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 + |