From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.devel Subject: Re: Possibility of a ${srcdir}/info/dir target race? Date: Wed, 22 Oct 2014 18:55:55 -0500 Message-ID: <87r3xzirqs.fsf@trouble.defaultvalue.org> References: <877fzrkje1.fsf@trouble.defaultvalue.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1414022175 22334 80.91.229.3 (22 Oct 2014 23:56:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2014 23:56:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 23 01:56:08 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xh5lA-0004GM-Bm for ged-emacs-devel@m.gmane.org; Thu, 23 Oct 2014 01:56:08 +0200 Original-Received: from localhost ([::1]:33377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh5l9-0002kI-Vo for ged-emacs-devel@m.gmane.org; Wed, 22 Oct 2014 19:56:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh5l3-0002k0-Qp for emacs-devel@gnu.org; Wed, 22 Oct 2014 19:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xh5kz-0005ng-FY for emacs-devel@gnu.org; Wed, 22 Oct 2014 19:56:01 -0400 Original-Received: from defaultvalue.org ([70.85.129.156]:35279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh5kz-0005nY-A4 for emacs-devel@gnu.org; Wed, 22 Oct 2014 19:55:57 -0400 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 5CC7A202C6; Wed, 22 Oct 2014 18:55:56 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 0823B14E41E; Wed, 22 Oct 2014 18:55:55 -0500 (CDT) In-Reply-To: User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 70.85.129.156 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:175709 Archived-At: Stefan Monnier writes: > Such races are possible, of course, but lots of us use "-j2" or more to > build Emacs, I expect, so if that's the problem, you probably > got very unlucky. So far I'm not sure how the buildd output in question could have been produced, unless make-info-dir is failing internally. (I suppose that's possible, if unlikely, since it doesn't check for failures when invoking cp, etc.) In the output we have: (cd . && ./build-aux/make-info-dir ${thisdir}/${tempfile}); \ ./build-aux/move-if-change ${tempfile} ./info/dir Creating /=C2=ABBUILDDIR=C2=BB/emacs24-24.4+1/debian/build-nox/info-dir.3= 0059... [...] make[4]: Entering directory '/=C2=ABBUILDDIR=C2=BB/emacs24-24.4+1/debian/= build-nox/doc/misc' [...] Created /=C2=ABBUILDDIR=C2=BB/emacs24-24.4+1/debian/build-nox/info-dir.30= 059 At this point, unless the unconditional "cp $basefile $outfile" command in make-info-dir failed, then info-dir.30059 should exist. But then immediately afterward we see: mv: cannot move 'info-dir.30059' to './info/dir': No such file or directo= ry Which means that either the file never existed, or it was somehow deleted before move-if-change (assuming that's the source of the mv) gets to it. --=20 Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4