Bug 9103

Summary: hwclock from util-linux doesn't override hwclock from busybox
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Diego <diego.ml>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Diego 2016-02-11 16:34:23 UTC
Installing util-linux-hwclock doesn't result in having hwclock from util-linux being used by default.
This is caused by a problem mentioned here:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-core/util-linux/util-linux.inc?h=jethro&id=jethro-14.0.0#n215

However this problem is just vaguely described, and has been reported in 2012:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-core/util-linux/util-linux.inc?id=cb2a93ee321a277beacc8e9df97a5dc85f66d221

It would be nice to either have that problem documented further, or hwclock from util-linux being used by default.

Being blocked forever by an unknown problem isn't wise IMHO.
Comment 1 Ross Burton 2016-04-11 20:38:49 UTC
That reduction of hwclock priority was added in this oe-classic commit:

commit 5e01906b8433bc6a8c03be2e31758589641124c9
Author: David Karlstrom <daka@thg.se>
Date:   Sat Jul 23 13:36:38 2005 +0000

    Updated to use update-alternatives and fix some FHS bugs

I'll submit a patch to fix this, if it hasn't been fixed in the last 11 years then we'll rediscover what the problem is.
Comment 2 Ross Burton 2016-04-13 11:47:21 UTC
Fixed in oe-core 2ea1a73d264173d9dd8978d82de0d53e2c2164d3.