Message ID | 87lf1fnh72.fsf@kitej |
---|---|
State | Accepted |
Headers | show |
Series | [bug#52045] gnu: Add cl-clm. | expand |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git branch | success | View Git branch |
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
On Tue, 23 Nov 2021 13:00:45 +0000 Guillaume Le Vaillant <glv@posteo.net> wrote: Hi Guillaume, I finally got around to testing this. > The attached modified version of your patch seems to compile clm without > error (although some files end up in a different directory compared to > "regular" lisp libraries), but I have not tested if it works as expected. This is the error I get from my session: ``` λ guix shell -L . sbcl sbcl-clm rlwrap hint: Consider passing the `--check' option once to make sure your shell does not clobber environment variables. ^C λ guix shell -L . sbcl sbcl-clm rlwrap --pure hint: Consider passing the `--check' option once to make sure your shell does not clobber environment variables. substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following derivation will be built: /gnu/store/kr09rg3zhhjnzfw65mddy79lk64nf83s-profile.drv 0.1 MB will be downloaded rlwrap-0.45.2 93KiB 396KiB/s 00:00 [##################] 100.0% building CA certificate bundle... listing Emacs sub-directories... building fonts directory... building directory of Info manuals... building profile with 3 packages... guix-shell rlwrap sbcl This is SBCL 2.2.2, an implementation of ANSI Common Lisp. More information about SBCL is available at <http://www.sbcl.org/>. SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. CL-USER(1): (require :clm) ; using existing configuration file mus-config.h ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/clm-package.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/initmus.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/sndlib2clm.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/defaults.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/ffi.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/mus.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/run.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/sound.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/defins.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/env.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/export.fasl ;loading /gnu/store/689x05vvcxd0q4crygl698vykfdv9s83-sbcl-clm-5/share/common-lisp/sbcl/clm/clm1.faslALSA lib dlmisc.c:339:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (/gnu/store/nfxcjvv9c2q6in9x52kkkayqv38k00ai-alsa-lib-1.2.4/lib/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: No such file or directory) ALSA lib dlmisc.c:339:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (/gnu/store/nfxcjvv9c2q6in9x52kkkayqv38k00ai-alsa-lib-1.2.4/lib/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: No such file or directory) NIL ``` It looks like an issue with a shared library. WDYT? all best, jgart https://whereis.みんな/ gemini://whereis.みんな/
On Sat, 09 Apr 2022 18:18:18 -0400 jgart <jgart@dismail.de> wrote: Just wanted to share that I was also able to enter the clm package: ``` CL-USER(2): (in-package :clm) #<PACKAGE "CLM"> CLM(3): ``` all best, jgart
On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart@dismail.de> wrote:
> On Sat, 09 Apr 2022 18:18:18 -0400 jgart <jgart@dismail.de> wrote:
And that sbcl-clm and cl-clm are now in Guix 'R Us:
https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/lisp.scm#L2371
ecl-clm failed to build for me :(
I can try building ecl-clm again and sharing a failure log if you think that will prove useful.
all best,
jgart
jgart <jgart@dismail.de> skribis: > On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart@dismail.de> wrote: > > And that sbcl-clm and cl-clm are now in Guix 'R Us: > > https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/lisp.scm#L2371 After entering the :clm package and trying some simple examples using the "v.ins" instrument, it failed because of some missing ".so" shared library. Does it work for you?
On Tue, 12 Apr 2022 12:15:27 +0000 Guillaume Le Vaillant <glv@posteo.net> wrote: > jgart <jgart@dismail.de> skribis: > > > On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart@dismail.de> wrote: > > > > And that sbcl-clm and cl-clm are now in Guix 'R Us: > > > > https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/lisp.scm#L2371 > > After entering the :clm package and trying some simple examples using the > "v.ins" instrument, it failed because of some missing ".so" shared library. > Does it work for you? It fails because of the missing ".so" shared library for me also. Here are some notes from the author of clm: Try this: ``` (compile-file "v.ins") (load "v") ``` `` > I had also experienced this error when first running `(require :clm)` > in a sbcl repl: It looks like you're running pulse audio and need something from alsa? Maybe it's related to the code that builds sndplay in initmus.lisp. `` The above is from Bill regarding the shared library code. all best, jgart
Hello, jgart <jgart@dismail.de> writes: > On Tue, 12 Apr 2022 12:15:27 +0000 Guillaume Le Vaillant <glv@posteo.net> wrote: >> jgart <jgart@dismail.de> skribis: >> >> > On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart@dismail.de> wrote: >> > >> > And that sbcl-clm and cl-clm are now in Guix 'R Us: >> > >> > https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/lisp.scm#L2371 >> >> After entering the :clm package and trying some simple examples using the >> "v.ins" instrument, it failed because of some missing ".so" shared library. >> Does it work for you? > > It fails because of the missing ".so" shared library for me also. > > Here are some notes from the author of clm: > > Try this: > > ``` > (compile-file "v.ins") > (load "v") > ``` > > `` >> I had also experienced this error when first running `(require :clm)` >> in a sbcl repl: > > It looks like you're running pulse audio and need something from alsa? > Maybe it's related to the code that builds sndplay in initmus.lisp. > `` > > The above is from Bill regarding the shared library code. What is the status of this? Has the effort been abandoned? I'm of the opinion that WIP do not belongs to guix-patches, lest reviewers be drowned in a sea of unclosable tickets :-). You are welcome to post it to guix-devel though, where it will be archived for interested parties to pick it up. Thanks, Maxim
On Thu, 07 Jul 2022 14:23:37 -0400 Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote: > Hello, > > jgart <jgart@dismail.de> writes: > > > On Tue, 12 Apr 2022 12:15:27 +0000 Guillaume Le Vaillant <glv@posteo.net> wrote: > >> jgart <jgart@dismail.de> skribis: > >> > >> > On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart@dismail.de> wrote: > >> > > >> > And that sbcl-clm and cl-clm are now in Guix 'R Us: > >> > > >> > https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/lisp.scm#L2371 > >> > >> After entering the :clm package and trying some simple examples using the > >> "v.ins" instrument, it failed because of some missing ".so" shared library. > >> Does it work for you? > > > > It fails because of the missing ".so" shared library for me also. > > > > Here are some notes from the author of clm: > > > > Try this: > > > > ``` > > (compile-file "v.ins") > > (load "v") > > ``` > > > > `` > >> I had also experienced this error when first running `(require :clm)` > >> in a sbcl repl: > > > > It looks like you're running pulse audio and need something from alsa? > > Maybe it's related to the code that builds sndplay in initmus.lisp. > > `` > > > > The above is from Bill regarding the shared library code. > > What is the status of this? Has the effort been abandoned? I'm of the > opinion that WIP do not belongs to guix-patches, lest reviewers be > drowned in a sea of unclosable tickets :-). You are welcome to post it > to guix-devel though, where it will be archived for interested parties > to pick it up. > > Thanks, > > Maxim Maxim, Feel free to close this for now. I'll prioritize it again when I find the time. all best, jgart
Hello, [...] >> What is the status of this? Has the effort been abandoned? I'm of the >> opinion that WIP do not belongs to guix-patches, lest reviewers be >> drowned in a sea of unclosable tickets :-). You are welcome to post it >> to guix-devel though, where it will be archived for interested parties >> to pick it up. [...] > Maxim, > > Feel free to close this for now. I'll prioritize it again when I find the time. > > all best, > > jgart Thanks for the heads-up! Closing. Maxim
From 8a9880fcc51f33e0ad2f8fa1887b71c55a78ffb9 Mon Sep 17 00:00:00 2001 From: jgart <jgart@dismail.de> Date: Mon, 22 Nov 2021 15:45:28 -0500 Subject: [PATCH] gnu: Add cl-clm. * gnu/packages/lisp-xyz.scm (cl-clm, sbcl-clm): New variables. Co-authored-by: Guillaume Le Vaillant <glv@posteo.net> --- gnu/packages/lisp-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index bb697c4c60..799d8f7bbc 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -69,6 +69,7 @@ (define-module (gnu packages lisp-xyz) #:use-module (gnu packages file) #:use-module (gnu packages fonts) #:use-module (gnu packages fontutils) + #:use-module (gnu packages gcc) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) @@ -19721,6 +19722,48 @@ (define-public cl-cmn (define-public ecl-cmn (sbcl-package->ecl-package sbcl-cmn)) +(define-public sbcl-clm + (package + (name "sbcl-clm") + (version "5") + (source + (origin + (method url-fetch) + (uri "https://ccrma.stanford.edu/software/clm/clm-5.tar.gz") + (sha256 + (base32 "1ckgl7rsnxppnf47jqayrbyhm3hv6c4f7n2994ylva6wiy5w7wp8")))) + (build-system asdf-build-system/sbcl) + (native-inputs + `(("gcc" ,gcc))) + (inputs + `(("alsa-lib" ,alsa-lib))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "configure" + (("/bin/sh") + (which "bash"))) + (substitute* '("all.lisp" + "index.cl" + "initmus.lisp") + (("/bin/csh") + (which "bash"))) + (substitute* "all.lisp" + (("#\\+sbcl \\(shadowing-import 'clm:double\\)" all) + (string-append all + " #+sbcl (shadowing-import 'clm:env)")))))))) + (home-page "https://ccrma.stanford.edu/software/clm/") + (synopsis "Music synthesis and signal processing package") + (description +"Common Lisp Music is a music synthesis and signal processing package +in the Music V family.") + (license license:expat))) + +(define-public cl-clm + (sbcl-package->cl-source-package sbcl-clm)) + (define-public sbcl-cl-https-everywhere ;; No release. ;; Don't forget to update the https-everywhere input. -- 2.33.1