Bug 13981

Summary: busybox hwclock not working
Product: [Runtime] General Runtime Reporter: tf <tf+bugs.yocto>
Component: General RuntimeAssignee: Sakib Sajal <sakib.sajal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: randy.macleod, ross.burton
Version: 3.1   
Target Milestone: 3.2 M2   
Hardware: All   
OS: Multiple   
Whiteboard: backport
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description tf 2020-07-13 02:11:13 UTC
The hwclock tool provided by busybox doesn't work with recent glibc (2.31) due to deprecation of the setttimeofday() call. This impacts dunfell and newer.

The upstream bug is https://bugs.busybox.net/show_bug.cgi?id=12756, but no fix.
Comment 1 Ross Burton 2020-07-16 07:39:51 UTC
Calling it out explicitly: the util-linux fix with explanation is at https://github.com/karelzak/util-linux/commit/cd781c405be82540484da3bfe3d3f17a39b8eb5c
Comment 2 Sakib Sajal 2020-07-30 08:45:58 UTC
fixed on oe-core:

commit 524fff214a6adc823a99358248b3891ba7c0b915
Author: Sakib Sajal <sakib.sajal@windriver.com>
Date:   Tue Jul 21 13:59:45 2020 -0400

    busybox: make hwclock compatible with glibc 2.31
Comment 3 Sakib Sajal 2020-07-30 08:46:41 UTC
fixed on oe-core:

commit 524fff214a6adc823a99358248b3891ba7c0b915
Author: Sakib Sajal <sakib.sajal@windriver.com>
Date:   Tue Jul 21 13:59:45 2020 -0400

    busybox: make hwclock compatible with glibc 2.31
Comment 4 Sakib Sajal 2020-07-30 08:48:25 UTC
see above comment