Closed ZimbiX closed 4 years ago
It seems SysV IPC is unsupported on Android: https://android.googlesource.com/platform/ndk/+/4e159d95ebf23b5f72bb707b0cb1518ef96b3d03/docs/system/libc/SYSV-IPC.TXT#1
It seems SysV IPC is unsupported on Android
Ah, I see. Thanks very much for that info
Note that this change does not make rbtrace actually work in Termux - it just allows an app to start up without an exception when it has
require 'rbtrace'
.The exception is:
It turns out that Android (9, at least) does not include
rindex
- I believe because it has been deprecated for many years;strrchr
is apparently a drop-in replacement.After that, there was another exception about the
SUN_LEN
symbol missing. I added this definition for the macro. That then got the gem able to be required without error.I would have liked to get rbtrace working in Termux, but this is as far as I've been able to progress for now. I'm having trouble with the
ipcs
binary. It's deliberately not provided by Termux'sutil-linux
package for some reason. With root, I can run Stericson Busybox'sipcs
, but it just returns this:I'm hoping that's not just a quirk of the particular kernel on my device. But perhaps the shared memory functionality is not actually suppported on Android? I don't yet know. Anyway.
test.sh
does not work since rbtrace itself does not yet work on Android. The tmpdir change in there gets it one step closer at least -/tmp
does not exist on Android.This commit was tested by simply: