Pierre Neidhardt <m...@ambrevar.xyz> skribis: > Guillaume Le Vaillant <g...@posteo.net> writes: > >> Actually, it looks like the files generated by the groveler can't be >> removed. When doing '(asdf:load-system "osicat")', if these files are >> not there cffi tries to generate them (and fails because the directory >> is read-only). > > The .so needs to be kept, the rest can be removed: > > --8<---------------cut here---------------start------------->8--- > $ tree > /gnu/store/haz3msfmr9cnlnrfai29q5csinx8l5q3-sbcl-osicat-0.7.0-1.de0c18a/ > /gnu/store/haz3msfmr9cnlnrfai29q5csinx8l5q3-sbcl-osicat-0.7.0-1.de0c18a/ > ├── lib > │ └── sbcl > │ ├── osicat.asd > │ ├── osicat--system.fasl > │ └── posix > │ └── libosicat.so > ... > --8<---------------cut here---------------end--------------->8---
When I remove the groveler-generated files (except the .so) from 'lib/sbcl/osicat/posix/' like so: --8<---------------cut here---------------start------------->8--- /gnu/store/1cps5zbqgj9lm108lc57zah5ap0a7gbk-sbcl-osicat-0.7.0-1.de0c18a/lib └── common-lisp └── sbcl └── osicat ├── posix │ ├── basic-unix.fasl │ ├── basic-unixint.fasl │ ├── early.fasl │ ├── libosicat.so │ ├── linux.fasl │ ├── misc.fasl │ ├── packages.fasl │ ├── unix.fasl │ ├── unixint.fasl │ └── wrappers.fasl ├── src │ ├── fd-streams.fasl │ ├── osicat.fasl ... --8<---------------cut here---------------end--------------->8--- I get the following error: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix environment --ad-hoc sbcl sbcl-osicat -- \ sbcl --no-userinit --eval '(require :asdf)' \ --eval '(asdf:load-system "osicat")' ... ASDF could not load osicat because Error opening #P"/gnu/store/...-sbcl-osicat-0.7.0-1.de0c18a/lib/common-lisp/sbcl/osicat/posix/basic-unixint__grovel.c": Read-only file system. debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread #<THREAD "main thread" RUNNING {10009F80D3}>: Error opening #P"/gnu/store/...-sbcl-osicat-0.7.0-1.de0c18a/lib/common-lisp/sbcl/osicat/posix/basic-unixint__grovel.c": Read-only file system ... --8<---------------cut here---------------end--------------->8---
signature.asc
Description: PGP signature