Hi, I've recenctly upgraded my linux distribution (archlinux) that provides now gcc 9.3.0 and glibc 2.31. Since the rebuild of busybox, hwclock returns an error like this: # busybox hwclock --systz -u hwclock: settimeofday: Invalid argument It might be linked to glibc 2.31. I've found a related hwclock bug report in util-linux: https://github.com/karelzak/util-linux/commit/cd781c405be82540484da3bfe3d3f17a39b8eb5c Could you please have a look and let me know what other information I need to provide? Thanks Regards, V.
Created attachment 8546 [details] hwclock: make glibc v2.31 compatible (Fixes: 12756) I have attached the patch that makes hwclock compatible with glibc v2.31.
Thank you very much for the patch. It looks ok on my side. Cheers, V.
Thank you Valere for looking into it.
This bug has been marked as RESOLVED FIXED, however I can't find the corresponding commit in the git. Could someone please point me at it? Thanks
Well, I tought that the patch provided would be integrated. I have probably misunderstood => reopening.
This has been fixed by the following commit: commit 1a5d6fcbb5e606ab4acdf22afa26361a25f1d43b Author: Eddie James <eajames@linux.ibm.com> Date: Mon Aug 10 09:59:02 2020 -0500 hwclock: Fix settimeofday for glibc v2.31+ The glibc implementation changed for settimeofday, resulting in "invalid argument" error when attempting to set both timezone and time with a single call. Fix this by calling settimeofday twice Signed-off-by: Eddie James <eajames@linux.ibm.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Marking the bug as resolved.