From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#26459: 26.0.50; loaddefs.el is regenerated after each "git pull" Date: Wed, 26 Apr 2017 14:32:22 -0400 Message-ID: References: <83k26qj9av.fsf@gnu.org> <8ulgr5ty70.fsf@fencepost.gnu.org> <831ssxk3z0.fsf@gnu.org> <83fuhciy6u.fsf@gnu.org> <89843eb4-e9a1-6beb-ec83-cd587768a3e3@cs.ucla.edu> <9yinm73if2.fsf@fencepost.gnu.org> <5ak26mpilr.fsf@fencepost.gnu.org> <83bmrygmav.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493231593 16902 195.159.176.226 (26 Apr 2017 18:33:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2017 18:33:13 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: eggert@cs.ucla.edu, 26459@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 26 20:33:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1d3RkS-0004Ff-0z for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 20:33:08 +0200 Original-Received: from localhost ([::1]:56625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3RkX-0007Fz-Hm for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 14:33:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3RkQ-0007Fs-2w for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 14:33:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3RkM-0004UU-DK for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 14:33:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43771) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3RkM-0004UM-9J for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 14:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d3RkM-0003Dv-4U for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 14:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Apr 2017 18:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26459 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26459-submit@debbugs.gnu.org id=B26459.149323155312352 (code B ref 26459); Wed, 26 Apr 2017 18:33:02 +0000 Original-Received: (at 26459) by debbugs.gnu.org; 26 Apr 2017 18:32:33 +0000 Original-Received: from localhost ([127.0.0.1]:41970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3Rjt-0003DA-Ms for submit@debbugs.gnu.org; Wed, 26 Apr 2017 14:32:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3Rjr-0003Cy-Se for 26459@debbugs.gnu.org; Wed, 26 Apr 2017 14:32:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3Rjl-0004Bb-UM for 26459@debbugs.gnu.org; Wed, 26 Apr 2017 14:32:26 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3Rjk-0004Ae-7m; Wed, 26 Apr 2017 14:32:24 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1d3Rji-0007cy-5e; Wed, 26 Apr 2017 14:32:22 -0400 X-Spook: White House fissionable jihad Sundevil Indigo Homeland X-Ran: VFF4,XHovx*<"tWvth%&vb]]ISu?EuN5Y0H.k.xrr3ovX+-baIyOL/~uR?2iA7fG#{(ZK7 X-Hue: blue X-Attribution: GM In-Reply-To: <83bmrygmav.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Apr 2017 10:30:32 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132027 Archived-At: Eli Zaretskii wrote: >> I find the following patch causes my -j8 builds to often hang forever >> (prior to 28718c4), because two Emacs processes try to modify eg >> uni-name at the same time. I don't know why Make apparently spawns two >> jobs at the same time to do the same thing. Possibly because >> admin/unidata/Makefile doesn't explicitly list the output uni*.el files, >> and calls make in a loop. Maybe we should improve that. > > Did you try making this new 'unidata' rule be more similar to the > other 2 rules, in src/Makefile.in, which do the same? IOW, instead of > a phony "unidata" target, use one of the targets that those other > rules use, which are real files. Then I hope Make will pay attention > that one such rule is already running, and won't launch another one to > do the same. After more investigation, I believe this is unfixable, given the limitations of recursive make. The only way to avoid such a race is to only have one Makefile run a given rule (ie only lisp/Makefile or only src/Makefile should be running unidata rules). And I can't see how to remove the uni-* dependencies from src/Makefile (ns-win and ucs-normalize are the blockers). But I think (hope) that changes I have committed to unidata-gen.el recently should mean Paul is less likely to see his particular race.