From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Espen Wiborg Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: make bootsrap problems Date: Tue, 27 May 2008 15:36:56 +0200 Message-ID: <874p8jvpfr.fsf@grumblesmurf.org> References: <20080527055600.04681853@cs.sunysb.edu> <85bq2suivg.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211912213 5309 80.91.229.12 (27 May 2008 18:16:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2008 18:16:53 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, kifer@cs.sunysb.edu To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 27 20:17:33 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K13jL-0008Fc-6d for ged-emacs-devel@m.gmane.org; Tue, 27 May 2008 20:17:03 +0200 Original-Received: from localhost ([127.0.0.1]:37901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K13iZ-0007cA-Tf for ged-emacs-devel@m.gmane.org; Tue, 27 May 2008 14:16:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0zLc-0004iw-7K for emacs-devel@gnu.org; Tue, 27 May 2008 09:36:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0zLb-0004i4-E9 for emacs-devel@gnu.org; Tue, 27 May 2008 09:36:15 -0400 Original-Received: from [199.232.76.173] (port=34364 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0zLb-0004hu-5Y for emacs-devel@gnu.org; Tue, 27 May 2008 09:36:15 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:55053) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K0zLb-0003Qo-15 for emacs-devel@gnu.org; Tue, 27 May 2008 09:36:15 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:34011) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1K0zJy-0005yQ-Ct for emacs-pretest-bug@gnu.org; Tue, 27 May 2008 09:34:34 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1K0zLW-0003Pj-OK for emacs-pretest-bug@gnu.org; Tue, 27 May 2008 09:36:14 -0400 Original-Received: from friends.chrissearle.org ([78.47.168.123]:45173 helo=bryanek.chrissearle.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K0zLW-0003PB-5u; Tue, 27 May 2008 09:36:10 -0400 Original-Received: from [82.196.214.14] (helo=espenw-laptop.telio.no) by bryanek.chrissearle.org with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1K0zLP-0002eI-Ps; Tue, 27 May 2008 15:36:04 +0200 In-Reply-To: <85bq2suivg.fsf@lola.goethe.zz> (David Kastrup's message of "Tue, 27 May 2008 12:44:03 +0200") User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) X-SA-Exim-Connect-IP: 82.196.214.14 X-SA-Exim-Mail-From: espenhw@grumblesmurf.org X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on bryanek.chrissearle.org) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Tue, 27 May 2008 14:14:25 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97818 gmane.emacs.pretest.bugs:22459 Archived-At: David Kastrup writes: > Michael Kifer writes: >> In the latest cvs version under Ubuntu 8.04, I am getting: >> >> make maintainer-clean >> configure >> make bootstrap >> <-snip-> >> sed -f temp.sed /home/users/kifer/gnu/emacs/lisp/Makefile.in > temp-elcfiles || rm temp-elcfiles >> sed: file temp.sed line 3: unknown command: `(' >> rm temp.sed >> chmod +w /home/users/kifer/gnu/emacs/lisp/Makefile.in >> mv -f temp-elcfiles /home/users/kifer/gnu/emacs/lisp/Makefile.in || echo "Maintainer warning: failed to update Makefile.in" >> mv: cannot stat `temp-elcfiles': No such file or directory >> Maintainer warning: failed to update Makefile.in > > Me too. The culprit would likely be > > ## Construct a sed command file that operates on lines between > ## ^ELCFILES and the next blank line. Convert spaces between members > ## of COMPILE_FIRST to "\|", and escape directory "/". List the .elc > ## files, exclude the members of COMPILE_FIRST, convert ^$(lisp) to a > ## literal " $(lisp)", add trailing " \\\" to the end of every line > ## (the last \ continues the line in sed, the other \\ result in a > ## single \ at the end of the replacement text). For the last line, > ## just use a single "\", for sed. Finally, run sed using the command > ## so constructed and update Makefile.in. chmod +w is for CVSREAD=1. > ## Errors in final sed are non-fatal, since they have no effect on > ## building Emacs. > update-elclist: <-snip-> > > in lisp/Makefile.in. In particular, "Finally, run sed using the command > so constructed and update Makefile.in." since the preceding recipe does > not actually construct a command, but just a part of it. The problem is that the generated sed script is missing a line continuation backslash. The following patch fixes: Index: lisp/Makefile.in =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/Makefile.in,v retrieving revision 1.123 diff -c -r1.123 Makefile.in *** lisp/Makefile.in 27 May 2008 02:14:46 -0000 1.123 --- lisp/Makefile.in 27 May 2008 13:21:27 -0000 *************** *** 164,170 **** ## building Emacs. update-elclist: echo "/^ELCFILES/,/^$$/c\\" > temp.sed ! echo "ELCFILES = \\\\\\" >> temp.sed exclude=`echo $(COMPILE_FIRST) | sed -e 's, ,\\\\|,g' -e 's,\/,\\\\/,g'`; \ ls $(lisp)/*.elc $(lisp)/*/*.elc | sed -e "/$$exclude/d" -e "s|^$(lisp)| \$$(lisp)|" -e 's/$$/ \\\\\\/' -e '$$ s/ \\\\//' >> temp.sed echo "" >> temp.sed --- 164,170 ---- ## building Emacs. update-elclist: echo "/^ELCFILES/,/^$$/c\\" > temp.sed ! echo "ELCFILES = \\\\\\\\\\" >> temp.sed exclude=`echo $(COMPILE_FIRST) | sed -e 's, ,\\\\|,g' -e 's,\/,\\\\/,g'`; \ ls $(lisp)/*.elc $(lisp)/*/*.elc | sed -e "/$$exclude/d" -e "s|^$(lisp)| \$$(lisp)|" -e 's/$$/ \\\\\\/' -e '$$ s/ \\\\//' >> temp.sed echo "" >> temp.sed -- Espen Wiborg Thermodynamics in a nutshell: 1st Law: You can't win. (Energy is conserved) 2nd Law: You can't break even. (Entropy) 0th Law: You can't even quit the game. (Closed systems) -- Taki Kogoma