guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about sbcl-package->ecl-package


From: Pierre Neidhardt
Subject: Re: Question about sbcl-package->ecl-package
Date: Thu, 17 Oct 2019 15:16:35 +0200

Guillaume Le Vaillant <address@hidden> 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/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]