|
From: | Paul Eggert |
Subject: | Re: boot time on Linux |
Date: | Wed, 9 Aug 2023 12:31:46 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
[For those cc'ed, the thread's at <https://bugs.gnu.org/64937#142>.] On 2023-08-09 07:29, Bruno Haible wrote:
And on Alpine Linux, while /var/run/utmp is empty, its time stamp is essentially the boot time. The approach used by Emacs, namely to look at the time stamp of /var/run/random-seed, is therefore essentially one of the best approaches. It just needs to also look at /var/lib/systemd/random-seed and - on Alpine Linux - /var/run/utmp .
Thanks for looking into this. Clearly Emacs had some catching up to do, since it was using a location for the random-seed file that current GNU/Linux distros no longer use. To try to fix this I installed the attached patch to Emacs master on Savannah.
This patch does not address the problem for Alpine, nor I suspect for Android. I suppose Alpine could use the timestamp of /var/run/utmp (or is that /run/utmp?) but I don't know how 'configure' would reliably detect it's being built or cross-built for Alpine. I'll cc this to Natanael Copa, who does the Alpine ports for Emacs, to see whether he can give advice.
Also, I don't know how Android records boot time so I'll cc this to Po Lu, the main developer for Emacs on Android.
0001-Adjust-to-random-seed-move.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |