From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: How to install prerelease package versions (particularly Emacs) Date: Thu, 12 Apr 2018 22:27:34 -0700 Message-ID: <871sfjzneh.fsf@gmail.com> References: <871sh1pid1.fsf@gmail.com> <87o9jku2gt.fsf@gmail.com> <87lgeehe5g.fsf@gmail.com> <87lgedx2vn.fsf@gnu.org> <87k1txedot.fsf@gmail.com> <87in9huthf.fsf@gnu.org> <877epwn06z.fsf@gmail.com> <87d0zmhwkl.fsf@gmail.com> <87370hwykf.fsf@gnu.org> <87sh8hiwn5.fsf@gmail.com> <87muypvhh3.fsf@gnu.org> <87tvsh3fkt.fsf@gmail.com> <87vacwddz3.fsf@gmail.com> <873700pz45.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6rFQ-00033a-OB for help-guix@gnu.org; Fri, 13 Apr 2018 01:27:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6rFN-0007OH-JK for help-guix@gnu.org; Fri, 13 Apr 2018 01:27:44 -0400 In-Reply-To: <873700pz45.fsf@gmail.com> (Pierre Neidhardt's message of "Thu, 12 Apr 2018 14:42:26 +0530") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Pierre Neidhardt Cc: help-guix@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Pierre, Pierre Neidhardt writes: > Chris Marusich writes: > >> Can you share the package definition? > > Let's start from the most straight-forward: > > (define-public emacs-dev > (package > (inherit emacs) > (name "emacs-dev") > (version "26.0.91") > (source > (local-file "/home/ambrevar/projects/emacs-build" #:recursive? #t)))) I took this definition and adapted it as shown in the attached file. I then did the following things: * Save the file at /tmp/emacs.scm. * Clone Emacs' Git repository into /tmp/emacs at commit 93678bffe6427b9d83dae032c56a4e480539a4a7. * Get an environment with the necessary dependencies, and run autogen.sh: guix environment emacs You could try with --pure to see if the emacs inputs are actually enough to bootstrap Emacs' Git repository. I doubt they are. You can experiment with adding dependencies by using the --ad-hoc option. Once you figure out what dependencies are required to run autogen.sh, you can add them to your custom package definition if you want (although they won't be required for building Emacs once you've built the "configure" script). I happen to have various tools, such as Autoconf, installed in my profile (mainly so I can browse the manuals locally). I'm pretty sure that's why the next step succeeded for me. * Run autogen.sh to create the "configure" script: ./autogen.sh * Now that the "configure" script has been created, build Emacs: guix build -f /tmp/emacs.scm For me, the build proceeded but then failed during the "check" phase: =2D-8<---------------cut here---------------start------------->8--- SUMMARY OF TEST RESULTS =2D---------------------- Files examined: 195 Ran 2767 tests, 2619 results as expected, 24 unexpected, 124 skipped 7 files contained unexpected results: src/process-tests.log lisp/progmodes/xref-tests.log lisp/progmodes/flymake-tests.log lisp/files-tests.log lisp/eshell/em-ls-tests.log lisp/calendar/todo-mode-tests.log lisp/net/tramp-tests.log make[2]: *** [Makefile:280: check-doit] Error 1 make[2]: Leaving directory '/tmp/guix-build-emacs-dev-26.0.91.drv-0/build/t= est' make[1]: *** [Makefile:255: check] Error 2 make[1]: Leaving directory '/tmp/guix-build-emacs-dev-26.0.91.drv-0/build/t= est' make: *** [Makefile:945: check] Error 2 phase `check' failed after 104.0 seconds builder for `/gnu/store/dshw12bj2486lcfv65g04g9rznxgfrwp-emacs-dev-26.0.91.= drv' failed with exit code 1 @ build-failed /gnu/store/dshw12bj2486lcfv65g04g9rznxgfrwp-emacs-dev-26.0.9= 1.drv - 1 builder for `/gnu/store/dshw12bj2486lcfv65g04g9rznxgfrwp-emacs-de= v-26.0.91.drv' failed with exit code 1 guix build: error: build failed: build of `/gnu/store/dshw12bj2486lcfv65g04= g9rznxgfrwp-emacs-dev-26.0.91.drv' failed =2D-8<---------------cut here---------------end--------------->8--- I don't know much about the test failures, but this is a success as far as I'm concerned: If you get this far, it means the local-file declaration in your package definition is working as intended. Hope that helps! =2D-=20 Chris --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=emacs.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzCiAoZ3VpeCBwYWNrYWdlcykKIChndWl4IGdleHApCiAoZ251IHBhY2thZ2Vz IGVtYWNzKSkKCihwYWNrYWdlCiAgKGluaGVyaXQgZW1hY3MpCiAgKG5hbWUgImVtYWNzLWRldiIp CiAgKHZlcnNpb24gIjI2LjAuOTEiKQogIChzb3VyY2UKICAgKGxvY2FsLWZpbGUgIi90bXAvZW1h Y3MiICM6cmVjdXJzaXZlPyAjdCkpKQo= --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlrQP8YACgkQ3UCaFdgi Rp14ig//QI/pdPL339cdqpgzl+dA19vrnid0Surzq11MKN/egjK/3utrtvW6T+yE PHw1D9j5cpjWE8u0eNBHILnZvgzIkeXoPgD48TIWjVFPCz7MeMtUTl20Ay9R90Cq rxNPVWh5h7De4SHLk3M9nshR6rVc5Tb/ujLD4hMUvmAE2J1UEwwlvWp0tPTF+l5Q 0kVH48TVgPgaYGHfZzID+yCFUoI4M8zT3g4SYSxZYaz7hUKttWUP4iTvZA4tYYbO YDgAfMFpA3/6ZgBtVAqMXQcNmc8XX13CUem0m+xJXIGvWqcYS/9OkRocStXfBvuJ UNmfnATTiprvqgCiieZVck1oy5L0AcElZlK58EKa8tTLrWt3Rg4F3EVeq9rzLS4O TdUBsI/ObdXKDTB4HRCcVQ1sbFLcliDg1Sc+tGQ9dr0WU2d2DoHM1YFmyD/K4vOj xjFKYV4XzVeVGqerlKKkAiRq8/DoO3XVgVEUDoika9tsM4v9WXlBTYphHXGJvSh+ YGDqZ75V3ISmvU8fXwLs1SKax4N1yQLJP6ASrcTlAy1wsdmL9PMfz9O7JLLTjlsv W8CZe7Nph5sErZmU9iJ5hhy8IVYlxRoEhuL61twcCaYAQowaUw7iJ1T6vsBX5z/S ZDavnK9bpHwjPm8NytglV30sTAxtrooVDtXYLemzUoFrkcUMo7Q= =eh7X -----END PGP SIGNATURE----- --==-=-=--