From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: The problem of "guix build emacs --with-source=./emacs" Date: Fri, 13 Nov 2015 09:44:01 +0100 Message-ID: <87si4ap9v2.fsf@gnu.org> References: <2f020585.3812.150f963f90c.Coremail.tumashu@163.com> <87oaezz8l2.fsf@gnu.org> <87pozf2fcf.fsf@codemac.net> <87k2pmvqpk.fsf@codemac.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx9xn-00035A-DC for guix-devel@gnu.org; Fri, 13 Nov 2015 03:44:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zx9xk-0003OL-72 for guix-devel@gnu.org; Fri, 13 Nov 2015 03:44:07 -0500 In-Reply-To: <87k2pmvqpk.fsf@codemac.net> (Jeff Mickey's message of "Thu, 12 Nov 2015 13:43:35 -0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Jeff Mickey Cc: guix-devel@gnu.org Jeff Mickey skribis: > Forgot to CC the list... > > * Ludovic Court=C3=A8s [2015-11-12 04:49]: >> tumashu skribis: >> >>> When I use the below command to build emacs from emacs.git >>> >>> guix build emacs --with-source=3D./emacs (emacs dir i= s git repo) >>> >>> Build fail, after i remove the .git, build success. >> >> Could you explain how it fails exactly, and post the tail of the >> build log? >> >>> The repo of emacs.git is 1.5G, is it the reason? >> >> I don=E2=80=99t think so. That certainly makes it a bad option, though. >> >> Thanks, >> Ludo=E2=80=99. > > Isn't the emacs/.git dir is included in the hash calculation if it's > left in there? Yes. > I believe that guix calculates these hashes without the .git dir > IIRC. Not sure of great ways to work around this without moving the > './emacs/.git' dir outside of ./emacs during your build, as .git dirs > contain all kinds of non-reproducible state on disk Correct. So keeping the .git directory indeed makes the thing =E2=80=9Cunreproducible=E2=80=9D in the sense that nobody else will get the= same .git directory. But it may be acceptable if all you want is to make a one-off build. Thanks, Ludo=E2=80=99.