Re: sbcl-ningle: permission denied

2021-12-12 Thread Guillaume Le Vaillant
The package for ningle has a custom phase changing the name of the
compiled files, this is why when you try to load it ASDF thinks that the
system has not been compiled yet, tries to compile it and fails because
it can't write the compiled files to the read-only "/gnu/store/...".

I don't know if this custom phase is necessary or if it's just
a leftover from the way asdf-build-system worked in the past...

Could you try the attached patch removing the custom phase and see if
everything works fine? If yes I'll push it to master.
From 78afaccecf95e4087564217c40f4d4eb4843357c Mon Sep 17 00:00:00 2001
From: Guillaume Le Vaillant 
Date: Sun, 12 Dec 2021 10:40:24 +0100
Subject: [PATCH] gnu: cl-ningle: Fix location of fasl files.

* gnu/packages/lisp-xyz.scm (sbcl-ningle)[arguments]: Remove custom phases.
---
 gnu/packages/lisp-xyz.scm | 25 +
 1 file changed, 1 insertion(+), 24 deletions(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index e25d0f5488..c292b91b89 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -4855,30 +4855,7 @@ (define-public sbcl-ningle
   (build-system asdf-build-system/sbcl)
   (arguments
;; TODO: pull in clack-test
-   '(#:tests? #f
- #:phases
- (modify-phases %standard-phases
-   (delete 'cleanup-files)
-   (delete 'cleanup)
-   (add-before 'cleanup 'combine-fasls
- (lambda* (#:key outputs #:allow-other-keys)
-   (let* ((out (assoc-ref outputs "out"))
-  (lib (string-append out "/lib/sbcl"))
-  (ningle-path (string-append lib "/ningle"))
-  (fasl-files (find-files out "\\.fasl$")))
- (mkdir-p ningle-path)
- (let ((fasl-path (lambda (name)
-(string-append ningle-path
-   "/"
-   (basename name)
-   "--system.fasl"
-   (for-each (lambda (file)
-   (rename-file file
-(fasl-path
- (basename file ".fasl"
- fasl-files))
- fasl-files)
-   #t)
+   '(#:tests? #f))
   (native-inputs
`(("sbcl-prove" ,sbcl-prove)))
   (inputs
-- 
2.34.0



signature.asc
Description: PGP signature


Re: sbcl-ningle: permission denied

2021-12-12 Thread edk
Hi !

The store (everything under /gnu/store) is read-only. The only way to
edit it is when building a package.

If cl-ningle does not call asdf:make, then you'll need to edit the
package so that it does.

Maybe there's a way to tell asdf to put build products somewhere else
than near the source code, in which case you may point to somewhere
outside the store ?

Good luck,

Edouard.
jgart  writes:

> Hi Guixers,
>
> Just reporting this issue.
>
> I had sbcl and sbcl-ningle in my profile.
>
> When I try to build ningle I get the error below:
>
> ```
> λ rlwrap sbcl
> This is SBCL 2.1.9, an implementation of ANSI Common Lisp.
> More information about SBCL is available at .
>
> 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): (asdf:make :ningle)
> WARNING: System definition file 
> #P"/gnu/store/zwkhqlyijf8bwpm3a70f7ly978w2knqw-sbcl-flexi-streams-1.0.19/share/common-lisp/sbcl/flexi-streams/flexi-streams.asd"
>  contains definition for system "flexi-streams-test". Please only define 
> "flexi-streams" and secondary systems with a name starting with 
> "flexi-streams/" (e.g. "flexi-streams/test") in that file.
>
> debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
> #:
>   Error opening 
> #P"/gnu/store/8jn98z4pr2r9dglsw37a70y8nl6ksb9i-sbcl-ningle-0.3.0-1.50bd4f0/lib/common-lisp/sbcl/ningle/context-tmpGHU3ALSV.fasl":
>
> Permission denied
>
> Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
>
> restarts (invokable by number or by possibly-abbreviated name):
>   0: [CONTINUE ] Retry opening.
>   1: [USE-VALUE] Try opening a different file.
>   2: [RETRY] Retry
>  compiling # "ningle/context" "file-type">.
>   3: [ACCEPT   ] Continue, treating
>  compiling # "ningle/context" "file-type">
>  as having been successful.
>   4: Retry ASDF operation.
>   5: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
>  configuration.
>   6: Retry ASDF operation.
>   7: Retry ASDF operation after resetting the
>  configuration.
>   8: [ABORT] Exit debugger, returning to top level.
>
> (SB-IMPL::FILE-PERROR 
> #P"/gnu/store/8jn98z4pr2r9dglsw37a70y8nl6ksb9i-sbcl-ningle-0.3.0-1.50bd4f0/lib/common-lisp/sbcl/ningle/context-tmpGHU3ALSV.fasl"
>  13 "Error opening ~S" 
> #P"/gnu/store/8jn98z4pr2r9dglsw37a70y8nl6ksb9i-sbcl-ningle-0.3.0-1.50bd4f0/lib/common-lisp/sbcl/ningle/context-tmpGHU3ALSV.fasl")
> ```
>
> WDYT?




sbcl-ningle: permission denied

2021-12-11 Thread jgart


Hi Guixers,

Just reporting this issue.

I had sbcl and sbcl-ningle in my profile.

When I try to build ningle I get the error below:

```
λ rlwrap sbcl
This is SBCL 2.1.9, an implementation of ANSI Common Lisp.
More information about SBCL is available at .

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): (asdf:make :ningle)
WARNING: System definition file 
#P"/gnu/store/zwkhqlyijf8bwpm3a70f7ly978w2knqw-sbcl-flexi-streams-1.0.19/share/common-lisp/sbcl/flexi-streams/flexi-streams.asd"
 contains definition for system "flexi-streams-test". Please only define 
"flexi-streams" and secondary systems with a name starting with 
"flexi-streams/" (e.g. "flexi-streams/test") in that file.

debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
#:
  Error opening 
#P"/gnu/store/8jn98z4pr2r9dglsw37a70y8nl6ksb9i-sbcl-ningle-0.3.0-1.50bd4f0/lib/common-lisp/sbcl/ningle/context-tmpGHU3ALSV.fasl":

Permission denied

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [CONTINUE ] Retry opening.
  1: [USE-VALUE] Try opening a different file.
  2: [RETRY] Retry
 compiling #.
  3: [ACCEPT   ] Continue, treating
 compiling #
 as having been successful.
  4: Retry ASDF operation.
  5: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
 configuration.
  6: Retry ASDF operation.
  7: Retry ASDF operation after resetting the
 configuration.
  8: [ABORT] Exit debugger, returning to top level.

(SB-IMPL::FILE-PERROR 
#P"/gnu/store/8jn98z4pr2r9dglsw37a70y8nl6ksb9i-sbcl-ningle-0.3.0-1.50bd4f0/lib/common-lisp/sbcl/ningle/context-tmpGHU3ALSV.fasl"
 13 "Error opening ~S" 
#P"/gnu/store/8jn98z4pr2r9dglsw37a70y8nl6ksb9i-sbcl-ningle-0.3.0-1.50bd4f0/lib/common-lisp/sbcl/ningle/context-tmpGHU3ALSV.fasl")
```

WDYT?