From unknown Sun Aug 10 16:48:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13962 <13962@debbugs.gnu.org> To: bug#13962 <13962@debbugs.gnu.org> Subject: Status: 24.3: build fails when make run as a sub-make process Reply-To: bug#13962 <13962@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:48:00 +0000 retitle 13962 24.3: build fails when make run as a sub-make process reassign 13962 emacs submitter 13962 balducci@units.it severity 13962 important thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 14 14:25:56 2013 Received: (at submit) by debbugs.gnu.org; 14 Mar 2013 18:25:56 +0000 Received: from localhost ([127.0.0.1]:54542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGCqg-0002EP-RI for submit@debbugs.gnu.org; Thu, 14 Mar 2013 14:25:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44719) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGCSU-0001f2-Ei for submit@debbugs.gnu.org; Thu, 14 Mar 2013 14:00:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGCRD-0005qj-FE for submit@debbugs.gnu.org; Thu, 14 Mar 2013 13:59:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:38100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGCRD-0005qX-BQ for submit@debbugs.gnu.org; Thu, 14 Mar 2013 13:59:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGCRB-0006Ja-VC for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 13:59:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGCR8-0005m0-A7 for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 13:59:33 -0400 Received: from dschgrazlin2.univ.trieste.it ([140.105.55.81]:42345 helo=dschgrazlin2.units.it) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGCR8-0005ll-02 for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 13:59:30 -0400 Received: from localhost (loopback [127.0.0.1]) by dschgrazlin2.units.it (8.14.6/8.14.6) with ESMTP id r2EI7asg008878 for ; Thu, 14 Mar 2013 19:07:36 +0100 Received: from dschgrazlin2.units.it ([127.0.0.1]) by localhost (dschgrazlin2.units.it [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qzpYoo4U10dS for ; Thu, 14 Mar 2013 19:07:36 +0100 (CET) Received: from dschgrazlin2.units.it (loopback [127.0.0.1]) by dschgrazlin2.units.it (8.14.6/8.14.6) with ESMTP id r2EI7Xg8008865 for ; Thu, 14 Mar 2013 19:07:33 +0100 To: bug-gnu-emacs@gnu.org From: balducci@units.it Subject: 24.3: build fails when make run as a sub-make process X-Mailer: MH-E 8.5; nmh 1.5; GNU Emacs 24.3.1 Date: Thu, 14 Mar 2013 19:07:33 +0100 Message-ID: <8864.1363284477@dschgrazlin2.units.it> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 14 Mar 2013 14:25:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: balducci@units.it List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) hello, while building 24.3 I stumbled on the following problem. The main Makefile contains the following two lines: info_misc=`cd $${thisdir}/doc/misc; ${MAKE} -s echo-info`; \ (info_misc=`cd doc/misc; ${MAKE} -s echo-info`; \ Everything works nicely if I run make from the shell prompt. However, I usually build emacs with a script which in turn is run from a Makefile of mine. If I attempt to build this way, I find that the definitions of info_misc above contain also the make messages "Entering directory..." "Leaving directory...", which, of course, break the build. The problem is that -s suppresses recipe lines echoing, but NOT directory change messages from make, which make emits when run in a sub-make process (which is why I do not get errors when runnig from the shell prompt, while I get errors when running from my script, run by make) The above lines assume that the main Makefile will never be run by a sub-make, which of course is true most of the time, but is false in my case. Everything is fixed joining --no-print-directory with the -s option, but, as I was told by paul smith on the help-make mail list, that won't work for non-GNU make. Following paul's suggestion, I propose: => use of MAKELEVEL=0, so that GNU make thinks to be a top-most level: info_misc=`cd doc/misc && MAKELEVEL=0 ${MAKE} -s echo-info` while other make's won't be disturbed => sed-ing the ${MAKE} -s echo-info command to strip off any spurios directory change message Apologies if I have overlooked something and thank you really very much for maintaining and developing emacs ciao gabriele From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 14 14:27:58 2013 Received: (at 13962) by debbugs.gnu.org; 14 Mar 2013 18:27:58 +0000 Received: from localhost ([127.0.0.1]:54547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGCse-0002Hd-FD for submit@debbugs.gnu.org; Thu, 14 Mar 2013 14:27:57 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:44199 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGCsb-0002HV-DY for 13962@debbugs.gnu.org; Thu, 14 Mar 2013 14:27:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UGCrP-0006ku-He; Thu, 14 Mar 2013 14:26:39 -0400 From: Glenn Morris To: balducci@units.it Subject: Re: bug#13962: 24.3: build fails when make run as a sub-make process References: <8864.1363284477@dschgrazlin2.units.it> X-Spook: Ft. Bragg Jyllandsposten Ruby Ridge BRLO Becker HAMASMOIS X-Ran: &>un~4&/cQV0I;).]kOa6WfK'}Kg?U-V0?}.vPK)w169y|Qqw@2,4fX2vt;b|>51B%!\lr X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 14 Mar 2013 14:26:39 -0400 In-Reply-To: <8864.1363284477@dschgrazlin2.units.it> (balducci@units.it's message of "Thu, 14 Mar 2013 19:07:33 +0100") Message-ID: <5cvc8tx2g0.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 13962 Cc: 13962@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.3 (---------) balducci@units.it wrote: > => sed-ing the ${MAKE} -s echo-info command to strip off any spurios > directory change message That's how it was originally, prior to: http://lists.gnu.org/archive/html/emacs-diffs/2012-12/msg00206.html From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 15 07:34:32 2013 Received: (at 13962) by debbugs.gnu.org; 15 Mar 2013 11:34:32 +0000 Received: from localhost ([127.0.0.1]:55544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGSu7-0002BC-5U for submit@debbugs.gnu.org; Fri, 15 Mar 2013 07:34:31 -0400 Received: from dschgrazlin2.univ.trieste.it ([140.105.55.81]:47428 helo=dschgrazlin2.units.it) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGSu3-0002B0-Rf for 13962@debbugs.gnu.org; Fri, 15 Mar 2013 07:34:29 -0400 Received: from localhost (loopback [127.0.0.1]) by dschgrazlin2.units.it (8.14.6/8.14.6) with ESMTP id r2FBfMDg005755; Fri, 15 Mar 2013 12:41:22 +0100 X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 required=6.31 tests=[ALL_TRUSTED=-1] autolearn=unavailable Received: from dschgrazlin2.units.it ([127.0.0.1]) by localhost (dschgrazlin2.units.it [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Bp3yoktFdq4H; Fri, 15 Mar 2013 12:41:22 +0100 (CET) Received: from dschgrazlin2.units.it (loopback [127.0.0.1]) by dschgrazlin2.units.it (8.14.6/8.14.6) with ESMTP id r2FBfIx0005738; Fri, 15 Mar 2013 12:41:18 +0100 To: Glenn Morris From: balducci@units.it Subject: Re: bug#13962: 24.3: build fails when make run as a sub-make process In-reply-to: Your message of "Thu, 14 Mar 2013 14:26:39 -0400." <5cvc8tx2g0.fsf@fencepost.gnu.org> X-Mailer: MH-E 8.5; nmh 1.5; GNU Emacs 24.3.1 Date: Fri, 15 Mar 2013 12:41:18 +0100 Message-ID: <5737.1363347702@dschgrazlin2.units.it> X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13962 Cc: 13962@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > > That's how it was originally, prior to: > http://lists.gnu.org/archive/html/emacs-diffs/2012-12/msg00206.html ok, so looks like the change introduced is not completely general. If I can, I take the freedom to suggest to: => either revert the commit => or, maybe, go with the MAKELEVEL=0 fix (I haven't tested it, but should work fine) thanks a lot for your time and kindness ciao gabriele From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 18 17:06:12 2013 Received: (at 13962-done) by debbugs.gnu.org; 18 Mar 2013 21:06:12 +0000 Received: from localhost ([127.0.0.1]:34159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHhFz-0007ik-PQ for submit@debbugs.gnu.org; Mon, 18 Mar 2013 17:06:12 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:33162) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHhFw-0007ia-UX for 13962-done@debbugs.gnu.org; Mon, 18 Mar 2013 17:06:09 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 9430B39E8105 for <13962-done@debbugs.gnu.org>; Mon, 18 Mar 2013 14:04:32 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6l5NjSCx01B6 for <13962-done@debbugs.gnu.org>; Mon, 18 Mar 2013 14:04:32 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 509EF39E8008 for <13962-done@debbugs.gnu.org>; Mon, 18 Mar 2013 14:04:32 -0700 (PDT) Message-ID: <5147815F.9010906@cs.ucla.edu> Date: Mon, 18 Mar 2013 14:04:31 -0700 From: Paul Eggert User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: 13962-done@debbugs.gnu.org Subject: Re: 24.3: build fails when make run as a sub-make process Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 13962-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) Thanks for the report and idea for a fix. I installed a MAKELEVEL=0 fix into trunk bzr 112086 and am marking this as done. From unknown Sun Aug 10 16:48:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Apr 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator