I compiled Mogan under Android. There is a tiny but unpleasant issue of file access. After some discovery, I find that this is due to file locks introduced in an early commit of TeXmacs.
If I understand correctly, according to this answer, flock()
does not work on every filesystem of a Unix-like OS. Currently, if the target OS is Unix-like, then a failure of obtaining a lock would lead to a failure of opening the file, which would lead to unnecessary restrictions. In particular, on Android, the share data between termux
and internal storage cannot be applied with locks.
I think it more reasonable to use locks as an extra protection, instead of a necessary condition of openning files.