[issue26932] android: test_posix fails

2016-05-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Version 2. -- Added file: http://bugs.python.org/file42705/rtld_constants.patch ___ Python tracker ___

[issue26932] android: test_posix fails

2016-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo ___ Python tracker ___ ___

[issue26932] android: test_posix fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. But needed to update pyconfig.h.in and configure. RTLD_* constants are also used in Modules/_ctypes/_ctypes.c and Python/pystate.c (this can be a cause of threading and ctypes issues on Android). -- ___

[issue26932] android: test_posix fails

2016-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: For test_getgroups, in Android 5.1 `id` does not support -G. [1] In Android 6.x `id` seems to support -G. [2] I guess CPython can just skip the test on Android < 6.0. [1] https://android.googlesource.com/platform/system/core/+/android-5.1.1_r37/toolbox/id.c

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Patch attached for improved RTLD_* checking. -- keywords: +patch Added file: http://bugs.python.org/file42703/posixmodule_rtld_constants.patch ___ Python tracker

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: On Android RTLD_* constants are not defined via macros but as enum values. I guess CPython needs to check each one in configure.ac. See [1] [1] https://android.googlesource.com/platform/bionic/+/master/libc/include/dlfcn.h -- nosy: +Chi Hsuan Yen

[issue26932] android: test_posix fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What RTLD_* constants exist on Android? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue26932] android: test_posix fails

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_posix fails on an android emulator running an x86 system image at API level 21. For the first ERROR, on android we have instead of a list of group IDs: root@generic_x86:/data/local/tmp # id -G uid=0(root) gid=0(root)