The chrony configure script has an option to set the default value for hwclockfile.
> --with-hwclockfile=PATH Specify default path to hwclock(8) adjtime file
Setting this to /etc/adjtime would allow better integration with the hwclock command and systemd's timedatectl command, which use this file to track whether the hardware clock is kept in UTC or local time.
Setting this by default implies that it needs to be unset or overridden *everywhere else*. I would rather see this appended to a "default" /etc/chrony/chrony.conf based on USE=systemd if that is what is needed for or convenient for systemd users.
Would you be ok with adding hwclockfile to the default config file unconditionally? I really dislike adding systemd-specific behavior to a package that doesn't already have a systemd USE flag.
(In reply to Jeroen Roovers from comment #1)
> Setting this by default implies that it needs to be unset or overridden
> *everywhere else*. I would rather see this appended to a "default"
> /etc/chrony/chrony.conf based on USE=systemd if that is what is needed for
> or convenient for systemd users.
I was wrong. Setting --with-hwclockfile=PATH simply sets the default path to something other that an empty string, and does not enable or enable any features by default.
The bug has been closed via the following commit(s):
Author: Jeroen Roovers <email@example.com>
AuthorDate: 2020-08-31 10:04:20 +0000
Commit: Jeroen Roovers <firstname.lastname@example.org>
CommitDate: 2020-08-31 10:04:56 +0000
net-misc/chrony: Set default path for hwclockfile
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Jeroen Roovers <email@example.com>
net-misc/chrony/chrony-3.5.1-r1.ebuild | 1 +
net-misc/chrony/chrony-4.0_pre3.ebuild | 1 +
net-misc/chrony/chrony-9999.ebuild | 1 +
3 files changed, 3 insertions(+)