Bug 8177 - hwclock utility broken on UX
Summary: hwclock utility broken on UX
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: util-linux
Version: 6.1
Hardware: alpha
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Erik Troan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-01-04 23:30 UTC by michal
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-02-09 01:34:39 UTC
Embargoed:


Attachments (Terms of Use)

Description michal 2000-01-04 23:30:41 UTC
The current version of 'hwclock' when supplied with -A flag (or
equivalently --arc) returns on UX, a.k.a. Ruffian, shfited back
by 20 years.  As startup files in 6.1 do that regardless of
settings in /etc/sysconfig/clock, which likely should be classified
as a bug on its own, then 6.1 installation on UX ends up with
a funny time.

To add to an aggravation the maintainer of util-linux insists
that this a correct behaviour.  Technically he is right as a hardware
clock on UX indeed is somewhat unusual but this behaviour violates
a long established practice and a "principle of the least surprise";
users are NOT expected to memorize minutae of a hardware clock
implementation on particular boards.

An alternate implemenation of a function from clock/cmos.c, which restores
sanity, is included in an attached file.  It is not totally full-proof
as it may fail if /proc is not mounted, but then startup scripts
will have other problems to worry about.

Michal Jaegermann
michal

Comment 1 Jeff Johnson 2000-05-15 12:58:59 UTC
Sorry to bother again, but could you reply to this message with the
clock/cmos.c attached, as the file is not attached? A pointer to
a src rpm with your changes to util-linux is probably even a better
idea. Thanks.

Comment 2 Michal Jaegermann 2001-02-06 19:47:33 UTC
This old report got, in a sense, obsoleted by further developments.  The
current 'hwclock', from util-linux, is quite good at guessing clock types
on a hardware in question and there is in reality more than two of these. :-(
At least I do not know platforms where this guessing fails so the best
policy is _not_ to set -A, or -S, flag in startup scripts unless explicitely
requested in /etc/sysconfig/clock.  A default in this configuration file
should be "none".  In any case it is totally unacceptable overriding this
choice in /etc/rc.d/rc.sysinit because a boot via milo was detected.  The
later is a root cause of troubles on UX as it boots with milo and its clock
does not conform to ARC specifications.

I do not have this UX anymore but when I had it following the policy outlined
above was what was needed.  The only problems were showing during updates
when Red Hat tools were trying to "outsmart" me (see #17877).  Also for
quite a while Hard Data ships all its Alpha machines with a preloaded
software (i.e. nearly all of these) configured according to this policy
and I still have to hear complaints because of that. :-)  It was not
possible to do that in the past when clock utilities were not smart enough.



Note You need to log in before you can comment on or make changes to this bug.