Re: stumpwm on guix - "sb-cltl2" issues

2022-07-02 Thread Benjamin Slade
I think I finally figured out how to get (my) StumpWM configuration to work on 
Guix:

- add (maybe only need one:)
  - to `.bashrc':
,
| export SBCL_HOME="$HOME/.guix-home/profile/lib/sbcl"
`
  - to Guix Home configuration, a home-environment variable `("SBCL_HOME" . 
"$HOME/.guix-home/profile/lib/sbcl")' configuration, e.g.:
,
| 
| (simple-service 'some-useful-env-vars-service
| home-environment-variables-service-type
| `(("SBCL_HOME" . "$HOME/.guix-home/profile/lib/sbcl")
|   ("GUIX_LOCPATH" . "$home/.guix-profile/lib/locale")
|   
|   ("LANG" . "en_GB.UTF-8")
|   ("LANGUAGE" . "en_GB")))
| .
`
- for my configuration I also needed to install the following packages:
  - `sbcl-local-time'
  - `sbcl-clx-xembed'
  - `sbcl-local-time'


Re: stumpwm on guix - "sb-cltl2" issues

2022-05-13 Thread Benjamin Slade
On Fri, 06 May 2022 08:44:46 -0600 (1 week, 4 hours, 25 minutes ago), Katherine 
Cox-Buday  wrote:

> Wil deBeest  writes:

