From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= 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 19:24:48 +0100 Message-ID: <87tvxztkwf.fsf@wanadoo.es> References: <20171112180959.GB20916@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510511109 16108 195.159.176.226 (12 Nov 2017 18:25:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2017 18:25:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 19:25:06 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 1eDwwH-0003nj-1N for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 19:25:01 +0100 Original-Received: from localhost ([::1]:50920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDwwO-00053O-EH for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 13:25:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDwwI-000538-8W for emacs-devel@gnu.org; Sun, 12 Nov 2017 13:25:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDwwF-00043U-3b for emacs-devel@gnu.org; Sun, 12 Nov 2017 13:25:02 -0500 Original-Received: from [195.159.176.226] (port=42091 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDwwE-00043M-S7 for emacs-devel@gnu.org; Sun, 12 Nov 2017 13:24:59 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eDww4-0003BT-2g for emacs-devel@gnu.org; Sun, 12 Nov 2017 19:24:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:VQAuly3pMxXjMxY8+zzCMG3o0is= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:220103 Archived-At: Alan Mackenzie writes: > Hello, Emacs. > > 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. > (System: 64-bit GNU (Gentoo)). lib/gnulib.mk.in was introduced on March 2017 while the version you are checking out corresponds to February 2016. Hence it is expected that the file is missing. It seems that you are re-using a build directory, so the problem you see is expected as well. As the build system (and Emacs in general) changed quite a bit since, I'll start with a pristine state. In you emacs checkout: $ git clean -f -d -x This will delete everything that is not versioned (build artifacts, etc). Then create a new build directory and proceed as usual.