From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.comp.lib.gnulib.bugs,gmane.emacs.devel Subject: Re: boot time on Linux Date: Wed, 09 Aug 2023 23:06:14 +0200 Message-ID: <14335811.r4RsopIx6d@nimes> References: <87tttmpt5h.fsf@turtle.gmx.de> <3732835.vtg8X0x55z@nimes> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22969"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Robert Pluim , bug-gnulib@gnu.org, =?ISO-8859-1?Q?P=E1draig?= Brady , Sven Joachim , 64937@debbugs.gnu.org, Natanael Copa , Po Lu , Emacs Development , Thorsten Kukuk To: Paul Eggert Original-X-From: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Wed Aug 09 23:06:55 2023 Return-path: Envelope-to: gnu-bug-gnulib@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qTqOM-0005kY-B7 for gnu-bug-gnulib@m.gmane-mx.org; Wed, 09 Aug 2023 23:06:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTqNu-0003vA-Hm; Wed, 09 Aug 2023 17:06:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTqNs-0003uN-Ak; Wed, 09 Aug 2023 17:06:24 -0400 Original-Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.53]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTqNq-0002sY-7h; Wed, 09 Aug 2023 17:06:24 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1691615174; cv=none; d=strato.com; s=strato-dkim-0002; b=Skbr3PTTMRQqbnmUslwoeTikhc7yAX+qKRa71WLw1NWCnD4NGqMsgmtcnP817gei2U rskC1Tu7EnGvzzvEzD/dY5FdWM4mWb+hrNMRGpnqDK0/rzkQal899x5lhQ53XBqZe/pv SbWhl6sFL25t8ayaAhIz7vYipulMMLjiCroTbMFqIe97+RhjIOIbxM+5qCMOyeAWqw3S JZ+TbQIAVIn+PbpYMyVxEes0gVPreMCsdLvWAWCLxXKPRi4nziiZeXWDyqzHEg6Hht+g Xvq949Fz03zJ3f4f2fv3QPS5Bz8o9L2iZzWmB2xSaHmRnbq+UPAyCgYrbT6BDcj1qywZ 7KKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1691615174; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=L7l1lDKS7Z2ql2+xdN4KGDqp/gw+Bh/yaeWH6Gopkko=; b=Sk/GWTtZxf5crzhaHARufDh/wycEfRFIJZfkJd03F+6H1ADW20JIlSHZMnvBVCPs3A mgNpArKCordh7LgQBSDskCISb9nIE8nYsxGJsMzy09OXpQ0StwndxzxCXP2oH9eTo4AX b+htcEtznxk97U35EdreMZMp3/I0TiZTOYh4VBbubU4g81HiFisX78aGv17NhYSzOPMl o/o961eLe7UYEZwTpz5FoeQcAi07q1D7p5K9UVeGzVaemZ6oBWw3llQDHh+sSXb9rEi7 HwqaHMivyd7Qyf7N3XazZgpcXUV1PWLYpo4YeBzU8fhUCBGp+n5CmZr2DiAc/HBq/t1N v9ww== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1691615174; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=L7l1lDKS7Z2ql2+xdN4KGDqp/gw+Bh/yaeWH6Gopkko=; b=LZEtafTBUE4uy20uSfqoe91PyDmISjO6qXSaECcXl1mi7GsGp7/BnxFKuCDES14Mqt +As2FIyGrir9CkGFxCyoDC0qgt5U0El3WVWBJk7ZcdA3d9oGQTk9ehr7GykyMcGM/o5I 6rvavfDLJXk82Qzqd9oemi+OL0D480FiKLM2WActCXkef72V7Sc2i20NQpnDXnvu9jK0 hWO2Dw2eGT4M3UEh0IBnBvGfX/srxjPGcfM0Y0jBEIQAoNR3ANsyy2HO5JZDx/cKoaX8 AfA3B2o/pAb3zr2cJpjAMvAo4E8EVxs0UVgr7xJ2ejgZwnyo24pQglD6ZyRHvG01I4cT 4qZQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1691615174; s=strato-dkim-0003; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=L7l1lDKS7Z2ql2+xdN4KGDqp/gw+Bh/yaeWH6Gopkko=; b=CLfpbMSPBCcwJ6WJs6loQGihcQJ34D0y4tMNEXzd5Z72JZNUFAAPKVBhF+cDqevkxy an4N3PCNkpLLoeihbrCw== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOV1PzvI5g5gRFjtxIUOVst8mjP7Q==" Original-Received: from nimes.localnet by smtp.strato.de (RZmta 49.6.6 AUTH) with ESMTPSA id x129eaz79L6EsBs (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 9 Aug 2023 23:06:14 +0200 (CEST) In-Reply-To: Received-SPF: none client-ip=85.215.255.53; envelope-from=bruno@clisp.org; helo=mo4-p01-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Original-Sender: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.comp.lib.gnulib.bugs:48132 gmane.emacs.devel:308492 Archived-At: Paul Eggert wrote: > 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. For Alpine Linux, in Gnulib, I've used the following approach: Read the entire contents of /var/run/utmp, and if it contains no entry with ut_type == BOOT_TIME, look at the time stamp of some files, in particular /var/run/utmp. It doesn't require a configure test. Bruno