GNU bug report logs - #52045
[PATCH] gnu: Add cl-clm.

Previous Next

Package: guix-patches;

Reported by: jgart <jgart <at> dismail.de>

Date: Mon, 22 Nov 2021 21:12:02 UTC

Severity: normal

Tags: moreinfo, patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52045 in the body.
You can then email your comments to 52045 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#52045; Package guix-patches. (Mon, 22 Nov 2021 21:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jgart <jgart <at> dismail.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 22 Nov 2021 21:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: guix-patches <at> gnu.org
Cc: Guillaume Le Vaillant <glv <at> posteo.net>,
 Pierre Neidhardt <mail <at> ambrevar.xyz>, jgart <jgart <at> dismail.de>
Subject: [PATCH] gnu: Add cl-clm.
Date: Mon, 22 Nov 2021 15:45:28 -0500
Hi,

This is another WIP patch for the Common Lisp Music package (CLM) for GNU Guix.
It has a similar package definition to CMN which was successfully packaged and merged 
today into Guix thanks to the help of Bill, Guillaume, and Pierre:

https://en.wikipedia.org/wiki/Common_Lisp_Music

My goal in packaging clm and cmn is to subsequently be able to package
slippery-chicken for GNU Guix:

https://github.com/mdedwards/slippery-chicken

slippery-chicken hints at alsa headers required by clm on this line of its' install script:

https://github.com/mdedwards/slippery-chicken/blob/master/sc-install#L29

But, I think that the most immediate issue might be with the asd file in the clm repo:

https://ccrma.stanford.edu/software/clm/clm-5.tar.gz

Here is the asd file printed for convenience (delimited by backticks):

```
;;; ASDF system definition file for CLM
;;; For information on ASDF see: http://www.cliki.net/asdf
;;;
;;; To load CLM from a non-standard install location:
;;;
;;; (require :asdf)
;;; (push "/path/to/clm-3/" asdf:*central-registry*)
;;; (asdf:operate 'asdf:load-source-op :clm)
;;;
;;; To download/install/load CLM from its archive:
;;;
;;; (require :asdf)
;;; (progn (push "/path/to/asdf-install/" asdf:*central-registry*)
;;;        (asdf:operate 'asdf:load-op 'asdf-install))
;;; (asdf-install:install 'clm)
;;; (asdf:operate 'asdf:load-source-op 'clm)

;; from Rick Taube in 2006:
; (asdf:defsystem "clm"
;   :description "Common Lisp Music"
;   :version "3"
;   :author "William Schottstaedt <bil (at) ccrma (dot) stanford (dot) edu>"
;   :licence "BSD or whatever"
;   :components ((:file "all" )))

(in-package :asdf-user)

;; from Tito Latini 14-Dec-16:
(asdf:defsystem "clm"
   :description "Common Lisp Music"
   :version "5"
   :author "William Schottstaedt <bil (at) ccrma (dot) stanford (dot) edu>"
   :licence "BSD or whatever"
   :perform (compile-op (o c)
	      (load (system-relative-pathname "clm" "all.lisp"))))
```

Guillaume, do you see this asd file as needing a similar fix to your previous patching?

If so, I can try my hands at patching it myself while using your previous
patch to Bill as a template I can follow. 

I would send a patch to Bill afterwards for review and inclusion in the tarball.

My knowledge of asd file configuration is rather limited. Any advice here is much appreciated.

all best,

jgart

