Can we use CALM on Mobile?
VitoVan opened this issue · comments
Hi,
Thanks for your project!
I'm about to pack it for Guix and faced with issue to compile it by using ECL.
;;; Internal error:
;;; ** There is no package with the name SB-EXT.An error occurred during initialization:
COMPILE-FILE-ERROR while compiling #<cl-source-file "calm" "calm">.
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "/gnu/store/cawsqjfnnv7qd0qdjq7jmlqp440jqx8m-ecl-21.2.1/bin/ecl" arguments: ("--eval" "(require :asdf)" "--eval" "(asdf:initialize-source-registry (list :source-registry (list :tree (uiop:ensure-pathname \"/gnu/store/xcy4p2pja182h59c4lzw2y9kvlbik4kw-ecl-calm-0.0.33/share/common-lisp/ecl/calm\" :truenamize t :ensure-directory t)) :inherit-configuration))" "--eval" "(asdf:load-system \"calm\")" "--eval" "(quit)") exit-status: 1 term-signal: #f stop-signal: #f>
SBCL compilation passed successfully and I'll propose the package to be included to package base of Guix.
The current code base is only expected to be working on SBCL, but it could be easily changed to be compatible with ECL.
I will add a higher priority for this task #88
Thanks for your interest and efforts.
The current code base could be successfully ran with ECL, you could try the latest release with:
CALM_HOST_LISP=ecl calm
The changes could be found here: https://github.com/VitoVan/calm/pull/90/files
I don't know if this helped for the Guix packaging, please let me know if anything still not working.
Since I failed to find the equivalent sb-ext:save-lisp-and-die
for ECL, so I haven't managed to implement all the features provided in CALM for ECL (i.e. dump binary).
I'm still reading this, and will let you know if I made any further progress.
Hi @VitoVan
Thank you for your work!
The latest release of CALM is accepted to Guix and available for SBCL and ECL implementations.
https://packages.guix.gnu.org/packages/sbcl-calm/
https://packages.guix.gnu.org/packages/ecl-calm/
It could help to distribute reproducible packages :) (Check how it's used in Nyxt web browser https://github.com/atlas-engineer/nyxt/blob/master/build-scripts/nyxt.scm)
Regards,
Oleg
Hi @Hellseher
Thank you for adding this into Guix!
Guix seems cool, thank you for mentioning nyxt.scm, I am checking it now.