Pullup ticket #4861 - requested by taca net/ntp4: build fix Revisions pulled up: - net/ntp4/Makefile 1.89 - net/ntp4/distinfo 1.24 - net/ntp4/patches/patch-aa deleted - net/ntp4/patches/patch-include-ntp__syscall.h 1.1 - net/ntp4/patches/patch-ntpd-ntpd.c 1.1 --- Module Name: pkgsrc Committed By: christos Date: Thu Oct 29 11:23:47 UTC 2015 Added Files: pkgsrc/net/ntp4/patches: patch-include-ntp__syscall.h patch-ntpd-ntpd.c Removed Files: pkgsrc/net/ntp4/patches: patch-aa Log Message: - rename patch-aa to follow not so new anymore convention - apply the "warmup" patch only on linux. should fix the build on netbsd-6 --- Module Name: pkgsrc Committed By: christos Date: Thu Oct 29 11:28:44 UTC 2015 Modified Files: pkgsrc/net/ntp4: Makefile distinfo Log Message: update checksum and bump revisiondiff -r1.87.2.1 -r1.87.2.2 pkgsrc/net/ntp4/Makefile
(bsiegert)
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.87.2.1 2015/10/27 19:07:02 bsiegert Exp $ | 1 | # $NetBSD: Makefile,v 1.87.2.2 2015/11/24 18:25:38 bsiegert Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= ntp-4.2.8p4 | 4 | DISTNAME= ntp-4.2.8p4 | |
5 | PKGREVISION= 1 | |||
5 | PKGNAME= ${DISTNAME:S/-dev-/-/} | 6 | PKGNAME= ${DISTNAME:S/-dev-/-/} | |
6 | CATEGORIES= net time | 7 | CATEGORIES= net time | |
7 | MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ | 8 | MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ | |
8 | 9 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.ntp.org/ | 11 | HOMEPAGE= http://www.ntp.org/ | |
11 | COMMENT= Network Time Protocol Version 4 | 12 | COMMENT= Network Time Protocol Version 4 | |
12 | 13 | |||
13 | CONFLICTS+= openntpd-[0-9]* | 14 | CONFLICTS+= openntpd-[0-9]* | |
14 | 15 | |||
15 | GNU_CONFIGURE= YES | 16 | GNU_CONFIGURE= YES | |
16 | USE_LIBTOOL= YES | 17 | USE_LIBTOOL= YES | |
17 | USE_TOOLS+= pax perl:run | 18 | USE_TOOLS+= pax perl:run |
@@ -1,10 +1,9 @@ | @@ -1,10 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.22.2.1 2015/10/27 19:07:02 bsiegert Exp $ | 1 | $NetBSD: distinfo,v 1.22.2.2 2015/11/24 18:25:38 bsiegert Exp $ | |
2 | 2 | |||
3 | SHA1 (ntp-4.2.8p4.tar.gz) = a30f61f87b219ab3613def9e27f5c8e91ce38b0a | 3 | SHA1 (ntp-4.2.8p4.tar.gz) = a30f61f87b219ab3613def9e27f5c8e91ce38b0a | |
4 | RMD160 (ntp-4.2.8p4.tar.gz) = 94ab0e190f37c55700978a1555473a308e7175e6 | 4 | RMD160 (ntp-4.2.8p4.tar.gz) = 94ab0e190f37c55700978a1555473a308e7175e6 | |
5 | SHA512 (ntp-4.2.8p4.tar.gz) = e5ad7b44921e49b5546aa804dc56c320a3a0beb32b0e6fde40c900bf5e3af40b354a0cecc869b4605b59b5ab58219b9940789b50d747e0f5b50b4e73513d9f23 | 5 | SHA512 (ntp-4.2.8p4.tar.gz) = e5ad7b44921e49b5546aa804dc56c320a3a0beb32b0e6fde40c900bf5e3af40b354a0cecc869b4605b59b5ab58219b9940789b50d747e0f5b50b4e73513d9f23 | |
6 | Size (ntp-4.2.8p4.tar.gz) = 7104852 bytes | 6 | Size (ntp-4.2.8p4.tar.gz) = 7104852 bytes | |
7 | SHA1 (patch-aa) = b247569339d09a88f2e143e355033ce7635ffe92 | 7 | SHA1 (patch-include-ntp__syscall.h) = b247569339d09a88f2e143e355033ce7635ffe92 | |
8 | SHA1 (patch-configure) = 21466ffa5d0334957a1a93b2a99087e7edaaa4d5 | 8 | SHA1 (patch-ntpd-ntpd.c) = 5a5bf9c8939752e1b3f5d04cea3daabdc34081cf | |
9 | SHA1 (patch-sntp_configure) = 38357046af0f0c1aeb8b57bb9c653e330d3feadd | |||
10 | SHA1 (patch-sntp_loc_pkgsrc) = 6e46ffc0cc2afcfdc1d01297cbe04cb80d103575 | 9 | SHA1 (patch-sntp_loc_pkgsrc) = 6e46ffc0cc2afcfdc1d01297cbe04cb80d103575 |
$NetBSD: patch-include-ntp__syscall.h,v 1.1.2.2 2015/11/24 18:25:38 bsiegert Exp $
--- include/ntp_syscall.h.orig 2011-03-31 10:03:53.000000000 +0000
+++ include/ntp_syscall.h
@@ -10,6 +10,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))
$NetBSD: patch-ntpd-ntpd.c,v 1.1.2.2 2015/11/24 18:25:38 bsiegert Exp $
Apply the stupid glibc "warmup" only on linux
--- ntpd/ntpd.c.orig 2015-10-21 12:14:24.000000000 -0400
+++ ntpd/ntpd.c 2015-10-29 07:20:41.000000000 -0400
@@ -32,7 +32,9 @@
# ifdef HAVE_PTHREAD_H
# include <pthread.h>
# endif
-# define NEED_PTHREAD_WARMUP
+# ifdef __linux__
+# define NEED_PTHREAD_WARMUP
+# endif
#endif
#ifdef HAVE_UNISTD_H