From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#33847: 27.0.50; emacsclient does not find server socket Date: Sun, 25 Jul 2021 09:22:06 -0700 Organization: UCLA Computer Science Department Message-ID: References: <8a6fc59c-08b3-e274-4fb1-74674c79540a@cs.ucla.edu> <87eeo27v6k.fsf@gnus.org> <83lfi79klf.fsf@gnu.org> <831rjya5yy.fsf@gnu.org> <8333533f-08ec-acd4-2fbf-f06e78591e98@cs.ucla.edu> <83v9h99awv.fsf@gnu.org> <878s1yjy20.fsf@gnus.org> <83lf5y2t78.fsf@gnu.org> <878s1yi8jc.fsf@gnus.org> <83h7gm2r4j.fsf@gnu.org> <87wnphe06g.fsf@gnus.org> <87r1fpdzuy.fsf@gnus.org> <838s1w1b7x.fsf@gnu.org> <5f457b50-c1bd-4856-33c7-f85edf111bd0@cs.ucla.edu> <83v950yv7i.fsf@gnu.org> <5d2f6394-2fc0-e20a-9018-0ea59f399ba2@cs.ucla.edu> <83a6maykcf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38810"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cc: teika@gmx.com, 33847@debbugs.gnu.org, Gnulib bugs , larsi@gnus.org, ulm@gentoo.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 25 18:23:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1m7guE-0009xn-U4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 18:23:11 +0200 Original-Received: from localhost ([::1]:45656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7guD-0004yN-Ux for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 12:23:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7gu6-0004vH-TP for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 12:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7gu6-00037c-Lm for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 12:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7gu6-0000PI-H0 for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 12:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jul 2021 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 33847-submit@debbugs.gnu.org id=B33847.16272301371484 (code B ref 33847); Sun, 25 Jul 2021 16:23:02 +0000 Original-Received: (at 33847) by debbugs.gnu.org; 25 Jul 2021 16:22:17 +0000 Original-Received: from localhost ([127.0.0.1]:49252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7gtN-0000Ns-Iv for submit@debbugs.gnu.org; Sun, 25 Jul 2021 12:22:17 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7gtJ-0000Nd-Ty for 33847@debbugs.gnu.org; Sun, 25 Jul 2021 12:22:16 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 543D11600C3; Sun, 25 Jul 2021 09:22:08 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 8h88TGD9GaGo; Sun, 25 Jul 2021 09:22:07 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4DAAD1600DB; Sun, 25 Jul 2021 09:22:07 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id alqqPcWoxHIB; Sun, 25 Jul 2021 09:22:07 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 18A211600C3; Sun, 25 Jul 2021 09:22:07 -0700 (PDT) In-Reply-To: <83a6maykcf.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210720 Archived-At: On 7/24/21 11:32 PM, Eli Zaretskii wrote: >> No modules are affected by the --disable-year2038 option on MS-Windows= . It turns out that I was wrong about that. (I don't normally look at the=20 MS-Windows part of Gnulib and misunderstood some of the code I was=20 reading.) Please see gnulib/m4/year2038.m4 for details. This file is in=20 the patches I sent, or you can see it directly here: https://git.savannah.gnu.org/cgit/gnulib.git/tree/m4/year2038.m4 This code knows about MS-Windows, Mingw, _USE_32BIT_TIME_T,=20 __MINGW_USE_VC2005_COMPAT, and so forth, and attempts to do the right=20 thing. As near as I can make out it should work for the scenario you=20 describe, but I don't use MS-Windows so I could well be wrong. If I'm=20 wrong and this code doesn't do what you want, I suggest contacting=20 bug-gnulib to alert Bruno Haible, who wrote that part of the code. I'll=20 cc bug-gnulib so that Bruno sees this email. (Bruno, this discussion is=20 at .) Here's some more background. There are two Gnulib modules involved. The largefile module ensures that a program can open/stat/etc. all=20 files, by widening types like off_t, dev_t and time_t if necessary. If=20 it finds that time_t is narrower than what the system can support, it=20 attempts to widen time_t; if this attempt fails it issues a warning but=20 continues. The year2038 module is stricter: it insists that time_t be at least 64=20 bits and aborts 'configure' otherwise. (Strictly speaking, it should=20 insist only on at least 33 bits (or 32 bits unsigned); I suppose I=20 should look into fixing that.) The Emacs patches that I sent do not use the year2038 module, because I=20 expected that you wouldn't want to worry about the year 2038. The=20 year2038 module is used by GNU packages like coreutils where Y2038 is a=20 problem even now, due to the long lead times and lack of updatability on=20 systems that use these other GNU packages. > So therefore my question seems to be even more important than I > thought, and I'm still asking which Gnulib modules are affected by > this, because I'd need to audit them carefully to see whether the > 32-bit MS-Windows build with mingw.org's MinGW could be affected. There should be no need to audit, because Gnulib still supports=20 platforms that have only 32-bit time_t. Gnulib is agnostic about time_t width, and is supposed to work even if=20 time_t is 40 bits (which it is on a very few mainframes) or any other=20 width. We regularly test it only on 32- and 64-bit time_t, though.