From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: make bootstrap error Date: Thu, 14 Sep 2017 07:26:24 -0700 Organization: UCLA Computer Science Department Message-ID: References: <87efr929ve.wl-nomiya@galaxy.dti.ne.jp> <8aee1f7e-5c40-509d-b918-e7247e5eb7e7@cornell.edu> <87ingljx9d.wl-nomiya@galaxy.dti.ne.jp> <313ff71a-dfc4-943e-ddb9-97c9351fd0e0@cornell.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------9F335ACA282AD159B4B6328C" X-Trace: blaine.gmane.org 1505399250 20804 195.159.176.226 (14 Sep 2017 14:27:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Sep 2017 14:27:30 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Cc: emacs-devel@gnu.org To: Ken Brown , "M. Nomiya" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 14 16:27:22 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsV6w-0005C1-75 for ged-emacs-devel@m.gmane.org; Thu, 14 Sep 2017 16:27:22 +0200 Original-Received: from localhost ([::1]:48113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsV73-00076d-7x for ged-emacs-devel@m.gmane.org; Thu, 14 Sep 2017 10:27:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsV6F-0006Wn-HE for emacs-devel@gnu.org; Thu, 14 Sep 2017 10:26:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsV6C-00087V-9k for emacs-devel@gnu.org; Thu, 14 Sep 2017 10:26:39 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51610) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dsV6C-00085N-3T for emacs-devel@gnu.org; Thu, 14 Sep 2017 10:26:36 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 35CDE160CFC; Thu, 14 Sep 2017 07:26:34 -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 SCT4N3EM4qDo; Thu, 14 Sep 2017 07:26:31 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 16218160CED; Thu, 14 Sep 2017 07:26:31 -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 xr26NHmfnK9i; Thu, 14 Sep 2017 07:26:30 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.154.18.85]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id E8C721608AA; Thu, 14 Sep 2017 07:26:30 -0700 (PDT) In-Reply-To: <313ff71a-dfc4-943e-ddb9-97c9351fd0e0@cornell.edu> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:218269 Archived-At: This is a multi-part message in MIME format. --------------9F335ACA282AD159B4B6328C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Ken Brown wrote: > Paul, any idea why SYS_renameat2 would be undefined on openSUSE 12.3 x8= 6_64? Haven't a clue, but the workaround should be easy enough. I installed the= =20 attached; please give it a try. If some platform other than Cygwin starts= =20 supporting renameat2 we can put a test into configure.ac and change "defi= ned=20 CYGWIN" to "HAVE_RENAME2". --------------9F335ACA282AD159B4B6328C Content-Type: text/x-patch; name="0001-Port-renameat_noreplace-to-openSUSE-12.3.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-Port-renameat_noreplace-to-openSUSE-12.3.patch" =46rom bc5485edeff0ccb3fbcc7fe6b6f13c666699e959 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 14 Sep 2017 07:23:13 -0700 Subject: [PATCH] Port renameat_noreplace to openSUSE 12.3 Problem reported by M. Nomiya in: http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00363.html * src/sysdep.c (renameat_noreplace): Call renameat2 only if CYGWIN. --- src/sysdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysdep.c b/src/sysdep.c index 318d4eb..1e6e0d0 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2689,7 +2689,7 @@ renameat_noreplace (int srcfd, char const *src, int= dstfd, char const *dst) { #if defined SYS_renameat2 && defined RENAME_NOREPLACE return syscall (SYS_renameat2, srcfd, src, dstfd, dst, RENAME_NOREPLAC= E); -#elif defined RENAME_NOREPLACE /* Cygwin >=3D 2.9.0. */ +#elif defined CYGWIN && defined RENAME_NOREPLACE return renameat2 (srcfd, src, dstfd, dst, RENAME_NOREPLACE); #elif defined RENAME_EXCL return renameatx_np (srcfd, src, dstfd, dst, RENAME_EXCL); --=20 2.7.4 --------------9F335ACA282AD159B4B6328C--