* gnu/packages/lisp-xyz.scm (cl-clm, sbcl-clm, ecl-clm): New variables.
---
 gnu/packages/lisp-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index bb697c4c60..918fb38c9f 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -19721,6 +19721,31 @@ (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")
+       (file-name (string-append "clm-" version ".tar.gz"))
+       (sha256
+        (base32 "1ckgl7rsnxppnf47jqayrbyhm3hv6c4f7n2994ylva6wiy5w7wp8"))))
+    (build-system asdf-build-system/sbcl)
+    (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 ecl-clm
+  (sbcl-package->ecl-package sbcl-clm))
+
 (define-public sbcl-cl-https-everywhere
   ;; No release.
   ;; Don't forget to update the https-everywhere input.
-- 
2.34.0





Information forwarded to guix-patches <at> gnu.org:
bug#52045; Package guix-patches. (Tue, 23 Nov 2021 13:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 52045 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: jgart <jgart <at> dismail.de>
Cc: 52045 <at> debbugs.gnu.org, Pierre Neidhardt <mail <at> ambrevar.xyz>
Subject: Re: [PATCH] gnu: Add cl-clm.
Date: Tue, 23 Nov 2021 13:00:45 +0000
[Message part 1 (text/plain, inline)]
jgart <jgart <at> dismail.de> skribis:

> Hi,
>
> This is another WIP patch for the Common Lisp Music package (CLM) for GNU Guix.
> It has a similar package definition to CMN which was successfully packaged and merged 
> today into Guix thanks to the help of Bill, Guillaume, and Pierre:
>
> https://en.wikipedia.org/wiki/Common_Lisp_Music
>
> My goal in packaging clm and cmn is to subsequently be able to package
> slippery-chicken for GNU Guix:
>
> https://github.com/mdedwards/slippery-chicken
>
> slippery-chicken hints at alsa headers required by clm on this line of its' install script:
>
> https://github.com/mdedwards/slippery-chicken/blob/master/sc-install#L29
>
> But, I think that the most immediate issue might be with the asd file in the clm repo:
>
> https://ccrma.stanford.edu/software/clm/clm-5.tar.gz
>
> Here is the asd file printed for convenience (delimited by backticks):
>
> [...]
>
> Guillaume, do you see this asd file as needing a similar fix to your previous patching?
>
> If so, I can try my hands at patching it myself while using your previous
> patch to Bill as a template I can follow. 
>
> I would send a patch to Bill afterwards for review and inclusion in the tarball.
>
> My knowledge of asd file configuration is rather limited. Any advice here is much appreciated.
>
> all best,
>
> jgart

Hi,

Making an asdf system definition for clm similar to the one for cmn
won't be enough, because in addition to compiling lisp files, the
"all.lisp" file is also calling the "configure" script and calling gcc
to compile C code and make a shared library.

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.
[0001-gnu-Add-cl-clm.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#52045; Package guix-patches. (Sat, 09 Apr 2022 22:19:02 GMT) Full text and rfc822 format available.

Message #11 received at 52045 <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 52045 <at> debbugs.gnu.org, Pierre Neidhardt <mail <at> ambrevar.xyz>
Subject: Re: [PATCH] gnu: Add cl-clm.
Date: Sat, 9 Apr 2022 18:18:18 -0400
On Tue, 23 Nov 2021 13:00:45 +0000 Guillaume Le Vaillant <glv <at> 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.みんな/




Information forwarded to guix-patches <at> gnu.org:
bug#52045; Package guix-patches. (Sat, 09 Apr 2022 22:32:02 GMT) Full text and rfc822 format available.

Message #14 received at 52045 <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 52045 <at> debbugs.gnu.org, Pierre Neidhardt <mail <at> ambrevar.xyz>
Subject: Re: [PATCH] gnu: Add cl-clm.
Date: Sat, 9 Apr 2022 18:31:38 -0400
On Sat, 09 Apr 2022 18:18:18 -0400 jgart <jgart <at> 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




Information forwarded to guix-patches <at> gnu.org:
bug#52045; Package guix-patches. (Sat, 09 Apr 2022 22:34:01 GMT) Full text and rfc822 format available.

Message #17 received at 52045 <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 52045 <at> debbugs.gnu.org, Pierre Neidhardt <mail <at> ambrevar.xyz>
Subject: Re: [PATCH] gnu: Add cl-clm.
Date: Sat, 9 Apr 2022 18:33:42 -0400
On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart <at> dismail.de> wrote:
> On Sat, 09 Apr 2022 18:18:18 -0400 jgart <jgart <at> 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




Information forwarded to guix-patches <at> gnu.org:
bug#52045; Package guix-patches. (Tue, 12 Apr 2022 12:23:02 GMT) Full text and rfc822 format available.

Message #20 received at 52045 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: jgart <jgart <at> dismail.de>
Cc: 52045 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add cl-clm.
Date: Tue, 12 Apr 2022 12:15:27 +0000
[Message part 1 (text/plain, inline)]
jgart <jgart <at> dismail.de> skribis:

> On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart <at> 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?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#52045; Package guix-patches. (Tue, 12 Apr 2022 16:30:03 GMT) Full text and rfc822 format available.

Message #23 received at 52045 <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 52045 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add cl-clm.
Date: Tue, 12 Apr 2022 12:28:51 -0400
On Tue, 12 Apr 2022 12:15:27 +0000 Guillaume Le Vaillant <glv <at> posteo.net> wrote:
> jgart <jgart <at> dismail.de> skribis:
> 
> > On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart <at> 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





Information forwarded to guix-patches <at> gnu.org:
bug#52045; Package guix-patches. (Thu, 07 Jul 2022 18:24:02 GMT) Full text and rfc822 format available.

Message #26 received at 52045 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: jgart <jgart <at> dismail.de>
Cc: Guillaume Le Vaillant <glv <at> posteo.net>, 52045 <at> debbugs.gnu.org
Subject: Re: bug#52045: [PATCH] gnu: Add cl-clm.
Date: Thu, 07 Jul 2022 14:23:37 -0400
Hello,

jgart <jgart <at> dismail.de> writes:

> On Tue, 12 Apr 2022 12:15:27 +0000 Guillaume Le Vaillant <glv <at> posteo.net> wrote:
>> jgart <jgart <at> dismail.de> skribis:
>> 
>> > On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart <at> 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




Added tag(s) moreinfo. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 07 Jul 2022 18:24:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#52045; Package guix-patches. (Fri, 08 Jul 2022 00:17:01 GMT) Full text and rfc822 format available.

Message #31 received at 52045 <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: Guillaume Le Vaillant <glv <at> posteo.net>, 52045 <at> debbugs.gnu.org
Subject: Re: bug#52045: [PATCH] gnu: Add cl-clm.
Date: Thu, 7 Jul 2022 19:16:18 -0500
On Thu, 07 Jul 2022 14:23:37 -0400 Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:
> Hello,
> 
> jgart <jgart <at> dismail.de> writes:
> 
> > On Tue, 12 Apr 2022 12:15:27 +0000 Guillaume Le Vaillant <glv <at> posteo.net> wrote:
> >> jgart <jgart <at> dismail.de> skribis:
> >> 
> >> > On Sat, 09 Apr 2022 18:31:38 -0400 jgart <jgart <at> 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




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Sat, 09 Jul 2022 01:39:02 GMT) Full text and rfc822 format available.

Notification sent to jgart <jgart <at> dismail.de>:
bug acknowledged by developer. (Sat, 09 Jul 2022 01:39:02 GMT) Full text and rfc822 format available.

Message #36 received at 52045-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: jgart <jgart <at> dismail.de>
Cc: Guillaume Le Vaillant <glv <at> posteo.net>, 52045-done <at> debbugs.gnu.org
Subject: Re: bug#52045: [PATCH] gnu: Add cl-clm.
Date: Fri, 08 Jul 2022 21:38:04 -0400
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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 06 Aug 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 264 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.