> > 
> > Wil deBeest  writes:
> >
> >> 
> >> Benjamin Slade  writes:
> >> 
> >>> I'm trying to run my long-standing stumpwm init.lisp on a recent Guix
> >>> install, using the packaged stumpwm, however when it launches, it
> >>> fails to process the init.lisp and gives me an "Don't know how to
> >>> REQUIRE sb-cltl2." error.
> >>> I've set the SBCL_HOME variable both in .xprofile and in the init.lisp
> >>> itself [via `(sb-posix:putenv
> >>> "SBCL_HOME=/run/current-system/profile/lib/sbcl/")' ], but this
> >>> doesn't seem to help.
> >>> Is there a good way around this? (On my other system I just compile
> >>> stumpwm from source and install; I don't know if that makes a
> >>> difference here.)
> >>> —Ben
> >> 
> >> I used to have the same problem, but I don't remember what fixed it.
> >> 
> >> SBCL_HOME isn't set at all, I only have `exec
> >> /home/bovid-19/.guix-profile/bin/stumpwm' in my
> >> `~/.xinitrc', and my stumpwm init file starts like this:
> >> 
> >> (in-package :stumpwm)
> >> (require 'sb-cltl2)
> >> 
> >> 
> >> I'm not sure what else I can look for.
> >
> > I have probably found the solution: in addition to stumpwm, I also have
> > `cl-trivial-cltl2' and `cl-asdf' (and sbcl) in my system configuration.
> > If you can confirm that those two packages are what was missing, we
> > should add them to the stumpwm package as inputs.

> I think I have this problem? But like Benjamin, it has also been a very long
> time since I addressed it. In my profiles, I include:

>  "stumpwm"
>  "sbcl-stumpwm-kbd-layouts"
>  ;; net module has this unacknowledged dependency
>  "sbcl-cl-ppcre"
>  "sbcl-stumpwm-net"
>  "sbcl-stumpwm-pass"
>  "sbcl-stumpwm-stumptray"
>  "sbcl-stumpwm-swm-gaps"
>  "sbcl-stumpwm-ttf-fonts"

> and I don't seem to have any problem. I start it from lightdm, and I don't 
> think
> that's doing anything special.

> Probably in my case some of the modules are including the missing 
> dependencies.

> I hope that helps somehow.

> -- 
> Katherine

Thanks! I'll try adding these packages and see if that helps.

best,
 —Ben


Re: stumpwm on guix - "sb-cltl2" issues

2022-05-06 Thread Katherine Cox-Buday
Wil deBeest  writes:

> 
> Wil deBeest  writes:
>
>> 
>> Benjamin Slade  writes:
>> 
>>> I'm trying to run my long-standing stumpwm init.lisp on a recent Guix
>>> install, using the packaged stumpwm, however when it launches, it
>>> fails to process the init.lisp and gives me an "Don't know how to
>>> REQUIRE sb-cltl2." error.
>>> I've set the SBCL_HOME variable both in .xprofile and in the init.lisp
>>> itself [via `(sb-posix:putenv
>>> "SBCL_HOME=/run/current-system/profile/lib/sbcl/")' ], but this
>>> doesn't seem to help.
>>> Is there a good way around this? (On my other system I just compile
>>> stumpwm from source and install; I don't know if that makes a
>>> difference here.)
>>> —Ben
>> 
>> I used to have the same problem, but I don't remember what fixed it.
>> 
>> SBCL_HOME isn't set at all, I only have `exec 
>> /home/bovid-19/.guix-profile/bin/stumpwm' in my
>> `~/.xinitrc', and my stumpwm init file starts like this:
>> 
>> (in-package :stumpwm)
>> (require 'sb-cltl2)
>> 
>> 
>> I'm not sure what else I can look for.
>
> I have probably found the solution: in addition to stumpwm, I also have
> `cl-trivial-cltl2' and `cl-asdf' (and sbcl) in my system configuration.
> If you can confirm that those two packages are what was missing, we
> should add them to the stumpwm package as inputs.

I think I have this problem? But like Benjamin, it has also been a very long 
time since I addressed it. In my profiles, I include:

 "stumpwm"
 "sbcl-stumpwm-kbd-layouts"
 ;; net module has this unacknowledged dependency
 "sbcl-cl-ppcre"
 "sbcl-stumpwm-net"
 "sbcl-stumpwm-pass"
 "sbcl-stumpwm-stumptray"
 "sbcl-stumpwm-swm-gaps"
 "sbcl-stumpwm-ttf-fonts"

and I don't seem to have any problem. I start it from lightdm, and I don't 
think that's doing anything special.

Probably in my case some of the modules are including the missing dependencies.

I hope that helps somehow.

-- 
Katherine



Re: stumpwm on guix - "sb-cltl2" issues

2022-05-03 Thread Wil deBeest

Benjamin Slade  writes:

> I'm trying to run my long-standing stumpwm init.lisp on a recent Guix
> install, using the packaged stumpwm, however when it launches, it
> fails to process the init.lisp and gives me an "Don't know how to
> REQUIRE sb-cltl2." error.
> 
> I've set the SBCL_HOME variable both in .xprofile and in the init.lisp
> itself [via `(sb-posix:putenv
> "SBCL_HOME=/run/current-system/profile/lib/sbcl/")' ], but this
> doesn't seem to help.
> 
> Is there a good way around this? (On my other system I just compile
> stumpwm from source and install; I don't know if that makes a
> difference here.)
> 
>  —Ben

I used to have the same problem, but I don't remember what fixed it.

SBCL_HOME isn't set at all, I only have `exec 
/home/bovid-19/.guix-profile/bin/stumpwm' in my
`~/.xinitrc', and my stumpwm init file starts like this:

(in-package :stumpwm)
(require 'sb-cltl2)


I'm not sure what else I can look for.



Re: stumpwm on guix - "sb-cltl2" issues

2022-05-03 Thread Wil deBeest

Wil deBeest  writes:

> 
> Benjamin Slade  writes:
> 
>> I'm trying to run my long-standing stumpwm init.lisp on a recent Guix
>> install, using the packaged stumpwm, however when it launches, it
>> fails to process the init.lisp and gives me an "Don't know how to
>> REQUIRE sb-cltl2." error.
>> I've set the SBCL_HOME variable both in .xprofile and in the init.lisp
>> itself [via `(sb-posix:putenv
>> "SBCL_HOME=/run/current-system/profile/lib/sbcl/")' ], but this
>> doesn't seem to help.
>> Is there a good way around this? (On my other system I just compile
>> stumpwm from source and install; I don't know if that makes a
>> difference here.)
>> —Ben
> 
> I used to have the same problem, but I don't remember what fixed it.
> 
> SBCL_HOME isn't set at all, I only have `exec 
> /home/bovid-19/.guix-profile/bin/stumpwm' in my
> `~/.xinitrc', and my stumpwm init file starts like this:
> 
> (in-package :stumpwm)
> (require 'sb-cltl2)
> 
> 
> I'm not sure what else I can look for.

I have probably found the solution: in addition to stumpwm, I also have
`cl-trivial-cltl2' and `cl-asdf' (and sbcl) in my system configuration.
If you can confirm that those two packages are what was missing, we
should add them to the stumpwm package as inputs.



Re: stumpwm on guix - "sb-cltl2" issues

2022-04-16 Thread Guillaume Le Vaillant
Benjamin Slade  skribis:

> I'm trying to run my long-standing stumpwm init.lisp on a recent Guix install,
> using the packaged stumpwm, however when it launches, it fails to process the
> init.lisp and gives me an "Don't know how to REQUIRE sb-cltl2." error.
>
> I've set the SBCL_HOME variable both in .xprofile and in the init.lisp itself 
> [via `(sb-posix:putenv "SBCL_HOME=/run/current-system/profile/lib/sbcl/")' ], 
> but this doesn't seem to help.
>
> Is there a good way around this? (On my other system I just compile stumpwm 
> from source and install; I don't know if that makes a difference here.)
>
>  —Ben

Instead of setting SBCL_HOME, could you try adding something like
'(push "/path/to/lib/sbcl/contrib/" asdf:*central-registry*)'
at the beginning of your "init.lisp" file?

As stumpwm doesn't use the sb-cltl2 contrib, it is not included in the
stumpwm compiled binary. But telling ASDF where it can find it and then
using '(asdf:load-system :sb-cltl2)' or '(require :sb-cltl2)' should
work.
If it doesn't, you could also try loading it directly with
'(load "/path/to/lib/sbcl/contrib/sb-cltl2.fasl")'.


signature.asc
Description: PGP signature