From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Git help please - checking out old commit doesn't find lib/gnulib.mk.in. Date: Sun, 12 Nov 2017 20:06:51 +0000 Message-ID: <20171112200651.GC20916@ACM> References: <20171112180959.GB20916@ACM> <83inefmjuh.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1510517322 1788 195.159.176.226 (12 Nov 2017 20:08:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2017 20:08:42 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 21:08:34 2017 Return-path: Envelope-to: ged-emacs-devel@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 1eDyYU-0008V8-0F for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 21:08:34 +0100 Original-Received: from localhost ([::1]:51151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDyYb-0005VW-4h for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 15:08:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDyYT-0005VQ-JZ for emacs-devel@gnu.org; Sun, 12 Nov 2017 15:08:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDyYQ-0002JG-BN for emacs-devel@gnu.org; Sun, 12 Nov 2017 15:08:33 -0500 Original-Received: from ocolin.muc.de ([193.149.48.4]:28300 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1eDyYQ-0002Ir-4R for emacs-devel@gnu.org; Sun, 12 Nov 2017 15:08:30 -0500 Original-Received: (qmail 23513 invoked by uid 3782); 12 Nov 2017 20:08:27 -0000 Original-Received: from acm.muc.de (p548C60E3.dip0.t-ipconnect.de [84.140.96.227]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 12 Nov 2017 21:08:26 +0100 Original-Received: (qmail 15445 invoked by uid 1000); 12 Nov 2017 20:06:51 -0000 Content-Disposition: inline In-Reply-To: <83inefmjuh.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:220110 Archived-At: Hello, Eli. On Sun, Nov 12, 2017 at 20:29:26 +0200, Eli Zaretskii wrote: > > Date: Sun, 12 Nov 2017 18:09:59 +0000 > > From: Alan Mackenzie > > I'm attempting to check out a moderately old version of Emacs with: > > $ git checkout 10c0e1c > > . This appears to work. I then attempt to build it with: > > $ time make -j17 bootstrap > > . This fails with: > > make: *** No rule to make target 'lib/gnulib.mk.in', needed by 'Makefile'. Stop. > > . It would appear that the git checkout has failed to restore the state > > of the given commit, in that it hasn't restored the indicated file. Is > > this in fact the case? > > What do I have to do to restore this version in a state I can build. > I think you have some stale files that you need to clean up, basically > anything that is not a versioned file. I though that was what make bootstrap was for. In that working directory, I tried ./autogen.sh all. This gave the error messages: Running 'autoreconf -fi -I m4' ... /usr/bin/m4:aclocal.m4:9: cannot open `m4/count-leading-zeros.m4': No such file or directory + 11 similar lines. > For best results, I'd checkout into a separate directory, starting with > "git worktree add". Thanks. In the end, I just cloned another repository from my own emacs-26 repo and checked out that version. This build without problems. But it would be nice to be able to do what make bootstrap purports to do. Maybe one of the other less used make targets will do this. -- Alan Mackenzie (Nuremberg, Germany).