Re: [PATCH 1/1] emacs: always write emacs/.eldeps when the target is remade
authorAustin Clements <amdragon@MIT.EDU>
Thu, 13 Feb 2014 07:10:27 +0000 (02:10 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:59:56 +0000 (09:59 -0800)
9d/1b212aaca542c7d073ec0e0bf077d62277931f [new file with mode: 0644]

diff --git a/9d/1b212aaca542c7d073ec0e0bf077d62277931f b/9d/1b212aaca542c7d073ec0e0bf077d62277931f
new file mode 100644 (file)
index 0000000..5505e30
--- /dev/null
@@ -0,0 +1,108 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id A49C1431FBD\r
+       for <notmuch@notmuchmail.org>; Wed, 12 Feb 2014 23:10:41 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id X5YlCV4b2hzz for <notmuch@notmuchmail.org>;\r
+       Wed, 12 Feb 2014 23:10:36 -0800 (PST)\r
+Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu\r
+       [18.7.68.35])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B14A5431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 12 Feb 2014 23:10:36 -0800 (PST)\r
+X-AuditID: 12074423-f79726d000000cc9-d2-52fc6feae991\r
+Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])\r
+       (using TLS with cipher AES256-SHA (256/256 bits))\r
+       (Client did not present a certificate)\r
+       by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id CC.95.03273.AEF6CF25; Thu, 13 Feb 2014 02:10:34 -0500 (EST)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id s1D7AUn2021999; \r
+       Thu, 13 Feb 2014 02:10:32 -0500\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s1D7ARkJ022685\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
+       Thu, 13 Feb 2014 02:10:30 -0500\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1WDqRH-0004VM-Ex; Thu, 13 Feb 2014 02:10:27 -0500\r
+Date: Thu, 13 Feb 2014 02:10:27 -0500\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>\r
+Subject: Re: [PATCH 1/1] emacs: always write emacs/.eldeps when the target is\r
+       remade\r
+Message-ID: <20140213071026.GX4375@mit.edu>\r
+References: <1390645309-2326-1-git-send-email-tomi.ollila@iki.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <1390645309-2326-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IR4hTV1n2V/yfI4N8aKYvrN2cyW7xZOY/V\r
+       gcnj8NeFLB7PVt1iDmCK4rJJSc3JLEst0rdL4MpYs/gwU0EnZ8WHWxfZGxi3s3cxcnJICJhI\r
+       9B3aywJhi0lcuLeerYuRi0NIYDaTxKP+c0wQzkZGiXnP1zKBVAkJnGaSuL6bByKxhFHi4cKp\r
+       YAkWAVWJVa+7mEFsNgENiW37lzOC2CICKhIP2tazgtjMAtIS3343g9ULC4RJzFx0GqyeV0Bb\r
+       YuH9BSwQCxwlVp1dxQQRF5Q4OfMJC0SvlsSNfy+B4hxgc5b/4wAJcwo4SVzrPQFWIgq0asrJ\r
+       bWwTGIVmIemehaR7FkL3AkbmVYyyKblVurmJmTnFqcm6xcmJeXmpRbpmermZJXqpKaWbGEFh\r
+       ze6ivIPxz0GlQ4wCHIxKPLwXpv4OEmJNLCuuzD3EKMnBpCTKuzb3T5AQX1J+SmVGYnFGfFFp\r
+       TmrxIUYJDmYlEV4ZCaAcb0piZVVqUT5MSpqDRUmct9biV5CQQHpiSWp2ampBahFMVoaDQ0mC\r
+       92UeUKNgUWp6akVaZk4JQpqJgxNkOA/QcK58kOHFBYm5xZnpEPlTjIpS4ryhIM0CIImM0jy4\r
+       XljaecUoDvSKMO96kCoeYMqC634FNJgJaHBq1G+QwSWJCCmpBkaVhPKIzvquF6n13xondDxN\r
+       2Xma5RFH7eOn7P6rexbvTD0k+E7D5GpPoFuhwvq/66cYPfl1jfHcyg3b9rGGnJ++om2GbJxq\r
+       wt+Tk54vmFa5R9bL/qzv9A35nLFfWiYbuZ+d+H6BpIRc3Z+tWj6rz3unPt68Y3bog4lnvlex\r
+       PFvEVxNk/HyT4m03JZbijERDLeai4kQAhC8y3xYDAAA=\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 13 Feb 2014 07:10:41 -0000\r
+\r
+Quoth Tomi Ollila on Jan 25 at 12:21 pm:\r
+> So that the target is newer than its prerequisites.\r
+> ---\r
+>  emacs/Makefile.local | 3 +--\r
+>  1 file changed, 1 insertion(+), 2 deletions(-)\r
+> \r
+> diff --git a/emacs/Makefile.local b/emacs/Makefile.local\r
+> index 42bfbd9..d5d402e 100644\r
+> --- a/emacs/Makefile.local\r
+> +++ b/emacs/Makefile.local\r
+> @@ -32,8 +32,7 @@ emacs_bytecode = $(emacs_sources:.el=.elc)\r
+>  ifeq ($(HAVE_EMACS),1)\r
+>  $(dir)/.eldeps: $(dir)/Makefile.local $(dir)/make-deps.el $(emacs_sources)\r
+>      $(call quiet,EMACS) --directory emacs -batch -l make-deps.el \\r
+> -            -f batch-make-deps $(emacs_sources) > $@.tmp && \\r
+> -            (cmp -s $@.tmp $@ || mv $@.tmp $@)\r
+> +            -f batch-make-deps $(emacs_sources) > $@.tmp && mv $@.tmp $@\r
+>  -include $(dir)/.eldeps\r
+>  endif\r
+>  CLEAN+=$(dir)/.eldeps $(dir)/.eldeps.tmp\r
+\r
+Is this just so the rule doesn't get run again on the next make\r
+invocation (unless, of course, a dependent changed)?\r
+\r
+Interestingly, if any of the dependents have changed, but in ways that\r
+don't affect .eldeps, this change will make the build more expensive\r
+because it will trigger a make restart after .eldeps is updated.\r