* cl-asdf: where is its asd file?
@ 2021-02-24 11:10 Tim Lee
2021-02-24 16:34 ` Guillaume Le Vaillant
0 siblings, 1 reply; 8+ messages in thread
From: Tim Lee @ 2021-02-24 11:10 UTC (permalink / raw)
To: help-guix
I have installed cl-asdf using `guix install cl-asdf`. The installation
was successful. However, when I looked into the
~/.guix-profile/share/common-lisp/source/asdf/ directory, I only see one
file: asdf.lisp.
Is this normal? I was expecting to get an `asdf.asd` file as well. I am
running Ubuntu 20.04 as my base system. I want to use Guix's cl-asdf
3.3.4 instead of the old ASDF 3.3.1 bundled in SBCL (which was installed
using Ubuntu's package manager). ASDF's documentation (section 3.3
Upgrading ASDF) has instructions for what I want to do:
> If your implementation already provides ASDF 3 or later (and it
> should), but you want a more recent ASDF version than your
> implementation provides, then you just need to ensure the more recent
> ASDF is installed in a configured path, like any other system. We
> recommend you download an official tarball or checkout a release from
> git into ~/common-lisp/asdf/. (see Configuring ASDF to find your
> systems).
>
> Once the source code for ASDF is installed, you don't need any extra
> step to load it beyond the usual (require "asdf"): ASDF 3 will
> automatically look whether an updated version of itself is available
> amongst the regularly configured systems, before it compiles anything
> else.
The absence of an asd file in cl-asdf means that I cannot use Guix's
cl-asdf in the manner describe above. The reason is because the existing
ASDF (the one bundled in SBCL that was installed using Ubuntu's package
manager) will not be able to find Guix's cl-asdf if cl-asdf doesn't have
an *.asd file.
I have tried Nix before, and Nix's "asdf" package includes an `asdf.asd`
file. I am new to Guix. Am I missing anything?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: cl-asdf: where is its asd file?
2021-02-24 11:10 cl-asdf: where is its asd file? Tim Lee
@ 2021-02-24 16:34 ` Guillaume Le Vaillant
2021-02-24 20:33 ` Tim Lee
0 siblings, 1 reply; 8+ messages in thread
From: Guillaume Le Vaillant @ 2021-02-24 16:34 UTC (permalink / raw)
To: Tim Lee; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 2336 bytes --]
Tim Lee <progscriptclone@gmail.com> skribis:
> I have installed cl-asdf using `guix install cl-asdf`. The installation
> was successful. However, when I looked into the
> ~/.guix-profile/share/common-lisp/source/asdf/ directory, I only see one
> file: asdf.lisp.
>
> Is this normal? I was expecting to get an `asdf.asd` file as well. I am
> running Ubuntu 20.04 as my base system. I want to use Guix's cl-asdf
> 3.3.4 instead of the old ASDF 3.3.1 bundled in SBCL (which was installed
> using Ubuntu's package manager). ASDF's documentation (section 3.3
> Upgrading ASDF) has instructions for what I want to do:
>
>> If your implementation already provides ASDF 3 or later (and it
>> should), but you want a more recent ASDF version than your
>> implementation provides, then you just need to ensure the more recent
>> ASDF is installed in a configured path, like any other system. We
>> recommend you download an official tarball or checkout a release from
>> git into ~/common-lisp/asdf/. (see Configuring ASDF to find your
>> systems).
>>
>> Once the source code for ASDF is installed, you don't need any extra
>> step to load it beyond the usual (require "asdf"): ASDF 3 will
>> automatically look whether an updated version of itself is available
>> amongst the regularly configured systems, before it compiles anything
>> else.
>
> The absence of an asd file in cl-asdf means that I cannot use Guix's
> cl-asdf in the manner describe above. The reason is because the existing
> ASDF (the one bundled in SBCL that was installed using Ubuntu's package
> manager) will not be able to find Guix's cl-asdf if cl-asdf doesn't have
> an *.asd file.
>
> I have tried Nix before, and Nix's "asdf" package includes an `asdf.asd`
> file. I am new to Guix. Am I missing anything?
So far the cl-asdf package in Guix is only used to update the ASDF
bundled in the sbcl, ecl, ccl and clisp packages, so that they all use
the same version of ASDF.
Instead of using 'require', it should work if you just load the file:
--8<---------------cut here---------------start------------->8---
(load (merge-pathnames ".guix-profile/share/common-lisp/source/asdf/asdf.lisp"
(user-homedir-pathname)))
--8<---------------cut here---------------end--------------->8---
Or you could use the sbcl from Guix instead of the Ubuntu one.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: cl-asdf: where is its asd file?
2021-02-24 16:34 ` Guillaume Le Vaillant
@ 2021-02-24 20:33 ` Tim Lee
2021-02-25 9:42 ` Pierre Neidhardt
0 siblings, 1 reply; 8+ messages in thread
From: Tim Lee @ 2021-02-24 20:33 UTC (permalink / raw)
To: Guillaume Le Vaillant; +Cc: help-guix
> So far the cl-asdf package in Guix is only used to update the ASDF
> bundled in the sbcl, ecl, ccl and clisp packages, so that they all use
> the same version of ASDF.
>
> Instead of using 'require', it should work if you just load the file:
>
> --8<---------------cut here---------------start------------->8---
> (load (merge-pathnames ".guix-profile/share/common-lisp/source/asdf/asdf.lisp"
> (user-homedir-pathname)))
> --8<---------------cut here---------------end--------------->8---
>
> Or you could use the sbcl from Guix instead of the Ubuntu one.
Okay. Thank you for the explanation. I just found it a bit strange that
a cl-* package does not contain an asd file, especially when one is
already provided by the upstream
(https://gitlab.common-lisp.net/asdf/asdf/). Interesting that the ASDF
package itself has no asd file!
Perhaps the maintainer(s) should consider including an asd file to avoid
surprises like this.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-02-27 14:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 11:10 cl-asdf: where is its asd file? Tim Lee
2021-02-24 16:34 ` Guillaume Le Vaillant
2021-02-24 20:33 ` Tim Lee
2021-02-25 9:42 ` Pierre Neidhardt
2021-02-26 15:15 ` Tim Lee
2021-02-26 15:51 ` Pierre Neidhardt
2021-02-27 14:09 ` Tim Lee
2021-02-27 14:23 ` Pierre Neidhardt
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).