From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50666: 28.0.50; Fix native compilation on Cygwin Date: Sat, 25 Sep 2021 18:10:23 +0300 Message-ID: <8335psr8rk.fsf@gnu.org> References: <9f20194e-b1ba-9417-4f18-caa1d80b5568@cornell.edu> <835yux5dn1.fsf@gnu.org> <87bl4pf3s1.fsf@Otto.invalid> <83tuih3uvr.fsf@gnu.org> <877dfcg5tu.fsf@Otto.invalid> <83pmt44vn1.fsf@gnu.org> <83mto84r9l.fsf@gnu.org> <83fsu04mai.fsf@gnu.org> <1a5e01a2-2247-2f68-82f6-2075577e02b6@cornell.edu> <837dfc4hi1.fsf@gnu.org> <4ae8067f-55b2-d243-66f3-f76493095a39@cornell.edu> <83o88jvity.fsf@gnu.org> <8e8e74ce-0deb-bcdc-d298-be2e9d4636d7@cornell.edu> <83bl4juu2c.fsf@gnu.org> <87h7ebrylf.fsf@Rainer.invalid> <834kabuqsf.fsf@gnu.org> <87zgs3qh5y.fsf@Rainer.invalid> <87pmsyo64j.fsf@Otto.invalid> <83a6k2tfkm.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stromeko@nexgo.de, 50666@debbugs.gnu.org To: akrl@sdf.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 25 17:34:23 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 1mU9h1-0006Tn-As for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 17:34:23 +0200 Original-Received: from localhost ([::1]:33812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mU9gz-0000Mj-Bu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 11:34:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mU9KQ-0008Tp-AP for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 11:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mU9KQ-0003Rs-0y for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 11:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mU9KP-00016r-Sq for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 11:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Sep 2021 15:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 50666-submit@debbugs.gnu.org id=B50666.16325826414236 (code B ref 50666); Sat, 25 Sep 2021 15:11:01 +0000 Original-Received: (at 50666) by debbugs.gnu.org; 25 Sep 2021 15:10:41 +0000 Original-Received: from localhost ([127.0.0.1]:34317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mU9K5-00016G-7y for submit@debbugs.gnu.org; Sat, 25 Sep 2021 11:10:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mU9K3-000164-G3 for 50666@debbugs.gnu.org; Sat, 25 Sep 2021 11:10:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45250) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mU9Jv-00034f-3z; Sat, 25 Sep 2021 11:10:31 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4412 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mU9Jt-0000le-3G; Sat, 25 Sep 2021 11:10:30 -0400 In-Reply-To: <83a6k2tfkm.fsf@gnu.org> (message from Eli Zaretskii on Fri, 24 Sep 2021 13:48:09 +0300) 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:215451 Archived-At: > Date: Fri, 24 Sep 2021 13:48:09 +0300 > From: Eli Zaretskii > Cc: Stromeko@nexgo.de, 50666@debbugs.gnu.org > > > Cc: 50666@debbugs.gnu.org > > Date: Fri, 24 Sep 2021 07:32:11 +0000 > > From: Andrea Corallo via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" > > > > > Can you point me to the part of the discussion where it was determined > > > that the absolute location of the file was making a difference that was > > > not covered with the hash of the content? > > > > Not at the moment sorry, this was discussed more the once in different > > threads in the last 1-2 years. > > Right. > > One situation that comes to mind is that a .el file could be > native-compiled with different versions of macros in scope, although > that is not necessarily evidenced by the file's absolute name. I think I know what we were trying to solve by that, but the explanation is a bit hairy. It begins by noticing that what goes into the file-name part of the hash is not the entire absolute file name. We cannot use the entire absolute file name, because then moving the .el files somewhere else (e.g., to relocate the entire tree, or maybe access it from a different machine) would break loading the *.eln files. So we actually disregard the leading directories, leaving just what's below the 'lisp/' part. For example, for a file "/foo/bar/baz/lisp/FOO.el" we use just "//FOO.el". And that could cause problems if we also have "/foo/bar/baz/lisp/subdir/FOO.el". So for the latter we use "//subdir/FOO.el", which gives a different hash. IOW, this is to be able to distinguish files with the same base name that reside in different sub-directories of the same tree.