unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* sbcl-ningle: permission denied
@ 2021-12-12  3:59 jgart
  2021-12-12  8:50 ` edk
  0 siblings, 1 reply; 3+ messages in thread
From: jgart @ 2021-12-12  3:59 UTC (permalink / raw)
  To: Guix Help


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 <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): (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
#<THREAD "main thread" RUNNING {100B790173}>:
  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 #<CL-SOURCE-FILE "ningle/context" "file-type">.
  3: [ACCEPT                       ] Continue, treating
                                     compiling #<CL-SOURCE-FILE "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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sbcl-ningle: permission denied
  2021-12-12  3:59 sbcl-ningle: permission denied jgart
@ 2021-12-12  8:50 ` edk
  2021-12-12  9:44   ` Guillaume Le Vaillant
  0 siblings, 1 reply; 3+ messages in thread
From: edk @ 2021-12-12  8:50 UTC (permalink / raw)
  To: jgart; +Cc: help-guix

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 <jgart@dismail.de> 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 <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): (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
> #<THREAD "main thread" RUNNING {100B790173}>:
>   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 #<CL-SOURCE-FILE "ningle/context" "file-type">.
>   3: [ACCEPT                       ] Continue, treating
>                                      compiling #<CL-SOURCE-FILE "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?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sbcl-ningle: permission denied
  2021-12-12  8:50 ` edk
@ 2021-12-12  9:44   ` Guillaume Le Vaillant
  0 siblings, 0 replies; 3+ messages in thread
From: Guillaume Le Vaillant @ 2021-12-12  9:44 UTC (permalink / raw)
  To: jgart; +Cc: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 534 bytes --]

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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-cl-ningle-Fix-location-of-fasl-files.patch --]
[-- Type: text/x-patch, Size: 2055 bytes --]

From 78afaccecf95e4087564217c40f4d4eb4843357c Mon Sep 17 00:00:00 2001
From: Guillaume Le Vaillant <glv@posteo.net>
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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-12  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-12  3:59 sbcl-ningle: permission denied jgart
2021-12-12  8:50 ` edk
2021-12-12  9:44   ` Guillaume Le Vaillant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).