sys-apps/util-linux-2.25.2-r2 >>> sys-apps/util-linux-2.26.2 Breaks system date/time, substantially in one case. /etc/conf.d/hwclock has clock="local", clock_systohc="NO", and clock_hctosys="YES" What's consistent about these systems is they are dual boot with Windows and that clock is set to "local". The x86 system has not been booted into Windows in some time. The system time on the x86 laptop migrated forward a day. The settings are same on a newer amd64 system. There Windows is used occasionally, system time was noticed after boot to being into... February 2016. hwclock --debug shows rtc is fine, established in /dev and correct time/date. The problem begins with util-linux-2.26.2 upgrade when openrc is calling hwclock --systz --adjust --hctosys --localtime. Resolution by downgrading to util-linux-2.25.2-r2. Reproducible: Always Steps to Reproduce: 1.emerge sys-apps/util-linux-2.26.2 2. 3. Actual Results: Incorrect system date and time. Expected Results: Correct system date and time as in <=util-linux-2.25.2-r2 $ emerge --info sys-apps/util-linux Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/x86/13.0/desktop, gcc-4.8.4, glibc-2.20-r2, 3.18.12-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-3.18.12-gentoo-i686-Genuine_Intel-R-_CPU_T2500_@_2.00GHz-with-gentoo-2.2 KiB Mem: 2068248 total, 418392 free KiB Swap: 4096536 total, 4096536 free Timestamp of repository gentoo: Sat, 10 Oct 2015 00:45:01 +0000 sh dash 0.5.7.4 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.1 i686-pc-linux-gnu [disabled] app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.8.4::gentoo, 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://i5/gentoo-portage priority: -1000 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 0 x-portage location: /usr/local/portage masters: gentoo priority: 1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=prescott -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=y" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss emerald encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv icu jpeg laptop lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg ncurses nls nptl nvidia objc ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sasl sdl seccomp session spell sse sse2 sse3 ssl startup-notification svg symlink tcpd threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= sys-apps/util-linux-2.25.2-r2::gentoo was built with the following: USE="cramfs ncurses nls pam suid udev unicode -caps -fdformat -python (-selinux) -slang -static-libs -systemd -test -tty-helpers" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_4 -python3_3"
This is probably due to a bad value in /etc/adjtime, combined with a change in hwclock behavior. Can you provide the /etc/adjtime file from your affected systems? Util-linux 2.26 Release Notes ============================= The command hwclock(8) uses the drift correction for all relevant operations and it is unnecessary to specify --adjust on the hwclock command line now. The command hwclock(8) does not automatically (re)calculate the drift factor on --systohc to avoid several problems (ntpd with '11 minute mode', for example), but the new command-line option --update-drift has to be explicitly used to force hwclock(8) to update /etc/adjtime. For more details see the hwclock(8) man page.
Thanks, I see that now after grepping through the various 2.26.* release files. I see a reference after the fact in the man page as well. I noticed a flag var $clock_adjfile in /etc/init.d/hwclock that isn't referenced in my copy of /etc/conf.d/hwclock, so I just renamed the default /etc/adjtime after a re-emerge of sys-apps/util-linux-2.26.2 and a reboot. Time and date seem fine after that. Maybe a slight adjustment to /etc/conf.d/hwclock in openrc to indicate? Or maybe just a postinst note for sys-apps/util-linux. Here's the prior Dec 22 2012 /etc/adjtime from the amd64 system: 9679.784197 1356224253 0.000000 1356224253 UTC