From: Alexandru P. <al...@gm...> - 2024-10-22 18:43:52
|
Hi, I tried to build CLISP on Haiku operational system ( https://www.haiku-os.org/). It is not a Linux distribution, nor *BSD and is unrelated to Windows. I want to say, compiling CLISP on Haiku at the first attempt was easier than I expected. 1. After reading the *DEPENDENCIES* and *INSTALL* files, I installed necessary dependencies except *libffcall*, which does not (yet) exist in Haiku. Of course, I will try to get in also available. Haiku has *libffi_devel*, but I am not sure if is a proper substitution. For now, I used *--without-ffcall* configure option. 2. Because Haiku does not have multi-user support, the user has administrative permissions. So, I issued: *export FORCE_UNSAFE_CONFIGURE=1* otherwise it complains about too many permissions. 3. During configuring, it was one crash (recover-able), so I just saved report and continued. I will ask Haiku for help. The error was in program *conftest* (during "*checking for working re_compile pattern... *" onscreen message). 4. After configuration I inspected *src/config.lisp* file and made the following changes: Because *vi* editor is not available by default, I changed: *(defparameter *editor* "vi" "The name of the editor.")* to: *(defparameter *editor* "nano" "The name of the editor.")* This is for console editor. If the GUI editor can also be considered, the "Haiku way" would be something like: *(defparameter *editor* "/boot/system/apps/Pe/Pe" "The name of the editor.")* ; Pe = Programmer's Editor for source code. or: *(defparameter *editor* "/boot/system/apps/StyledEdit" "The name of the editor.")* ; Default text editor of Haiku. After that, I added just after: *;; (setq *browser* :firefox)* the following: *(setq *browser* "/boot/system/apps/WebPositive")* ; Firefox is not yet ported to Haiku (the work is ongoing), and will probably not be official one. WebPositive is The Haiku Web Browser. 5. Building was successful and I could find *clisp* executable in *src* folder. - *make* - OK - *make check-tests* - 3 / 59 tests failed: *socket.erg*, *streams.erg* and *streamslong.erg*, maybe because of missing *libffcall*. - *make check-recompile* - OK - *make install* - OK - *make distrib* - OK --------------------- On the first try, CLISP works with Terminal application under Haiku. It fails to connect to *Slime* or *Sly* under *Emacs*, but this is probably the issue with Slime / Sly. Can you please guide me how can I contribute to making CLISP available on Haiku? For now, is there some code I can modify to not being necessary to manually change *config.lisp* after configuration? Thank you, Alexandru Popa |