Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146912 - stabilize net-misc/ntp-4.2.2_p3
Summary: stabilize net-misc/ntp-4.2.2_p3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-09 00:55 UTC by SpanKY
Modified: 2006-11-26 08:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2006-09-09 00:55:35 UTC
last stable is over two years old ... time to shunt that crap
Comment 1 Christoph Mende (RETIRED) gentoo-dev 2006-09-09 01:27:30 UTC
- emerges fine on amd64
- passes multilib-strict
- passes collision-test
- works

Portage 2.1.1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3,
2.6.17-ck1-r3 x86_64)
=================================================================
System uname: 2.6.17-ck1-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.4
Last Sync: Fri, 08 Sep 2006 20:50:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-test distlocks metadata-transfer
multilib-strict parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/ "
LANG="en_US.ISO8859-1"
LC_ALL="en_US.ISO8859-1"
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa amr asf avi berkdb bitmap-fonts bzip2 cairo
cdinstall cdparanoia cdr cli crypt cups dbus divx dlloader dri dvd dvdr dvdread
elibc_glibc emboss encode expat fam firefox fortran gdbm gif glut gpm gstreamer
gtk gtk2 hal imagemagick input_devices_evdev input_devices_keyboard isdnlog
jpeg kernel_linux lcms ldap libg++ lirc lirc_devices_inputlirc mad mikmod mng
mp3 mpeg musicbrainz ncurses nls nptl nptlonly ogg opengl pam pcre pdflib php
png ppds pppd quicktime readline reflection sdl session socks5 spl ssl svg tcpd
tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l v4l2
video_cards_fglrx vorbis wmp x264 xine xinerama xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2006-09-09 02:43:13 UTC
amd64 pwns the rest
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2006-09-09 03:28:53 UTC
1) emerges fine
2) passes collision test
3) seems to pass test suite
4) works (both as service and stand-alone)

Portage 2.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa arts artworkextra asf audiofile avi bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds emacs emboss encode esd evo exif expat fam fat fbcon ffmpeg firefox fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick imap ipv6 isdnlog java javascript jikes jpeg jpeg2k ldap leim libg++ lm_sensors mad maildir matroska mbox mikmod mime mmx mmxext mng mono mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus nptl nptlonly nsplugin nvidia objc ogg opengl pam pcre pdf pdflib perl plotutils pmu png ppds pppd preview-latex print python qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd tetex theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb vcd videos vorbis win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_de userland_GNU video_cards_radeon video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 nixnut (RETIRED) gentoo-dev 2006-09-09 11:11:26 UTC
Stable on ppc
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2006-09-09 13:06:38 UTC
x86 done
Comment 6 Brent Baude (RETIRED) gentoo-dev 2006-09-10 13:38:34 UTC
ppc64 stable
Comment 7 Thomas Cort (RETIRED) gentoo-dev 2006-09-10 14:11:24 UTC
alpha stable.
Comment 8 cilly 2006-09-10 15:28:44 UTC
Seems not to work with ip-changes, even if the following scripts are used:

ip-up.local:
 
### NTPD
### - start while first time online, populate on ip-change
 
if [ "$1" = "ppp0" ]  &&  [ -x /etc/init.d/ntpd ]; then
 
        if [ -n "`pidof ntpd`" ] && \
           [ -x /etc/ppp/ntp-populate ]; then
                /etc/ppp/ntp-populate | ntpdc
        else
                /etc/init.d/ntpd start
        fi
fi
 
ntp-populate:
 
#!/bin/bash
# ntp-populate
#
# Adds all associations and peers into a running ntpd.
# Call this script when the network comes up to add associations with
# Internet time servers.
#
# Usage:
#   ntp-populate | ntpdc
#  (Pipe output to ntpdc)
#
# Limitations:
#  * Assumes NTP configuration file is /etc/ntp.conf.
#  * Does not restore fudge statements or iburst options. 
 
NTP_CONF=/etc/ntp.conf
 
# See if ntpd is running.
if [ -z "`pidof ntpd`" ]; then
        # It's not running.
        exit 0
fi
 
# Locate name of key file.
KEYS=`sed -n -e '/^keys / s/^keys  *\([^ #]*\).*/\1/p' /etc/ntp.conf`
set -- $(grep "^[[:digit:]]" < $KEYS)
echo keyid $1
echo passwd $3
 
# Locate "server" commands in NTP's configuration file, and generate
# "addserver" directives.
awk '/^server[[:blank:]]/ { if ($2 !~ /^127.127./) print "addserver " $2}'  $NTP_CONF
awk '/^server[[:blank:]]/ { if ($2 !~ /^127.127./) print "restrict " $2 " 255.255.255.255 noquery nomodify notrap"}'  $NTP_CONF
# Locate "peer" commands in NTP's configuration file, and generate
# "addpeer" directives.
awk '/^peer[[:blank:]]/ { print "addpeer " $2 }' $NTP_CONF
 
echo quit
 
ip-down.local:
 
### NTPD
### - remove remote associations from NTP, but keep NTP running
###   to maintain the clock discipline.
 
if [ "$1" = "ppp0" ]  &&  \
   [ -x /etc/init.d/ntpd ]  &&  \
   [ -x /etc/ppp/ntp-clear ]; then
        etc/ppp/ntp-clear | ntpdc
fi
 
ntp-clear:
 
#!/bin/bash
# ntp-clear
#
# Removes all associations from running ntpd.
# Call this script when the network goes down to remove associations with
# Internet time servers.
#
# Usage:
#   ntp-clear | ntpdc
#  (Pipe output to ntpdc)
#
# Limitations:
#  * Assumes NTP configuration file is /etc/ntp.conf.
 
NTP_CONF=/etc/ntp.conf
 
# See if ntpd is running.
if [ -z "`pidof ntpd`" ]; then
        # It's not running.
        exit 0
fi
 
# Locate name of key file.
KEYS=`sed -n -e '/^keys / s/^keys  *\([^ #]*\).*/\1/p' /etc/ntp.conf`
set -- $(grep "^[[:digit:]]" < $KEYS)
echo keyid $1
echo passwd $3
 
# Use ntpdc to generate unconfig commands.
# Does so by extracting the first column from the peer billboard, which
# are the time server IP addresses.
 
ntpdc -n -p  \
  | awk '!/==/ && !/^ / { if (substr($1,2) !~ /^127.127./)
                               print "unconfig " substr($1,2) }'
echo quit
Comment 9 Jason Wever (RETIRED) gentoo-dev 2006-09-10 20:01:54 UTC
SPARC stable
Comment 10 Tobias Scherbaum (RETIRED) gentoo-dev 2006-09-23 08:36:00 UTC
hppa stable
Comment 11 SpanKY gentoo-dev 2006-11-26 08:41:03 UTC
all set