[oe-commits] org.oe.dev fixing ntp building for uclibc
woglinde2 commit
openembedded-commits at lists.openembedded.org
Sat Jul 7 18:05:10 UTC 2007
fixing ntp building for uclibc
discussion about the problem is here
https://lists.ntp.org/pipermail/bugs/2007-March/005578.html
and the sugesstion for the fix is from here
http://blackfin.uclinux.org/gf/project/uclinux-dist/scmsvn/?action=browse&path=%2Ftrunk%2Fuser%2Fntp%2Futil%2Ftickadj.c&view=markup
Author: woglinde2 at openembedded.org
Branch: org.openembedded.dev
Revision: 32f3152ef198ae19e34181438504621d6e5c0270
ViewMTN: http://monotone.openembedded.org/revision.psp?id=32f3152ef198ae19e34181438504621d6e5c0270
Files:
1
packages/ntp/ntp-4.2.2p3/tickadj.c.patch
packages/ntp/ntp_4.2.2p3.bb
Diffs:
#
# mt diff -rf2cf538e1330097c3562ce813af4b6958ab92581 -r32f3152ef198ae19e34181438504621d6e5c0270
#
#
#
# add_file "packages/ntp/ntp-4.2.2p3/tickadj.c.patch"
# content [494ebb057688fef34bcf767bad768b5563fe8cfe]
#
# patch "packages/ntp/ntp_4.2.2p3.bb"
# from [6101494a76d050c7b395badf7ba8e05640523149]
# to [18d53e60ac76e13f601d6679f6b944f33aba70c4]
#
============================================================
--- packages/ntp/ntp-4.2.2p3/tickadj.c.patch 494ebb057688fef34bcf767bad768b5563fe8cfe
+++ packages/ntp/ntp-4.2.2p3/tickadj.c.patch 494ebb057688fef34bcf767bad768b5563fe8cfe
@@ -0,0 +1,32 @@
+Index: ntp-4.2.2p3-r0/ntp-4.2.2p3/util/tickadj.c
+===================================================================
+--- ntp-4.2.2p3/util/tickadj.c 2004-02-25 06:58:33.000000000 +0100
++++ ntp-4.2.2p3/util/tickadj.c 2007-07-07 01:00:54.000000000 +0200
+@@ -21,7 +21,8 @@
+ # include <unistd.h>
+ #endif /* HAVE_UNISTD_H */
+
+-#ifdef HAVE___ADJTIMEX /* Linux */
++/* proper handling here has been moved to upstream ntp bugzilla */
++#ifdef linux
+
+ #include <sys/timex.h>
+ struct timex txc;
+@@ -91,7 +92,7 @@
+ }
+
+ if (!errflg) {
+- if (__adjtimex(&txc) < 0)
++ if (adjtimex(&txc) < 0)
+ perror("adjtimex");
+ else if (!quiet)
+ printf("tick = %ld\ntick_adj = %d\n",
+@@ -146,7 +147,7 @@
+ #endif
+ }
+
+- if (__adjtimex(&txc) < 0)
++ if (adjtimex(&txc) < 0)
+ {
+ perror("adjtimex");
+ }
============================================================
--- packages/ntp/ntp_4.2.2p3.bb 6101494a76d050c7b395badf7ba8e05640523149
+++ packages/ntp/ntp_4.2.2p3.bb 18d53e60ac76e13f601d6679f6b944f33aba70c4
@@ -1,7 +1,8 @@ SRC_URI = "http://www.eecis.udel.edu/~nt
require ntp.inc
SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \
file://ipv6only-workaround.patch;patch=1 \
+ file://tickadj.c.patch;patch=1 \
file://ntpd \
file://ntp.conf \
file://ntpdate"
More information about the Openembedded-commits
mailing list