CLISP on Haiku

Alexandru Popa <[email protected]> Tue, 22 Oct 2024 21:43:28 +0300
Newsgroups gmane.lisp.clisp.devel
Message-ID <CAL2wRjTVRkJJZomx3_U8n1ow75PB+CCXAT9Cs7VHrjDqKmLCAg@mail.gmail.com>
--===============8288682536138873798==
Content-Type: multipart/alternative; boundary="000000000000dbd9a606251525b7"

--000000000000dbd9a606251525b7
Content-Type: text/plain; charset="UTF-8"

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

--000000000000dbd9a606251525b7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I tried to build CLISP o=
n Haiku operational system (<a href=3D"https://www.haiku-os.org/">https://w=
ww.haiku-os.org/</a>). It is not a Linux distribution, nor *BSD and is unre=
lated to Windows. I want to say, compiling CLISP on Haiku at the first atte=
mpt was easier than I expected.<br></div><div><br></div><div>1. After readi=
ng the <b>DEPENDENCIES</b> and <b>INSTALL</b> files, I installed necessary =
dependencies except <b>libffcall</b>, which does not (yet) exist in Haiku. =
Of course, I will try to get in also available. Haiku has <b>libffi_devel</=
b>, but I am not sure if is a proper substitution. For now, I used <b>--wit=
hout-ffcall</b> configure option.<br></div><div><br></div><div><div>2. Beca=
use Haiku does not have multi-user support, the user has administrative per=
missions. So, I issued:</div><div><b>export FORCE_UNSAFE_CONFIGURE=3D1</b><=
/div><div>otherwise it complains about too many permissions.</div><div><br>=
</div>3. During configuring, it was one crash (recover-able), so I just sav=
ed=20
report and continued. I will ask Haiku for help. The error was in=20
program <b>conftest</b> (during &quot;<b>checking for working re_compile pa=
ttern... </b>&quot; onscreen message).<br></div><div><br></div><div>4. Afte=
r configuration I inspected <b>src/config.lisp</b> file and made the follow=
ing changes:</div><div>Because <b>vi</b> editor is not available by default=
, I changed:</div><div><b>(defparameter *editor* &quot;vi&quot; &quot;The n=
ame of the editor.&quot;)</b></div><div>to:</div><div><b>(defparameter *edi=
tor* &quot;nano&quot; &quot;The name of the editor.&quot;)</b></div><div>Th=
is is for console editor. If the GUI editor can also be considered, the &qu=
ot;Haiku way&quot; would be something like:</div><div><b>(defparameter *edi=
tor* &quot;/boot/system/apps/Pe/Pe&quot; &quot;The name of the editor.&quot=
;)</b> ; Pe =3D Programmer&#39;s Editor for source code.<br></div><div>or:<=
/div><div><b>(defparameter *editor* &quot;/boot/system/apps/StyledEdit&quot=
; &quot;The name of the editor.&quot;)</b> ; Default text editor of Haiku.<=
/div><div><br></div><div>After that, I added just after:</div><div><b>;; (s=
etq *browser* :firefox)</b></div><div>the following:</div><div><b>(setq *br=
owser* &quot;/boot/system/apps/WebPositive&quot;)</b> ; Firefox is not yet =
ported to Haiku (the work is ongoing), and will probably not be official on=
e. WebPositive is The Haiku Web Browser.</div><div><br></div><div>5. Buildi=
ng was successful and I could find <b>clisp</b> executable in <b>src</b> fo=
lder.</div><div>- <b>make</b> - OK</div><div>- <b>make check-tests</b> - 3 =
/ 59 tests failed: <b>socket.erg</b>, <b>streams.erg</b> and <b>streamslong=
.erg</b>, maybe because of missing <b>libffcall</b>.<br></div><div>- <b>mak=
e check-recompile</b> - OK</div><div>- <b>make install</b> - OK</div><div>-=
 <b>make distrib</b> - OK</div><div><br></div><div>---------------------</d=
iv><div><br></div><div>On the first try, CLISP works with Terminal applicat=
ion under Haiku. It fails to connect to <b>Slime</b> or <b>Sly</b> under <b=
>Emacs</b>, but this is probably the issue with Slime / Sly.<br></div><div>=
<br></div><div>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 <b>config.lisp</b> after configuration?</div><=
div><br></div><div>Thank you,</div><div>Alexandru Popa<br></div></div>

--000000000000dbd9a606251525b7--


--===============8288682536138873798==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============8288682536138873798==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel

--===============8288682536138873798==--