From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii 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:29:26 +0200 Message-ID: <83inefmjuh.fsf@gnu.org> References: <20171112180959.GB20916@ACM> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1510511381 2566 195.159.176.226 (12 Nov 2017 18:29:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2017 18:29:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 19:29:36 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 1eDx0h-0000Ox-Jp for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 19:29:35 +0100 Original-Received: from localhost ([::1]:50936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDx0o-0007Ou-Pe for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 13:29:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDx0Z-0007H9-N8 for emacs-devel@gnu.org; Sun, 12 Nov 2017 13:29:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDx0U-0005No-QL for emacs-devel@gnu.org; Sun, 12 Nov 2017 13:29:27 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDx0U-0005Ni-Mc; Sun, 12 Nov 2017 13:29:22 -0500 Original-Received: from [176.228.60.248] (port=4697 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eDx0U-0001J6-3p; Sun, 12 Nov 2017 13:29:22 -0500 In-reply-to: <20171112180959.GB20916@ACM> (message from Alan Mackenzie on Sun, 12 Nov 2017 18:09:59 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:220107 Archived-At: > 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. For best results, I'd checkout into a separate directory, starting with "git worktree add".