From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: [Next browser] Common Lisp: mgl-pax: Package SWANK-BACKEND does not exist. Date: Thu, 23 Aug 2018 18:24:32 +0200 Message-ID: <87y3cxnj9b.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]:55875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fssPY-0003iS-BK for guix-devel@gnu.org; Thu, 23 Aug 2018 12:24:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fssPU-0003Y9-CA for guix-devel@gnu.org; Thu, 23 Aug 2018 12:24:40 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:35762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fssPU-0003XV-0L for guix-devel@gnu.org; Thu, 23 Aug 2018 12:24:36 -0400 Received: by mail-wr1-x42e.google.com with SMTP id j26-v6so5148163wre.2 for ; Thu, 23 Aug 2018 09:24:35 -0700 (PDT) Received: from mimimi (230.108.126.78.rev.sfr.net. [78.126.108.230]) by smtp.gmail.com with ESMTPSA id w4-v6sm7001604wro.24.2018.08.23.09.24.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Aug 2018 09:24:33 -0700 (PDT) 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" To: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In the long path of packaging Next browsing, I found myself packaging the mgl-pax dependency. http://quickdocs.org/mgl-pax/ This package depends on SWANK which is packaged in emacs-slime. emacs-slime contains two pieces of code: =2D SLIME (the Emacs package) =2D SWANK: the Common Lisp backend. https://github.com/slime/slime Since the emacs-slime package uses the emacs build system, I think it might not expose SWANK properly, so I packaged SWANK separately using the ASDF build system: =2D-8<---------------cut here---------------start------------->8--- (define-public sbcl-slime-swank (package (name "sbcl-slime-swank") (version "2.22") (source (origin (file-name (string-append name "-" version ".tar.gz")) (method url-fetch) (uri (string-append "https://github.com/slime/slime/archive/v" version ".tar.gz")) (sha256 (base32 "07vaib1n4zyh5yy30gdpq0bc5cv6w84piml5b3mfc9ibjhaykkms")))) (build-system asdf-build-system/sbcl) (arguments `(#:asd-file "swank.asd" #:asd-system-name "swank")) (home-page "https://github.com/slime/slime") (synopsis "Common Lisp Swank server") (description "This is only useful if you want to start a Swank server in a Lisp processes that doesn't run under Emacs. Lisp processes created by @command{M-x slime} automatically start the server.") (license license:gpl2+))) =2D-8<---------------cut here---------------end--------------->8--- So far so good. I've declared the mgl-pax package as follows: =2D-8<---------------cut here---------------start------------->8--- (define-public sbcl-mgl-pax (let ((commit "818448418d6b9de74620f606f5b23033c6082769")) (package (name "sbcl-mgl-pax") (version (git-version "0.0.0" "1" commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/melisgl/mgl-pax") (commit commit))) (sha256 (base32 "1p97zfkh130bdxqqxwaw2j9psv58751wakx7czbfpq410lg7dd7i")) (file-name (string-append "mgl-pax" version "-checkout")))) (build-system asdf-build-system/sbcl) (inputs `(("3bmd" ,sbcl-3bmd) ("3bmd-ext-code-blocks" ,sbcl-3bmd-ext-code-blocks) ("babel" ,sbcl-babel) ("cl-fad" ,sbcl-cl-fad) ("ironclad" ,sbcl-ironclad) ("named-readtables" ,sbcl-named-readtables) ("pythonic-string-reader" ,sbcl-pythonic-string-reader) ("swank" ,sbcl-slime-swank))) (synopsis "Exploratory programming environment and documentation gene= rator") (description "PAX provides an extremely poor man's Explorable Programming environment. Narrative primarily lives in so called sections that mix mark= down docstrings with references to functions, variables, etc, all of which should probably have their own docstrings. The primary focus is on making code easily explorable by using SLIME's @command{M-.} (@command{slime-edit-definition}). See how to enable some fanciness in Emacs Integration. Generating documentation from sections and = all the referenced items in Markdown or HTML format is also implemented. With the simplistic tools provided, one may accomplish similar effects as w= ith Literate Programming, but documentation is generated from code, not vice ve= rsa and there is no support for chunking yet. Code is first, code must look pretty, documentation is code.") (home-page "http://quotenil.com/") (license license:bsd-3)))) =2D-8<---------------cut here---------------end--------------->8--- It finds SWANK but later in the build process it spits out the following error: =2D-8<---------------cut here---------------start------------->8--- ; compiling file "/gnu/store/2mxm532160zrg4wkww8g24d2bdwfrii4-sbcl-mgl-pax-= 0.0.0-1.8184484/share/common-lisp/sbcl-source/mgl-pax/src/pax.lisp" (writte= n 23 AUG 2018 04:15:29 PM): ; compiling (IN-PACKAGE :MGL-PAX) ; compiling (IN-READTABLE PYTHONIC-STRING-SYNTAX) ; compiling (DEFSECTION @MGL-PAX-MANUAL ...) ; compiling (DEFSECTION @MGL-PAX-LINKS ...) ; compiling (DEFSECTION @MGL-PAX-BACKGROUND ...) ; compiling (DEFSECTION @MGL-PAX-TUTORIAL ...) ; compiling (DEFSECTION @MGL-PAX-EMACS-INTEGRATION ...); ; caught ERROR: ; READ error during COMPILE-FILE: ; ; Package SWANK-BACKEND does not exist. ; ; Line: 331, Column: -1, File-Position: 12600 ; ; Stream: # ; compilation aborted after 0:00:00.022 Unhandled UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread #: COMPILE-FILE-ERROR while compiling # Backtrace for: # 0: (SB-DEBUG::DEBUGGER-DISABLED-HOOK # # :QUIT T) 1: (SB-DEBUG::RUN-HOOK *INVOKE-DEBUGGER-HOOK* #) 2: (INVOKE-DEBUGGER #) 3: (ERROR UIOP/LISP-BUILD:COMPILE-FILE-ERROR :CONTEXT-FORMAT "~/asdf-action= ::format-action/" :CONTEXT-ARGUMENTS ((# . #<= ASDF/LISP-ACTION:CL-SOURCE-FILE "mgl-pax" "src" "pax">))) 4: (UIOP/LISP-BUILD:CHECK-LISP-COMPILE-RESULTS NIL T T "~/asdf-action::form= at-action/" ((# . #))) 5: ((SB-PCL::EMF ASDF/ACTION:PERFORM) # #= # #) 6: ((LAMBDA NIL :IN ASDF/ACTION:CALL-WHILE-VISITING-ACTION)) 7: ((:METHOD ASDF/ACTION:PERFORM-WITH-RESTARTS :AROUND (T T)) # #= ) [fast-method] 8: ((:METHOD ASDF/PLAN:PERFORM-PLAN (T)) #) [fast-method] 9: ((FLET SB-C::WITH-IT :IN SB-C::%WITH-COMPILATION-UNIT)) 10: ((:METHOD ASDF/PLAN:PERFORM-PLAN :AROUND (T)) #) [fast-method] 11: ((:METHOD ASDF/OPERATE:OPERATE (ASDF/OPERATION:OPERATION ASDF/COMPONENT= :COMPONENT)) # # :PLAN-CLASS NIL :PLAN-OPTIONS NIL) [fast-method] 12: ((SB-PCL::EMF ASDF/OPERATE:OPERATE) # # # #) 13: ((LAMBDA NIL :IN ASDF/OPERATE:OPERATE)) 14: ((:METHOD ASDF/OPERATE:OPERATE :AROUND (T T)) # #) [fast-method] 15: ((SB-PCL::EMF ASDF/OPERATE:OPERATE) # # ASDF/BUNDLE:COMPILE-BUNDLE-OP "mgl-pax") 16: ((LAMBDA NIL :IN ASDF/OPERATE:OPERATE)) 17: ((:METHOD ASDF/OPERATE:OPERATE :AROUND (T T)) ASDF/BUNDLE:COMPILE-BUNDL= E-OP "mgl-pax") [fast-method] 18: (ASDF/SESSION:CALL-WITH-ASDF-SESSION # :OVERRIDE T :KEY NIL :OVERRIDE-CACHE T :OVERRID= E-FORCING NIL) 19: ((LAMBDA NIL :IN ASDF/OPERATE:OPERATE)) 20: (ASDF/SESSION:CALL-WITH-ASDF-SESSION # :OVERRIDE NIL :KEY NIL :OVERRIDE-CACHE NIL :OVE= RRIDE-FORCING NIL) 21: ((:METHOD ASDF/OPERATE:OPERATE :AROUND (T T)) ASDF/BUNDLE:COMPILE-BUNDL= E-OP "mgl-pax") [fast-method] 22: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ASDF/OPERATE:OPERATE (QUOTE ASDF/BUNDLE:= COMPILE-BUNDLE-OP) "mgl-pax") #) 23: (EVAL (ASDF/OPERATE:OPERATE (QUOTE ASDF/BUNDLE:COMPILE-BUNDLE-OP) "mgl-= pax")) 24: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:EVAL . "(require :asdf)") (:EVAL= . "(let ((*package* (find-package :asdf))) (load \"/gnu/store/2mxm532160zr= g4wkww8g24d2bdwfrii4-sbcl-mgl-pax-0.0.0-1.8184484/share/common-lisp/sbcl-so= urce/mgl-pax/mgl-pax.asd\"))") (:EVAL . "(asdf:operate (quote asdf:compile-= bundle-op) \"mgl-pax\")") (:QUIT))) 25: (SB-IMPL::TOPLEVEL-INIT) 26: ((FLET SB-UNIX::BODY :IN SAVE-LISP-AND-DIE)) 27: ((FLET "WITHOUT-INTERRUPTS-BODY-27" :IN SAVE-LISP-AND-DIE)) 28: ((LABELS SB-IMPL::RESTART-LISP :IN SAVE-LISP-AND-DIE)) unhandled condition in --disable-debugger mode, quitting ; ; compilation unit aborted ; caught 2 fatal ERROR conditions ; caught 1 ERROR condition ; printed 1 note Backtrace: 7 (primitive-load "/gnu/store/ichxngbrfqv6ysa4hpnjk2lvxrg=E2=80= =A6") In ice-9/eval.scm: 191:35 6 (_ _) In ice-9/boot-9.scm: 152:2 5 (with-fluid* _ _ _) 152:2 4 (with-fluid* _ _ _) In srfi/srfi-1.scm: 640:9 3 (for-each # =E2=80=A6) In /gnu/store/ig46c9fafvfv0czlpgh7l4w1xmwzsvaj-module-import/guix/build/gnu= -build-system.scm: 799:31 2 (_ _) In /gnu/store/ig46c9fafvfv0czlpgh7l4w1xmwzsvaj-module-import/guix/build/asd= f-build-system.scm: 124:4 1 (build #:outputs _ #:inputs _ #:asd-file _ # _) In unknown file: 0 (scm-error misc-error #f "~A ~S ~S" ("lisp-eval-pro=E2=80=A6" = =E2=80=A6) =E2=80=A6) ERROR: In procedure scm-error: lisp-eval-program failed! "/gnu/store/rdvy6q3nskb0r01rwjrxj3935d850r2d-sbcl= -1.4.4/bin/sbcl" ((require :asdf) (let ((*package* (find-package :asdf))) (= load "/gnu/store/2mxm532160zrg4wkww8g24d2bdwfrii4-sbcl-mgl-pax-0.0.0-1.8184= 484/share/common-lisp/sbcl-source/mgl-pax/mgl-pax.asd")) (asdf:operate (quo= te asdf:compile-bundle-op) "mgl-pax")) =2D-8<---------------cut here---------------end--------------->8--- I have no clue what this SWANK-BACKEND is. I can find SWANK/BACKEND in the source however. Maybe my misunderstanding of Common Lisp... Any clue? =2D- Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlt+38AACgkQm9z0l6S7 zH+X4wf9FVCLjDE3QJxmi1InVttaXXn1vo9S2+3g4fdE/wd2YyJXeB6hu4rxEXUb PlnuW/lJ8IvS9YX/+KAsZpxWTjBVPgy3Tbrf8MehDnpGx86LsZ+2dP6gOMWuhgMj pLDHa22PZJncSOdyWBFS4MUfIB9Wo5Jf3iPZTdpSf7PfzBO3FfJ6yHaoRxOu2Lcw rQvDPN+kDVOqEOz1HbaGPsws0+yhyk2R9K9HYfr6vJS1JZ/yfFeWzXl1Rj5a+wek DPeWy+vGm00ZFclKoj4zyVDi6iRgxPabe/CDoC6FVoxa9V/aSJbqYLTVEk7fh1a7 N7vrC5GgMk5ObShs9rldolwRDA+5zQ== =pnOq -----END PGP SIGNATURE----- --=-=-=--