net-misc/rdate-1.4 has been in portage for at least 10 months, with no open bugs. 1.4-r1 may be considered for stable as well, although I've only used the init.d script twice thus far, both without problems.
arches: please stabilize net-misc/rdate-1.4-r1. It has been in ~arch for almost all of you for more than a year now. For a test procedure, emerge the package, and try this: echo {0,1,2}.pool.ntp.org | xargs -n1 host | awk '{print $4}' | sort | uniq | xargs rdate -p -t 1 Hopefully one of the servers near you will still support it. Sorry about the yucky test procedure, but only about 5% of the NTP servers still implement the rdate protocol (RFC868). From where I am, the following NTP servers implement it, and are accessible to me: 202.0.185.154, 24.124.0.253, 24.130.58.99 ppc64: I know your arch hasn't been on 1.4* at all, it seems it was dropped accidently a year ago, but I encourage you to test it anyway, and keep this bug handy for a month.
on x86: [ebuild N ] net-misc/rdate-1.4-r1 -ipv6 There were some warnings during compilation: rdate.c: In function `rdate': rdate.c:156: warning: passing arg 2 of `connect' from incompatible pointer type rdate.c:180: warning: passing arg 5 of `sendto' from incompatible pointer type rdate.c:190: warning: passing arg 5 of `recvfrom' from incompatible pointer type Not sure if this is easy to fix, anyway, the program runs fine with the given test procedure and a server I use to sync time and from which I know it should work.
Hrm, works on x86 here, your test procedure doesn't, though. Using hostx (provided by net-dns/host) instead of host, and changing $4 to $3: sif ~ # echo {0,1,2}.pool.ntp.org | xargs -n1 hostx | awk '{print $3}' | sort | uniq | xargs rdate -p -t 1 rdate: invalid option -- t Usage: rdate [-s] [-p] [-u] <host> ... sif ~ # rdate -p -t 1 84.16.227.199 rdate: invalid option -- t Usage: rdate [-s] [-p] [-u] <host> ... I'm assuming that this is ok though: sif ~ # rdate -p 202.0.185.154 [202.0.185.154] Sat May 20 16:21:16 2006 I can't test whether or not ipv6 works, but it didn't break anything else emerge --info Gentoo Base System version 1.6.14 Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r4 i686) ================================================================= System uname: 2.6.16-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.86GHz dev-lang/python: 2.4.2 dev-python/pycrypto: [Not Present] dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks sandbox sfperms strict test userpriv usersandbox" GENTOO_MIRRORS="ftp://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://gentoo.blueyonder.co.uk http://mirrors.blueyonder.co.uk/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib acpi alsa asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdda cddb cdparanoia cdr cjk cli crypt cscope cups curl daap dbus dlloader dri dvd dvdr emboss encode exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gd gdbm gif glut graphviz gstreamer gtk2 hal idn imagemagick imap isdnlog jack jpeg kdeenablefinal lcms libcaca libg++ libwww live lua mad maildir matroska mbox mikmod mmx mng motif mp3 mp4 mpeg ncurses nls nptl ogg opengl pam pcre pdf pdflib perl png pppd python quicktime readline real reflection ruby samba sdl session spell spl sse sse2 ssl svg svga tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vidix vorbis win32codecs x264 xine xorg xv xvid xvmc zlib video_cards_radeon video_cards_fglrx video_cards_vesa video_cards_ati input_devices_keyboard input_devices_mouse userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Stable on ppc
David Morgan: you compiled rdate-0.990821-r2 instead of 1.4-r1. Sander: thanks for the patch to clean up the warnings from email, I'll apply it later.
Oops, sorry - usually I only almost forget to use the new version. The new version works fine with +/-ipv6 too
SPARC'd
Created attachment 87337 [details] Build & test log with collision-protect on stable x86 system. unaffiliated ~ # rdate Usage: rdate [-s] [-p] [-u] [-l] [-t sec] <host> ... unaffiliated ~ # rdate 24.130.58.99 rdate: [24.130.58.99] Tue May 23 22:34:44 2006 Works fine on x86. Thanks, Samuli 'drac' Suominen
x86 done
Comment on attachment 87337 [details] Build & test log with collision-protect on stable x86 system. as said, x86 is done
mips doneth.
stable on ppc64
stable on alpha. Thanks Robin for providing the testcase.
A M D 6 4 STABLE
hppa/ia64: ping
Stable for hppa.
ia64 done, closing