From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ovZCL+GS9V8JCwAA0tVLHw (envelope-from ) for ; Wed, 06 Jan 2021 10:37:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yIHWKuGS9V9tUAAA1q6Kng (envelope-from ) for ; Wed, 06 Jan 2021 10:37:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4D1E19403D5 for ; Wed, 6 Jan 2021 10:37:21 +0000 (UTC) Received: from localhost ([::1]:54782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx6Br-00052d-MU for larch@yhetil.org; Wed, 06 Jan 2021 05:37:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx6Bf-00052R-Tb for help-guix@gnu.org; Wed, 06 Jan 2021 05:37:07 -0500 Received: from mout02.posteo.de ([185.67.36.66]:39313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx6Bd-0002se-B8 for help-guix@gnu.org; Wed, 06 Jan 2021 05:37:07 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 52BA22400FF for ; Wed, 6 Jan 2021 11:37:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1609929422; bh=2GfWy4JnImoG2hWbsHW9H72s6RcyBrrJaMCxTiVuwms=; h=From:To:Cc:Subject:Date:From; b=PzjKHIc237wroDXGCYQ7Z08xr7c2JD9rk+eNhp+3EsNK68wE5T1u7LB27rExQi18l 8AYLHOJR5H4siqJvWH95VeynPZCWdrHpFZot9vQcHrOxR+IRVopuEjGwsaKVr1rDYB 3D4qV5oWzbi4cKqtCGsDDXkGFmVtXh0xjp3eFTSruwO0WNHhU8thDqrFkvKf3tpmHn biFyGEPwM9penYMUVd2ivx8QrtEpLBRsvNrQvBPSQisPuoWExT/ckc9AH7jdS3woLL SJ+YYf1loRKVAAuE/wedU5hRPi5fyPOPNM7Vj5DwIA2QTCY37+dWwM8ZJKeXwor5eA dYXSUBFzMpG0g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4D9m5704tbz9rxT; Wed, 6 Jan 2021 11:36:58 +0100 (CET) References: <878s97ukes.fsf@gmail.com> <87k0sq74wy.fsf@yamatai> User-agent: mu4e 1.4.13; emacs 27.1 From: Guillaume Le Vaillant To: Katherine Cox-Buday Subject: Re: stumpwm contrib modules have been broken In-reply-to: <87k0sq74wy.fsf@yamatai> Date: Wed, 06 Jan 2021 11:36:46 +0100 Message-ID: <87v9cagxmp.fsf@yamatai> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.66; envelope-from=glv@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.84 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=posteo.net header.s=2017 header.b=PzjKHIc2; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 4D1E19403D5 X-Spam-Score: -2.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: SyENJjzDWXHh --=-=-= Content-Type: text/plain Guillaume Le Vaillant skribis: > Katherine Cox-Buday skribis: > >> Sometime recently, the way Common Lisp code is compiled was changed (for >> the better, I think), and now my StumpWM contrib modules won't load. >> Here's why: >> >> StumpWM looks[1] for .asd files to determine what is a module. Guix's >> Common Lisp build system used to combine an entire system into a single >> .fasl file and then produce a .asd file for loading it. Now -- as far as >> I can tell -- it looks like `lib/common-lisp/sbcl` is more like the >> Common Lisp cache: one .fasl file per .lisp file. >> >> If I point StumpWM at `lib/common-lisp/sbcl` via `set-module-dir`, it >> finds no modules. If I point StumpWM at `share/common-lisp/sbcl`, it >> finds modules, tries to compile them, and then gives me a permissions >> error about writing to the `/gnu` store. >> >> Is anyone using StumpWM contrib modules successfully with Guix's new >> layout? How? >> >> [1] - https://github.com/stumpwm/stumpwm/blob/master/module.lisp#L70 > > Hi, > > In my StumpWM init file, I use '(asdf:load-system ...)' instead of > '(load-module ...)' to load the contrib modules that are installed in my > Guix profile, and it works. > > I'll see if I can find a combination 'set-module-dir' and > 'add-to-load-path' that makes the 'load-module' function work > correctly... With the following near the top of my StumpWM init file, the 'load-module' function works like 'asdf:load-system': --8<---------------cut here---------------start------------->8--- (let* ((guix-profile (pathname-as-directory (getenv "GUIX_PROFILE"))) (module-dir (merge-pathnames "share/common-lisp/sbcl/" guix-profile))) (set-module-dir module-dir)) (load-module "ttf-fonts") --8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCX/WSvg8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j/iVQD9FAzAXPoPmoU3h4OYeZ6EOpcihxC6v9ASs9Hz seQLe1EA/0vQ68Qg7L1T4ID+2naRAiCsfThnsDEVrBO62vZanAu3 =uCE2 -----END PGP SIGNATURE----- --=-=-=--