From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: make bootstrap fails: cp: .git/hooks/applypatch-msg.sample: No such file or directory Date: Mon, 26 Jan 2015 11:31:51 -0800 Organization: UCLA Computer Science Department Message-ID: <54C69627.60702@cs.ucla.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060902060104070500050509" X-Trace: ger.gmane.org 1422301266 29826 80.91.229.3 (26 Jan 2015 19:41:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2015 19:41:06 +0000 (UTC) To: sds@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 26 20:41:06 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YFpWy-0002uS-BZ for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2015 20:41:04 +0100 Original-Received: from localhost ([::1]:43753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFpWx-0001qu-Pw for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2015 14:41:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFpOK-0004v8-0n for emacs-devel@gnu.org; Mon, 26 Jan 2015 14:32:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFpOE-0002zJ-Cg for emacs-devel@gnu.org; Mon, 26 Jan 2015 14:32:07 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:47711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFpOD-0002xK-Tx; Mon, 26 Jan 2015 14:32:02 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 5B6FEA600BF; Mon, 26 Jan 2015 11:31:54 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-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 YXadHaNUAmgA; Mon, 26 Jan 2015 11:31:51 -0800 (PST) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 4B661A600AE; Mon, 26 Jan 2015 11:31:51 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181801 Archived-At: This is a multi-part message in MIME format. --------------060902060104070500050509 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 01/26/2015 08:48 AM, Sam Steingold wrote: > Running 'autoreconf -fi -I m4' ... > Installing git hooks... > cp: .git/hooks/applypatch-msg.sample: No such file or directory My guess is that the repository was created by an older version of Git. Git versions before 1.6.0 didn't create .sample files for hooks. In previous discussion about this, we thought it OK to require Git version 1.7.1 (April 2010) or later; see the (admittedly short) thread at . If this needs to be revisited, now's as good a time as any to do that. > what is this hook? > why do I need it? > where do I get it? > why is it not explained in INSTALL.REPO? It's a hook for when you apply patches from other developers. The simplest thing to solve just this problem, assuming you're running a recent-enough Git, is to reclone the repository from scratch. You should be able to patch an existing repository built with an older Git by running 'chmod a+x .git/hooks/applypatch-msg .git/hooks/pre-applypatch; cp .git/hooks/applypatch-msg .git/hooks/applypatch-msg.sample; cp .git/hooks/pre-applypatch .git/hooks/pre-applypatch.sample' (though I haven't tested this). I installed the attached patch to INSTALL.REPO to try to help clarify the situation a bit. --------------060902060104070500050509 Content-Type: text/x-patch; name="0001-INSTALL.REPO-Mention-minimum-Git-version.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-INSTALL.REPO-Mention-minimum-Git-version.patch" >From 81f7fcb4b8a4f370162def4fd42fd62674db96a5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 26 Jan 2015 11:21:45 -0800 Subject: [PATCH] * INSTALL.REPO: Mention minimum Git version. --- ChangeLog | 4 ++++ INSTALL.REPO | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index eecdad6..2ab8235 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-01-26 Paul Eggert + + * INSTALL.REPO: Mention minimum Git version. + 2015-01-25 Paul Eggert Use gnustep-config if available diff --git a/INSTALL.REPO b/INSTALL.REPO index df997fb..3431ee4 100644 --- a/INSTALL.REPO +++ b/INSTALL.REPO @@ -12,6 +12,8 @@ autoconf - at least the version specified near the start of configure.ac (in the AC_PREREQ command). automake - at least the version specified near the start of configure.ac (in the AM_INIT_AUTOMAKE command). +git - at least Git 1.7.1. If your repository was created by an older + Git version, you may need to reclone it. makeinfo - not strictly necessary, but highly recommended, so that you can build the manuals. -- 2.1.0 --------------060902060104070500050509--