From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Howto run guix.el correctly? Date: Wed, 26 Nov 2014 23:41:59 +0100 Message-ID: <87wq6hshxk.fsf@gnu.org> References: <87d28fgjfn.fsf@gmail.com> <8761e7aqkt.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87mw7ianj5.fsf@gnu.org> <87tx1qv1rp.fsf@gmail.com> <87zjbg8h4x.fsf@gnu.org> <87vbm3v0ts.fsf@gmail.com> <87y4qyszfs.fsf@gnu.org> <87ioi1u28i.fsf@gmail.com> 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]:52980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtlHn-0007m8-9p for guix-devel@gnu.org; Wed, 26 Nov 2014 17:42:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtlHe-0000R6-8J for guix-devel@gnu.org; Wed, 26 Nov 2014 17:42:11 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:41375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtlHe-0000Qw-29 for guix-devel@gnu.org; Wed, 26 Nov 2014 17:42:02 -0500 In-Reply-To: <87ioi1u28i.fsf@gmail.com> (Alex Kost's message of "Wed, 26 Nov 2014 23:38:05 +0300") 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: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > Ludovic Court=C3=A8s (2014-11-26 19:23 +0300) wrote: [...] >>> + (arguments >>> + '(#:phases (alist-cons-after >>> + 'install 'post-install >>> + (lambda* (#:key outputs #:allow-other-keys) >>> + (symlink "geiser-install.el" >>> + (string-append (assoc-ref outputs "out") >>> + "/share/emacs/site-lisp/" >>> + "geiser-autoloads.el"))) >>> + %standard-phases))) >> >> This particular instance won=E2=80=99t work because it=E2=80=99s called = from >> $top_builddir. > > Sorry I didn't understand why it wouldn't work. I tried it and it worked > as I expected: a proper "geiser-autoloads.el" symlink was created. Oh indeed, I misunderstood the code above, sorry. >> Actually, since it=E2=80=99s going to be used in most packages, what abo= ut >> adding an =E2=80=98install-autoloads=E2=80=99 procedure in (guix build e= macs-utils)? >> So the above would become >> >> (alist-cons-after >> 'install 'post-install >> (lambda* (#:key outputs #:allow-other-keys) >> (install-autoloads (assoc-ref outputs "out"))) >> %standard-phases) > > OK. > >> Or better yet, (guix build emacs-utils) could provide >> %standard-emacs-phases. >> >> WDYT? > > The problem is that I don't understand what these %standard-emacs-phases > should be, (define %standard-emacs-phases (alist-cons-after 'install 'post-install (lambda* (#:key outputs #:allow-other-keys) (install-autoloads (assoc-ref outputs "out"))) %standard-phases)) > that's why I wanted to do it step-by-step. I don't see general > patterns right now. Some packages would require just making a link as > with geiser, other packages require generating autoloads and maybe > some others require additional steps. What about making > "wip-emacs-packages" branch and to put the appropriate changes there > for now? Sure! Thank you, Ludo=E2=80=99.