chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Is Android not unix?


From: Matt Welland
Subject: Re: [Chicken-users] Is Android not unix?
Date: Sun, 25 Nov 2018 20:15:03 -0700

Isn't Termux similar to UserLand - a compatibility layer of sorts
similar to LXC or LXD? If so, I would not be surprised to see
incompatibilities. I had to do several hacks to get IUP working on
UserLand.

On Mon, 2018-11-19 at 13:10 +0100, Thomas Chust wrote:
> On Mon, 19 Nov 2018 13:19:10 +0300 Kristian Lein-Mathisen <kristianle
> address@hidden> wrote:
> 
> > 
> > [...]
> > I was trying tweetnacl on Termux on Android 9 and ran into this
> > problem:
> > 
> > address@hidden ~/p/chicken-5.0.0>
> > csi -R tweetnacl -p '(make-symmetric-sign-key)'
> > 
> > Error: (read-u8vector) bad argument type - not a port: #f
> > ....
> > 
> > This happens because tweetnacl creates its current-entropy-port
> > using
> > cond-expand with unix, windows or else, the latter which is
> > yielding the #f
> > error above.
> > [...]
> Hello,
> 
> interesting, I would have thought that Android would qualify as a
> unixoid system since it has a Linux kernel! If there is some other
> feature identifier I should use that would indicate the system likely
> supports /dev/random, please let me know so I can adapt the tweetnacl
> code.
> 
> Anyway, as a workaround to get tweetnacl running, you can simply do
> 
>   (current-entropy-port (open-input-file "/dev/random"))
> 
> by hand.
> 
> I hope that helps :-)
> 
> Ciao,
> Thomas
> 
> 
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-users



reply via email to

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