From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Building master fails on Windows 10 when testing etc/NEWS file Date: Wed, 18 Sep 2019 05:23:20 -0700 Organization: UCLA Computer Science Department Message-ID: <1840bbb1-50de-870d-99d9-b4340e3c3b92@cs.ucla.edu> References: <1d388216-eed3-ed6f-5710-18d38daefe58@cs.ucla.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------C73845E38AD28BCA206B31D3" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183025"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cc: Richard Copley , martin rudalics , emacs-devel To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 18 14:23:33 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iAYzd-000lVS-0O for ged-emacs-devel@m.gmane.org; Wed, 18 Sep 2019 14:23:33 +0200 Original-Received: from localhost ([::1]:58248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAYzb-0006j9-Uy for ged-emacs-devel@m.gmane.org; Wed, 18 Sep 2019 08:23:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52739) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAYzU-0006io-CA for emacs-devel@gnu.org; Wed, 18 Sep 2019 08:23:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAYzT-0005R4-6s for emacs-devel@gnu.org; Wed, 18 Sep 2019 08:23:24 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:47098) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iAYzS-0005QU-UZ for emacs-devel@gnu.org; Wed, 18 Sep 2019 08:23:23 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 959101600A0; Wed, 18 Sep 2019 05:23:21 -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 p2WGF4uw4hms; Wed, 18 Sep 2019 05:23:20 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B132C160203; Wed, 18 Sep 2019 05:23:20 -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 dE8o8RIsDhbF; Wed, 18 Sep 2019 05:23:20 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 833511600A0; Wed, 18 Sep 2019 05:23:20 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240134 Archived-At: This is a multi-part message in MIME format. --------------C73845E38AD28BCA206B31D3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 9/18/19 4:36 AM, Juanma Barranquero wrote: > ELC ../lisp/replace.elc > Can't find D:\Devel\emacs\repo\trunk\src\bootstrap-emacs.exe to refresh > preloaded Lisp files Thanks, I installed the attached to try to fix that. > Loading leim/leim-list.el (source)... > Waiting for git... > Error running git rev-parse: (file-error "Searching for program" > "Permission denied" "git") > Waiting for git... > Error running git rev-parse --abbrev-ref: (file-error "Searching for > program" "Permission denied" "git") Is there a 'git' program in your PATH? What's the output of the following shell script (or equivalent) on your host? IFS=':' for dir in $PATH; do ls -ld "$dir" "$dir/git" echo ============= done --------------C73845E38AD28BCA206B31D3 Content-Type: text/x-patch; name="0001-Be-less-picky-about-EACCES-in-file-test-predicates.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Be-less-picky-about-EACCES-in-file-test-predicates.patc"; filename*1="h" >From efa4edfadb3d8ac051ac21ccb4238f3eadb091dd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 18 Sep 2019 04:21:19 -0700 Subject: [PATCH] Be less picky about EACCES in file test predicates Problem reported by Tino Calancha (Bug#37445) and others. * src/fileio.c (PICKY_EACCES): New constant, false by default. (file_test_errno): Ignore EACCES if not picky. (check_file_access): Investigate EACCES problems further if picky. --- src/fileio.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 0977516f01..58bc6b7ee8 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -253,9 +253,23 @@ file_attribute_errno (Lisp_Object file, int err) return file_metadata_errno ("Getting attributes", file, err); } +/* In theory, EACCES errors for predicates like file-readable-p should + be checked further because they may be problems with an ancestor + directory instead of with the file itself, which means that we + don't have reliable info about the requested file. In practice, + though, such errors are common enough that signaling them can be + annoying even if the errors are real (e.g., Bug#37445). So return + nil for EACCES unless compiling with -DPICKY_EACCES, which is off + by default. */ +#ifndef PICKY_EACCES +enum { PICKY_EACCES = false }; +#endif + static Lisp_Object file_test_errno (Lisp_Object file, int err) { + if (!PICKY_EACCES && err == EACCES) + return Qnil; return file_metadata_errno ("Testing file", file, err); } @@ -2745,7 +2759,7 @@ check_file_access (Lisp_Object file, Lisp_Object operation, int amode) return Qt; int err = errno; if (err == EROFS || err == ETXTBSY - || (err == EACCES && amode != F_OK + || (PICKY_EACCES && err == EACCES && amode != F_OK && file_access_p (encoded_file, F_OK))) { errno = err; -- 2.17.1 --------------C73845E38AD28BCA206B31D3--