Bug 13981 - busybox hwclock not working
Summary: busybox hwclock not working
Status: RESOLVED FIXED
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: 3.1
Hardware: All Multiple
: High normal
Target Milestone: 3.2 M2
Assignee: Sakib Sajal
QA Contact:
URL:
Whiteboard: backport
Depends on:
Blocks:
 
Reported: 2020-07-13 02:11 UTC by tf
Modified: 2020-07-30 08:48 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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