unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Roland Everaert <r.everaert@protonmail.com>
To: Guillaume Le Vaillant <glv@posteo.net>
Cc: help-guix@gnu.org
Subject: Re: Foreign distribution: errors when loading contrib modules of stumpwm
Date: Tue, 23 Feb 2021 11:58:13 +0000	[thread overview]
Message-ID: <Il_3riMUVyNldb5G3mfONfxK5BUd_l2-Psh01MeWT3lPFMluPiXYKDZbzUM948V0rGuPKxyoCbb-TYvrFg6gCp65_i9uePjyMt8MY2b7x4I=@protonmail.com> (raw)
In-Reply-To: <87eeh7ys02.fsf@yamatai>



Roland Everaert
---
Use the F.O.S.S., Luke

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

Le mardi 23 février 2021 à 11:53, Guillaume Le Vaillant &lt;<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:glv@posteo.net">glv@posteo.net</a>&gt; a écrit :

&gt; Roland Everaert <a target="_blank" rel="noreferrer nofollow noopener" href="mailto:r.everaert@protonmail.com">r.everaert@protonmail.com</a> skribis:
&gt;
&gt; &gt; Le lundi 22 février 2021 à 10:41, Guillaume Le Vaillant <a target="_blank" rel="noreferrer nofollow noopener" href="mailto:glv@posteo.net">glv@posteo.net</a> a écrit :
&gt; &gt;
&gt; &gt; &gt; Roland Everaert via <a target="_blank" rel="noreferrer nofollow noopener" href="mailto:help-guix@gnu.org">help-guix@gnu.org</a> skribis:
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; I have installed StumpWM and some contrib modules, on a Fedora 33 distribution using the guix PM, for many month, without much problem. Since the begining of the week (last guix update), whenever I load a contrib module, StumpWM complains about a FASL file being read-only somewhere in /gnu/store/&lt;hash&gt;-stumpwm-lib.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Any idea what has changed in stumpwm and its contrib modules?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Below is my StumpWM configuration:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; ------------ Start of sources -----------------
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; ;; --lisp--
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; ;;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; (in-package :stumpwm)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; ;; * Adding modules
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; (add-to-load-path &quot;~/.guix-profile/share/common-lisp/sbcl/clx-xembed&quot;)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; (add-to-load-path &quot;~/.guix-profile/share/common-lisp/sbcl/stumpwm-stumptray&quot;)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; (load-module &quot;stumptray&quot;)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; ------------ End of sources -----------------
&gt; &gt; &gt;
&gt; &gt; &gt; This is strange, as the last change directly related to StumpWM was
&gt; &gt; &gt;
&gt; &gt; &gt; made several months ago (around 2020-12-10).
&gt; &gt; &gt;
&gt; &gt; &gt; How do you start StumpWM? Do you use a '.xsession' file?
&gt; &gt; &gt;
&gt; &gt; &gt; What are your XDG_CONFIG_DIRS and XDG_DATA_DIRS environment variables
&gt; &gt; &gt;
&gt; &gt; &gt; set to?
&gt; &gt;
&gt; &gt; I start Stumpwm from gdm, and I don't use an .xsession file.
&gt; &gt;
&gt; &gt; I manage to configure emacs and StumpWM correctly, to be able to interact with StumpWM using SLY. You will find below the code I have executed in the REPL and the exception generated by the last instruction.
&gt; &gt;
&gt; &gt; The value of the Environment variable:
&gt; &gt;
&gt; &gt; STUMPWM&gt; (asdf:load-system :uiop)
&gt; &gt;
&gt; &gt; T
&gt; &gt;
&gt; &gt; STUMPWM&gt; (uiop:getenv &quot;XDG_CONFIG_DIRS&quot;)
&gt; &gt;
&gt; &gt; &quot;/home/roland/.guix-profile/etc&quot;
&gt; &gt;
&gt; &gt; STUMPWM&gt; (uiop:getenv &quot;XDG_DATA_DIRS&quot;)
&gt; &gt;
&gt; &gt; &quot;/home/roland/.guix-profile/share:/home/roland/.guix-profile/share:/home/roland/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/&quot;
&gt; &gt;
&gt; &gt; The code:
&gt; &gt;
&gt; &gt; CL-USER&gt; (in-package stumpwm)
&gt; &gt;
&gt; &gt; #&lt;PACKAGE &quot;STUMPWM&quot;&gt;
&gt; &gt;
&gt; &gt; STUMPWM&gt; (set-module-dir &quot;~/.guix-profile/share/common-lisp/sbcl&quot;)
&gt; &gt;
&gt; &gt; (#P&quot;/gnu/store/yi6dypcphhjbz9gp0l8z8r3pwjr71q6v-sbcl-clx-0.7.5/share/common-lisp/sbcl/clx/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/lskhxlvddjjkg3c4v49ppm9y022ajzi6-sbcl-stumpwm-pass-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-pass/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/ia41a2gd9klix8xdmhgsr16j998q7xfx-sbcl-stumpwm-ttf-fonts-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-ttf-fonts/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/dvs3f9jrw4g3p3g17v34a71l3ccjas8b-sbcl-stumpwm-net-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-net/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/4fjpm820912fy2rmybydncg06xb3svjx-sbcl-stumpwm-swm-gaps-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-swm-gaps/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/y3602x94y7myl25srcghgh1fw5ldaxfj-sbcl-stumpwm-stumptray-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-stumptray/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/7mm2idvr4jrbwidp79phkg6nm9wx5ly4-sbcl-clx-xembed-0.1-1.a5c4b84/share/common-lisp/sbcl/clx-xembed/&quot;)
&gt; &gt;
&gt; &gt; STUMPWM&gt; (add-to-load-path &quot;~/.guix-profile/share/common-lisp/sbcl/clx-xembed&quot;)
&gt; &gt;
&gt; &gt; (add-to-load-path &quot;~/.guix-profile/share/common-lisp/sbcl/stumpwm-stumptray&quot;)
&gt; &gt;
&gt; &gt; (#P&quot;/gnu/store/yi6dypcphhjbz9gp0l8z8r3pwjr71q6v-sbcl-clx-0.7.5/share/common-lisp/sbcl/clx/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/lskhxlvddjjkg3c4v49ppm9y022ajzi6-sbcl-stumpwm-pass-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-pass/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/ia41a2gd9klix8xdmhgsr16j998q7xfx-sbcl-stumpwm-ttf-fonts-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-ttf-fonts/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/dvs3f9jrw4g3p3g17v34a71l3ccjas8b-sbcl-stumpwm-net-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-net/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/4fjpm820912fy2rmybydncg06xb3svjx-sbcl-stumpwm-swm-gaps-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-swm-gaps/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/y3602x94y7myl25srcghgh1fw5ldaxfj-sbcl-stumpwm-stumptray-0.0.1-2.920f8fc/share/common-lisp/sbcl/stumpwm-stumptray/&quot;
&gt; &gt;
&gt; &gt; #P&quot;/gnu/store/7mm2idvr4jrbwidp79phkg6nm9wx5ly4-sbcl-clx-xembed-0.1-1.a5c4b84/share/common-lisp/sbcl/clx-xembed/&quot;)
&gt; &gt;
&gt; &gt; STUMPWM&gt; (load-module &quot;stumptray&quot;)
&gt; &gt;
&gt; &gt; The Backtrace:
&gt; &gt;
&gt; &gt; Error opening #P&quot;/gnu/store/9f98ids4s8hg306chy36d3bhk7zmyg9a-stumpwm-20.11-lib/lib/common-lisp/sbcl/stumpwm/package-tmp5GEXGEG5.fasl&quot;:
&gt; &gt;
&gt; &gt; Read-only file system
&gt; &gt;
&gt; &gt; [Condition of type SB-INT:SIMPLE-FILE-ERROR]
&gt; &gt;
&gt; &gt; Restarts:
&gt; &gt;
&gt; &gt; 0: [CONTINUE] Retry opening.
&gt; &gt;
&gt; &gt; 1: [USE-VALUE] Try opening a different file.
&gt; &gt;
&gt; &gt; 2: [RETRY] Retry compiling #&lt;CL-SOURCE-FILE &quot;stumpwm&quot; &quot;package&quot;&gt;.
&gt; &gt;
&gt; &gt; 3: [ACCEPT] Continue, treating compiling #&lt;CL-SOURCE-FILE &quot;stumpwm&quot; &quot;package&quot;&gt; as having been successful.
&gt; &gt;
&gt; &gt; 4: [RETRY] Retry ASDF operation.
&gt; &gt;
&gt; &gt; 5: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the configuration.
&gt; &gt;
&gt; &gt; 6: [RETRY] Retry ASDF operation.
&gt; &gt;
&gt; &gt; 7: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the configuration.
&gt; &gt;
&gt; &gt; 8: [RETRY] Retry SLY mREPL evaluation request.
&gt; &gt;
&gt; &gt; 9: [*ABORT] Return to SLY's top level.
&gt; &gt;
&gt; &gt; 10: [ABORT] abort thread (#&lt;THREAD &quot;sly-channel-1-mrepl-remote-1&quot; RUNNING {1002E8AA53}&gt;)
&gt; &gt;
&gt; &gt; Backtrace:
&gt; &gt;
&gt; &gt; 0: (SB-IMPL::FILE-PERROR #P&quot;/gnu/store/9f98ids4s8hg306chy36d3bhk7zmyg9a-stumpwm-20.11-lib/lib/common-lisp/sbcl/stumpwm/package-tmp5GEXGEG5.fasl&quot; 30 &quot;Error opening ~S&quot; #P&quot;/gnu/store/9f98ids4s8hg306chy36d3..
&gt; &gt;
&gt; &gt; 1: (SB-IMPL::%OPEN-ERROR #P&quot;/gnu/store/9f98ids4s8hg306chy36d3bhk7zmyg9a-stumpwm-20.11-lib/lib/common-lisp/sbcl/stumpwm/package-tmp5GEXGEG5.fasl&quot; 30 NIL :CREATE)
&gt; &gt;
&gt; &gt; 2: (OPEN #P&quot;/gnu/store/9f98ids4s8hg306chy36d3bhk7zmyg9a-stumpwm-20.11-lib/lib/common-lisp/sbcl/stumpwm/package-tmp5GEXGEG5.fasl&quot; :DIRECTION :IO :ELEMENT-TYPE :DEFAULT :IF-EXISTS NIL :IF-DOES-NOT-EXIST :C..
&gt; &gt;
&gt; &gt; 3: (UIOP/STREAM:CALL-WITH-TEMPORARY-FILE #&lt;FUNCTION (FLET &quot;BEFORE236&quot; :IN UIOP/STREAM::GET-TEMPORARY-FILE) {524DDE6B}&gt; :WANT-STREAM-P NIL :WANT-PATHNAME-P T :DIRECTION :IO :KEEP T :AFTER NIL :DIRECTORY #..
&gt; &gt;
&gt; &gt; 4: (UIOP/LISP-BUILD:COMPILE-FILE* #P&quot;/gnu/store/9f98ids4s8hg306chy36d3bhk7zmyg9a-stumpwm-20.11-lib/share/common-lisp/sbcl/stumpwm/package.lisp&quot; :OUTPUT-FILE #P&quot;/gnu/store/9f98ids4s8hg306chy36d3bhk7zmyg9a..
&gt; &gt;
&gt; &gt; 5: (ASDF/LISP-ACTION:PERFORM-LISP-COMPILATION #&lt;ASDF/LISP-ACTION:COMPILE-OP &gt; #&lt;ASDF/LISP-ACTION:CL-SOURCE-FILE &quot;stumpwm&quot; &quot;package&quot;&gt;)
&gt; &gt;
&gt; &gt; 6: ((SB-PCL::EMF ASDF/ACTION:PERFORM) #&lt;unused argument&gt; #&lt;unused argument&gt; #&lt;ASDF/LISP-ACTION:COMPILE-OP &gt; #&lt;ASDF/LISP-ACTION:CL-SOURCE-FILE &quot;stumpwm&quot; &quot;package&quot;&gt;)
&gt; &gt;
&gt; &gt; 7: ((LAMBDA NIL :IN ASDF/ACTION:CALL-WHILE-VISITING-ACTION))
&gt; &gt;
&gt; &gt; 8: ((:METHOD ASDF/ACTION:PERFORM-WITH-RESTARTS :AROUND (T T)) #&lt;ASDF/LISP-ACTION:COMPILE-OP &gt; #&lt;ASDF/LISP-ACTION:CL-SOURCE-FILE &quot;stumpwm&quot; &quot;package&quot;&gt;) [fast-method]
&gt; &gt;
&gt; &gt; 9: ((:METHOD ASDF/PLAN:PERFORM-PLAN (T)) #&lt;ASDF/PLAN:SEQUENTIAL-PLAN {1005840B43}&gt;) [fast-method]
&gt; &gt;
&gt; &gt; 10: ((FLET SB-C::WITH-IT :IN SB-C::%WITH-COMPILATION-UNIT))
&gt; &gt;
&gt; &gt; 11: ((:METHOD ASDF/PLAN:PERFORM-PLAN :AROUND (T)) #&lt;ASDF/PLAN:SEQUENTIAL-PLAN {1005840B43}&gt;) [fast-method]
&gt; &gt;
&gt; &gt; 12: ((:METHOD ASDF/OPERATE:OPERATE (ASDF/OPERATION:OPERATION ASDF/COMPONENT:COMPONENT)) #&lt;ASDF/LISP-ACTION:LOAD-OP &gt; #&lt;ASDF/SYSTEM:SYSTEM &quot;stumptray&quot;&gt; :PLAN-CLASS NIL :PLAN-OPTIONS NIL) [fast-method]
&gt; &gt;
&gt; &gt; 13: ((SB-PCL::EMF ASDF/OPERATE:OPERATE) #&lt;unused argument&gt; #&lt;unused argument&gt; #&lt;ASDF/LISP-ACTION:LOAD-OP &gt; #&lt;ASDF/SYSTEM:SYSTEM &quot;stumptray&quot;&gt;)
&gt; &gt;
&gt; &gt; 14: ((LAMBDA NIL :IN ASDF/OPERATE:OPERATE))
&gt; &gt;
&gt; &gt; 15: ((:METHOD ASDF/OPERATE:OPERATE :AROUND (T T)) #&lt;ASDF/LISP-ACTION:LOAD-OP &gt; #&lt;ASDF/SYSTEM:SYSTEM &quot;stumptray&quot;&gt;) [fast-method]
&gt; &gt;
&gt; &gt; 16: ((SB-PCL::EMF ASDF/OPERATE:OPERATE) #&lt;unused argument&gt; #&lt;unused argument&gt; ASDF/LISP-ACTION:LOAD-OP &quot;stumptray&quot;)
&gt; &gt;
&gt; &gt; 17: ((LAMBDA NIL :IN ASDF/OPERATE:OPERATE))
&gt; &gt;
&gt; &gt; 18: ((:METHOD ASDF/OPERATE:OPERATE :AROUND (T T)) ASDF/LISP-ACTION:LOAD-OP &quot;stumptray&quot;) [fast-method]
&gt; &gt;
&gt; &gt; 19: (ASDF/SESSION:CALL-WITH-ASDF-SESSION #&lt;FUNCTION (LAMBDA NIL :IN ASDF/OPERATE:OPERATE) {1003844D0B}&gt; :OVERRIDE T :KEY NIL :OVERRIDE-CACHE T :OVERRIDE-FORCING NIL)
&gt; &gt;
&gt; &gt; 20: ((LAMBDA NIL :IN ASDF/OPERATE:OPERATE))
&gt; &gt;
&gt; &gt; 21: (ASDF/SESSION:CALL-WITH-ASDF-SESSION #&lt;FUNCTION (LAMBDA NIL :IN ASDF/OPERATE:OPERATE) {100383F36B}&gt; :OVERRIDE NIL :KEY NIL :OVERRIDE-CACHE NIL :OVERRIDE-FORCING NIL)
&gt; &gt;
&gt; &gt; 22: ((:METHOD ASDF/OPERATE:OPERATE :AROUND (T T)) ASDF/LISP-ACTION:LOAD-OP &quot;stumptray&quot;) [fast-method]
&gt; &gt;
&gt; &gt; 23: (LOAD-MODULE &quot;stumptray&quot;)
&gt;
&gt; It looks like StumpWM is trying to recompile the module (and put it in
&gt;
&gt; a read-only directory) instead of using the already compiled files.
&gt;
&gt; Are you using the stumpwm-with-slynk package, or the regular stumpwm
&gt;
&gt; one?
&gt;
&gt; What are the results of the commands 'which stumpwm'
&gt;
&gt; and 'pgrep -af stumpwm'?
&gt;
&gt; Could you try loading stumptray without using any 'add-to-load-path'
&gt;
&gt; calls? In my config I only have '(set-module-dir ...)' and
&gt;
&gt; '(load-module &quot;stumptray&quot;)' and it works. It shouldn't make
&gt;
&gt; a difference, but just in case...

I have used both stumpwm and stumpwm-with-slynk. Now I use the latter.

Result of 'which stumpwm': ~/.guix-profile/bin/stumpwm

Result of 'pgrep -af stumpwm':
[roland@singularity ~]$ pgrep -af stumpwm
2092 /usr/libexec/gdm-x-session --register-session --run-script /home/roland/.guix-profile/bin/stumpwm
2139 /home/roland/.guix-profile/bin/stumpwm
2298 /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c &quot;/home/roland/.guix-profile/bin/stumpwm&quot;

I have tried, loading the module without any 'add-to-load-path call', but after calling '(set-module-dir "~/.guix-profile/share/common-lisp/sbcl")' and the problem remains.


  reply	other threads:[~2021-02-23 11:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-19 16:55 Foreign distribution: errors when loading contrib modules of stumpwm Roland Everaert via
2021-02-22  9:41 ` Guillaume Le Vaillant
2021-02-22 18:54   ` Roland Everaert
2021-02-23 10:53     ` Guillaume Le Vaillant
2021-02-23 11:58       ` Roland Everaert [this message]
2021-02-23 12:16         ` Roland Everaert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Il_3riMUVyNldb5G3mfONfxK5BUd_l2-Psh01MeWT3lPFMluPiXYKDZbzUM948V0rGuPKxyoCbb-TYvrFg6gCp65_i9uePjyMt8MY2b7x4I=@protonmail.com' \
    --to=r.everaert@protonmail.com \
    --cc=glv@posteo.net \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).