Guillaume Le Vaillant <guillaume.le.vaill...@gmail.com> writes: > I just tried compiling ecl-dexador, and it failed. However I think it > fails for a different reason. > > The error is: > > --8<---------------cut here---------------start------------->8--- > An error occurred during initialization: > No MIME.TYPES file found anywhere! > --8<---------------cut here---------------end--------------->8---
I didn't have this error, mine was about a failing test, so I guess your patch fixes it! > I think it comes from the trivial-mimes library having a hard > reference to the 'sbcl-source' directory in a string: > > --8<---------------cut here---------------start------------->8--- > (arguments > '(#:phases > (modify-phases %standard-phases > (add-after > 'unpack 'fix-paths > (lambda* (#:key inputs #:allow-other-keys) > (let ((anchor "#p\"/etc/mime.types\"")) > (substitute* "mime-types.lisp" > ((anchor all) > (string-append > anchor "\n" > "(asdf:system-relative-pathname :trivial-mimes > \"../../share/common-lisp/sbcl-source/trivial-mimes/mime.types\")"))))))))) > --8<---------------cut here---------------end--------------->8--- > > I guess in this case writing a 'fix-paths' phase with the path specific > to ECL in the ecl-trivial-mimes package will be necessary... Maybe an easier fix: replace "sbcl" with (%lisp-type). Should work. -- Pierre Neidhardt https://ambrevar.xyz/
signature.asc
Description: PGP signature