From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SKamEAuQpWCLqAAAgWs5BA (envelope-from ) for ; Thu, 20 May 2021 00:24:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cJ5dDAuQpWBaIAAA1q6Kng (envelope-from ) for ; Wed, 19 May 2021 22:24:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 882F316B2F for ; Thu, 20 May 2021 00:24:10 +0200 (CEST) Received: from localhost ([::1]:56022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljUbo-00046y-Ub for larch@yhetil.org; Wed, 19 May 2021 18:24:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljUbi-00046Z-7s for bug-guix@gnu.org; Wed, 19 May 2021 18:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljUbi-0003a2-0D for bug-guix@gnu.org; Wed, 19 May 2021 18:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljUbh-0000wi-T7 for bug-guix@gnu.org; Wed, 19 May 2021 18:24:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#46333: sbcl-common-lisp-jupyter does not install kernel.json Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 19 May 2021 22:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46333 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Guillaume Le Vaillant Received: via spool by 46333-submit@debbugs.gnu.org id=B46333.16214630123600 (code B ref 46333); Wed, 19 May 2021 22:24:01 +0000 Received: (at 46333) by debbugs.gnu.org; 19 May 2021 22:23:32 +0000 Received: from localhost ([127.0.0.1]:60881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljUbE-0000w0-Db for submit@debbugs.gnu.org; Wed, 19 May 2021 18:23:32 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:35502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljUbC-0000vn-JZ for 46333@debbugs.gnu.org; Wed, 19 May 2021 18:23:31 -0400 Received: by mail-wr1-f52.google.com with SMTP id a4so15622580wrr.2 for <46333@debbugs.gnu.org>; Wed, 19 May 2021 15:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ipusqqA7YnU+18yggifs/jiyple9CeS9E7OSLtN7mYk=; b=pgrg/lYXiiNnfhJ5SBnVnXP/uBzM+xpP8mOe9hB+vuYqgPUL6pHED3RgnEQpLrF9BD XAUzfkALaDoUksQ8RUjOtGm9pfHq6BJG45K5JcDglbA6Zs8pO0TUsqB8Zr4TreLF2lQ3 7UstsmmDuEEibEbeg2bDv0h0LPr/H5dlbgrBAC/MqnKyH/cGDPqKaF7WYJk3j8M7OoCN jquC3bjpahoU2WxGLmc+7NWfbXR0RuuLpcq0Q6xDB4sg65+OU7cV2r4Jdpp5cq/xVwV8 phvj0BEhO6+cAIHpqPB8U5H0lQk25HsZU7gLqr7rs88cSlp9rkbZTgWKMktmiEW3GIjo hLgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ipusqqA7YnU+18yggifs/jiyple9CeS9E7OSLtN7mYk=; b=slaCX8PI0HY/RhLwgFKaeJkkH2JUHHq2C2u5WN5fd1ip1WKGnpnPXuzbXyd07EGRpm LKmZa7W6BpghDMj1gEClxdm6DG5zjZ5Hrvzjz4aE9r0cP0QENWFcxCFF/Z7SNvrY35KB baFmbeO3a8LMi3mrllqC/NjT6WwgNVXjBx7/R0Afk7X0VGjTEXN6WLMOARIY1K6Blha0 p7DI3FMvoMUp1mI7GicOait9hX01hLANmrvV14RMvjl4TaPnwZ5GjQie4T2pSDaAdziF 9bsKeu9sJKI6GIjhmrQKJrvsZp0oA5ih4LpArj6ZzKwjzRQ6lMA6j8+f7S+Y4NjG95Sw 6J8g== X-Gm-Message-State: AOAM533w41nNbioItSgDlsOkecWRhkXOc0+75aqn67EdCmWiWvxkbAW/ RIvX+Tjce5XGIyhglOUZvlSVI53ZbbbT/Wxv/WA= X-Google-Smtp-Source: ABdhPJw51cHk4YYfo6DhGA06aPESLoITsVfTzmoM8LtgaSMLLIB+DGwhnN+G3xKQmOtT12KJeu+Y85ewCFn7NBCaARg= X-Received: by 2002:adf:e58c:: with SMTP id l12mr1079704wrm.133.1621463004665; Wed, 19 May 2021 15:23:24 -0700 (PDT) MIME-Version: 1.0 References: <87lf8cugh1.fsf@kitej> In-Reply-To: <87lf8cugh1.fsf@kitej> From: Sharlatan Hellseher Date: Wed, 19 May 2021 22:23:14 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46333@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621463050; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ipusqqA7YnU+18yggifs/jiyple9CeS9E7OSLtN7mYk=; b=p14AxtSJ3sKRuIRGRWJvbz9NbDWAfb2nUkXE92BasiLURlfqxvn96UCIHlWdMbN1GCjMLP U8fn1Zsr1qLV5SJzxeGQI59bFwjdehR0ZTeNDMBuvx5rqC2TNcZO7MRTSpORaBxF4ftLZk whG+szCuc5n3feXFg7sWwdO9rGrO2Zymtz+e916jiXP0Cno5SR41h9Ejboyj+QiJ82bMk/ X6LObYwa4uq5vLE8Zz/iySmXKQuNs3oSbEoJPwpGODCoSKsP28pT3a5j9UAMX5GzHfzl/4 i8JPqljoKlFsxzR3L7QgVN/dlKQuhNT33lLy7rJKc8lCfDJUOhFHGYG2ua9yRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621463050; a=rsa-sha256; cv=none; b=SqW6y/O949U3o+vgubD+xVq154LtHgPA4mCeJAcMj4wLMitz/11Koi3RhHWgAcMopRxd8N +HEkeB1oVA/F59LRdll3vFwpTEou6C65mddZN5Ux1OyB3HrrW+r48pC3LzbIwnDAIs+jAF TrcgMCvvkbzuKGb6bnVQAAElE759Ik8b9Mq/tAruGVdnxo+mo7qBpsMc+jyxVzJeQlQv1L fdYuCJ52jgLuLduURffCRlF+OcDguAXBviW6LyY8iHF0q1h61mMNSh+6YrKaxl4GZjewMs QEoGKLozWXW7Pn1NWkb9DkeGbvB75CrcMjSLSzkn1RUJ++RufwcSPifsmL5yYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="pgrg/lYX"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="pgrg/lYX"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 882F316B2F X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: hSWWFPCbNAEc Hi, I've checked the r-irkernel and it's coping existing kernelspec , which is not useful in this case. As Guillaume mentioned we could tweak it before installation phase by using cl-jupyter:install, so here is my draft: --8<---------------cut here---------------start------------->8--- (arguments `(#:phases (modify-phases %standard-phases (add-before 'install 'generate-kernelspec (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (kernelspec (string-append out "/share/cl-jupyter/kernelspec"))) (mkdir-p kernelspec) (invoke "sbcl" "--eval" "\"(require :asdf)\"" "--eval" "\"(require :common-lisp-jupyter)\"" "--eval" (string-append "\"(cl-jupyter:install" ":bin-path" (string-append (assoc-ref %build-inputs "sbcl") "/bin/sbcl") ":prefix" out ")\"") "--eval" "\"(exit)\"")) #t)) (add-after 'install 'install-kernelspec (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (kernelspec (string-append out "/share/cl-jupyter/kernelspec"))) (invoke "jupyter" "kernelspec" "install" "--name" "cl-jupyter" "--prefix" out kernelspec) #t)))))) --8<---------------cut here---------------end--------------->8--- But there could be a potential blocking issue with :prefix key https://github.com/yitzchak/common-lisp-jupyter/issues/78 On Tue, 18 May 2021 at 16:58, Guillaume Le Vaillant wrote: > > Hi Jack, > > I guess it will be easier to just add a phase writing the "kernel.json" > file in the right place. In this build phase, to know if the package is > being built for SBCL or ECL, the '(%lisp-type)' function that will > return "sbcl" or "ecl" can be used. There's an example in the > sbcl-trivial-backtrace package. -- =E2=80=A6 =D0=BD=D0=B0=D1=88 =D1=80=D0=B0=D0=B7=D1=83=D0=BC - =D0=BF=D1=80= =D0=B5=D0=B2=D0=BE=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=B0=D1=8F =D0=BE=D0=B1= =D1=8A=D1=8F=D1=81=D0=BD=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F = =D0=BC=D0=B0=D1=88=D0=B8=D0=BD=D0=B0 =D0=BA=D0=BE=D1=82=D0=BE=D1=80=D0=B0= =D1=8F =D1=81=D0=BF=D0=BE=D1=81=D0=BE=D0=B1=D0=BD=D0=B0 =D0=BD=D0=B0=D0=B9=D1=82=D0=B8 =D1=81=D0=BC=D1=8B=D1=81=D0=BB =D0=BF=D0=BE= =D1=87=D1=82=D0=B8 =D0=B2 =D1=87=D0=B5=D0=BC =D1=83=D0=B3=D0=BE=D0=B4=D0=BD= =D0=BE, =D0=B8=D1=81=D1=82=D0=BE=D0=BB=D0=BA=D0=BE=D0=B2=D0=B0=D1=82=D1=8C = =D0=BB=D1=8E=D0=B1=D0=BE=D0=B9 =D1=84=D0=B5=D0=BD=D0=BE=D0=BC=D0=B5=D0=BD, = =D0=BD=D0=BE =D1=81=D0=BE=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0=BD=D0=BE =D0=BD=D0=B5 = =D0=B2 =D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D0=B8 =D0=BF=D1=80= =D0=B8=D0=BD=D1=8F=D1=82=D1=8C =D0=BC=D1=8B=D1=81=D0=BB=D1=8C =D0=BE =D0=BD= =D0=B5=D0=BF=D1=80=D0=B5=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D1=83=D0=B5=D0=BC=D0= =BE=D1=81=D1=82=D0=B8.