[issue32031] Do not use the canonical path in pydoc test_mixed_case_module_names_are_lower_cased

2017-11-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: The path returned by inspect.getabsfile(xml.etree.ElementTree) is not the canonical path, hence the test failure. -- ___ Python tracker <https://bugs.python.org/issue32

[issue32031] Do not use the canonical path in pydoc test_mixed_case_module_names_are_lower_cased

2017-11-17 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4383 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue32059] detect_modules() in setup.py must also search the sysroot paths

2017-11-17 Thread Xavier de Gaye
New submission from Xavier de Gaye : When cross-compiling, the gcc and clang `--sysroot=` compiler option may be used to change the logical path of the system headers and libraries to a path located within the install path of the cross-compiler tool chain. Android is a special case

[issue32059] detect_modules() in setup.py must also search the sysroot paths

2017-11-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: > while on a standard platform where the root path of usr/include and usr/lib > is common, one would only need to set sysroot to this root path in CFLAGS s/CFLAGS/CC/ -- ___ Python tracker

[issue32059] detect_modules() in setup.py must also search the sysroot paths

2017-11-18 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4389 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue32059] detect_modules() in setup.py must also search the sysroot paths

2017-11-18 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: +brett.cannon, martin.panter, twouters ___ Python tracker <https://bugs.python.org/issue32059> ___ ___ Python-bugs-list mailin

[issue29184] skip tests of test_socketserver when bind() raises PermissionError (non-root user on Android)

2017-11-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 9001d1f438e968f4d327313e0a95a49f22e724f4 by xdegaye in branch 'master': bpo-29184: Skip test_socketserver tests on PermissionError raised by Android (GH-4387) https://github.com/python/cpython/commit/9001d1f438e968f4d327313e0a95a4

[issue29184] skip tests of test_socketserver when bind() raises PermissionError (non-root user on Android)

2017-11-18 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue29185] test_distutils fails on Android API level 24

2017-11-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset d34d8fc24f23ccff5de03c9277da5acbbdc30e90 by xdegaye in branch 'master': bpo-29185: Fix `test_distutils` failures on Android (GH-4438) https://github.com/python/cpython/commit/d34d8fc24f23ccff5de03c9277da5a

[issue29185] test_distutils fails on Android API level 24

2017-11-18 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32031] Do not use the canonical path in pydoc test_mixed_case_module_names_are_lower_cased

2017-11-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset ebfaa71c2e8c018f72c179395dafaf06dcaf29e2 by xdegaye in branch 'master': bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` (GH-4441) https://github.com/python/cpython/commit/ebfaa71c2e8c018f72c179395dafaf

[issue32031] Do not use the canonical path in pydoc test_mixed_case_module_names_are_lower_cased

2017-11-18 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28538] _socket module cross-compilation error on android-24

2017-11-20 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4416 ___ Python tracker <https://bugs.python.org/issue28538> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28538] _socket module cross-compilation error on android-24

2017-11-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: These changes are not needed anymore now that Unified Headers are supported by android-ndk-r14 (see issue 29040) -- resolution: fixed -> not a bug stage: resolved -> patch review status: closed -> open _

[issue28762] lockf() is available now on Android API level 24, but the F_LOCK macro is not defined

2017-11-21 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4426 ___ Python tracker <https://bugs.python.org/issue28762> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28762] lockf() is available now on Android API level 24, but the F_LOCK macro is not defined

2017-11-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: This change is not needed anymore now that Unified Headers are supported by android-ndk-r14 (see issue 29040) -- resolution: fixed -> not a bug stage: resolved -> patch review status: closed -> open _

[issue29040] building Android with android-ndk-r14

2017-11-21 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue29040> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29040] building Android with android-ndk-r14

2017-11-21 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4429 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue28562] test_asyncio fails on Android upon calling getaddrinfo()

2017-11-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_create_connection_service_name does not fail on android-24-x86_64. -- ___ Python tracker <https://bugs.python.org/issue28

[issue32033] The pwd module implementation incorrectly sets some attributes to None

2017-11-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: Changing test_pwd does not correct the fact that the current implementation of the pwd module may break an existing Python application since this (old indeed) API states "The uid and gid items are integers, all others are strings". > retur

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-22 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4441 ___ Python tracker <https://bugs.python.org/issue28684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28538] _socket module cross-compilation error on android-24

2017-11-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 5ad7ef8e420de8a54fb30ed37362194c6b96012c by xdegaye in branch 'master': bpo-28538: Revert all the changes (now using Android Unified Headers) (GH-4479) https://github.com/python/cpython/commit/5ad7ef8e420de8a54fb30ed3736219

[issue28538] _socket module cross-compilation error on android-24

2017-11-23 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: not a bug -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue29040] building Android with android-ndk-r14

2017-11-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset c06c22e9a9fb9326e79fcf1551601eacc1fd457d by xdegaye in branch 'master': bpo-29040: Support building Android with Unified Headers (GH-4492) https://github.com/python/cpython/commit/c06c22e9a9fb9326e79fcf1551601e

[issue29040] building Android with android-ndk-r14

2017-11-23 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28762] lockf() is available now on Android API level 24, but the F_LOCK macro is not defined

2017-11-23 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: not a bug -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28762] lockf() is available now on Android API level 24, but the F_LOCK macro is not defined

2017-11-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 5ce1069a6ff0d5443074d33ba1d403ccd2eaf3d3 by xdegaye in branch 'master': bpo-28762: Revert last commit (now using Android Unified Headers) (GH-4488) https://github.com/python/cpython/commit/5ce1069a6ff0d5443074d33ba1d403

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue28684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 0f86cd38f4a38f25a4aed3759a654a4b7fa49031 by xdegaye in branch 'master': bpo-28684: asyncio tests handle PermissionError raised on binding unix sockets (GH-4503) https://github.com/python/cpython/commit/0f86cd38f4a38f25a4aed3759a654a

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-24 Thread Xavier de Gaye
New submission from Xavier de Gaye : test_get_event_loop_new_process fails on Android API 24 with the error: == ERROR: test_get_event_loop_new_process (test.test_asyncio.test_events.EPollEventLoopTests

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also the related issues: #3770: test_multiprocessing fails on systems with HAVE_SEM_OPEN=0 #28668: instanciation of multiprocessing.Queue raises ImportError in test_logging #26924: android: test_concurrent_futures fails

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4477 ___ Python tracker <https://bugs.python.org/issue28684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 5742f674f7561dc9a1fc66d650e18e31b941183b by xdegaye in branch 'master': bpo-28684: Remove useless import added by the previous commit (GH-4547) https://github.com/python/cpython/commit/5742f674f7561dc9a1fc66d650e18e

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4487 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue28668] instanciation of multiprocessing.Queue raises ImportError in test_logging

2017-11-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4489 ___ Python tracker <https://bugs.python.org/issue28668> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28668] instanciation of multiprocessing.Queue raises ImportError in test_logging

2017-11-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The multiprocessing module is not functional when the multiprocessing.synchronize module cannot be imported and all the multiprocessing tests are skipped in that case. Use the same idiom (i.e. test.support.import_module('multiprocessing.synchronize&

[issue26856] android does not have pwd.getpwall()

2017-11-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4490 ___ Python tracker <https://bugs.python.org/issue26856> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26856] android does not have pwd.getpwall()

2017-11-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The pwd module is broken when a member of the 'passwd’ data structure is NULL (issue 32033). Remove _getpwall() and therefore skip test_pwd on Android until issue 32033 is fixed. -- dependencies: +The pwd module implementation incorrectly sets

[issue32059] detect_modules() in setup.py must also search the sysroot paths

2017-11-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 77f5139954a878b856b0ac4c76486b27b6f4ec26 by xdegaye in branch 'master': bpo-32059: setup.py now also searches the sysroot paths (GH-4452) https://github.com/python/cpython/commit/77f5139954a878b856b0ac4c76486b

[issue32059] detect_modules() in setup.py must also search the sysroot paths

2017-11-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue26856] android does not have pwd.getpwall()

2017-11-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 76fdac4c9f53eb8433a54bd3daf9f5cc2e702a44 by xdegaye in branch 'master': bpo-26856: Skip test_pwd on Android until issue 32033 is fixed (GH-4561) https://github.com/python/cpython/commit/76fdac4c9f53eb8433a54bd3daf9f5

[issue26856] android does not have pwd.getpwall()

2017-11-25 Thread Xavier de Gaye
Change by Xavier de Gaye : -- stage: patch review -> ___ Python tracker <https://bugs.python.org/issue26856> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue32059] detect_modules() in setup.py must also search the sysroot paths

2017-11-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 04af8ace86d4396bc64fc401f36049ab745fd8c1 by xdegaye (Miss Islington (bot)) in branch '3.6': bpo-32059: setup.py now also searches the sysroot paths (GH-4452) (#4562) https://github.com/python/cpyt

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-26 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset a6fba9b827e395fc9583c07bc2d15cd11f684439 by xdegaye in branch 'master': bpo-32126: Skip asyncio test when sem_open() is not functional (GH-4559) https://github.com/python/cpython/commit/a6fba9b827e395fc9583c07bc2d15c

[issue32138] android: test_faulthandler fails also on API 24

2017-11-26 Thread Xavier de Gaye
New submission from Xavier de Gaye : Issue 26934 skipped some tests of test_faulthandler on Android API < 24 to fix the problem that python does not crash upon _sigsegv(). But the same problem occurs on API 24 except randomly, you need to run test_faulthandler many times before reproducing

[issue32139] android: locale is modified by test_strftime

2017-11-26 Thread Xavier de Gaye
New submission from Xavier de Gaye : Test results: 1 test altered the execution environment: test_strftime Warning -- locale was modified by test_strftime Before: [(6, 'C.UTF-8'), (3, 'C.UTF-8'), (0, 'C.UTF-8'), (5, 'C.UTF-8

[issue32139] android: locale is modified by test_strftime

2017-11-26 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4497 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue32138] android: test_faulthandler fails also on API 24

2017-11-28 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4521 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue32139] android: locale is modified by test_strftime

2017-11-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset cc55e78acab93a495c974b9a2ea71c8bb9cc2f5d by xdegaye in branch 'master': bpo-32139: test_strftime does not anymore modify the locale (GH-4569) https://github.com/python/cpython/commit/cc55e78acab93a495c974b9a2ea71c

[issue32139] android: locale is modified by test_strftime

2017-11-29 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32138] android: test_faulthandler fails also on API 24

2017-11-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset ef83806f5ec01f34f6cbf4ebb5752875b5961f7e by xdegaye in branch 'master': bpo-32138: Skip on Android test_faulthandler tests that raise SIGSEGV (GH-4604) https://github.com/python/cpython/commit/ef83806f5ec01f34f6cbf4ebb57528

[issue32138] android: test_faulthandler fails also on API 24

2017-11-29 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32139] android: locale is modified by test_strftime

2017-11-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset b0df786258c99f98295b82ec62daea1f49912c33 by xdegaye (Miss Islington (bot)) in branch '3.6': bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (#4635) https://github.com/python/cpyt

[issue32139] android: locale is modified by test_strftime

2017-11-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset bc19cf57a8f061bbb1961aa069ed54e8361023ae by xdegaye (Miss Islington (bot)) in branch '2.7': bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (#4636) https://github.com/python/cpyt

[issue32139] android: locale is modified by test_strftime

2017-11-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: Closing now. Thanks Victor :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2017-11-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: ARMV5TE is deprecated in NDK r16 and will be removed in r17. See https://developer.android.com/ndk/guides/abis.html Closing as won't fix. -- resolution: -> wont fix stage: -> resolved status: ope

[issue28668] instanciation of multiprocessing.Queue raises ImportError in test_logging

2017-11-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset bf2b65e413ca5ec705c7e2f463d0d75e947588a4 by xdegaye in branch 'master': bpo-28668: test.support.requires_multiprocessing_queue is removed (GH-4560) https://github.com/python/cpython/commit/bf2b65e413ca5ec705c7e2f463d0d7

[issue28668] instanciation of multiprocessing.Queue raises ImportError in test_logging

2017-11-30 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32107] Improve MAC address calculation and fix test_uuid.py

2017-12-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_uuid fails now on android-24-armv7 on the master branch: == FAIL: test_getnode (test.test_uuid.TestUUIDWithoutExtModule

[issue32107] Improve MAC address calculation and fix test_uuid.py

2017-12-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I don't know how the proposed change can help. It helps by fixing the regression introduced by a change made in 23df2d1304ece169d7e0dfc843dfb8026b413d9f in this issue, a change that has been made only in the master branch. Before that change, su

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-02 Thread Xavier de Gaye
New submission from Xavier de Gaye : Currently uuid.getnode() returns a random 48-bit number and so the UUIDs are not persistent across time. The reason is that on Android the 'ip link list' command fails. uuid._ip_getnode() should invoke the 'ip link' command instead. -

[issue32201] Python uuids may not be persistent across time

2017-12-02 Thread Xavier de Gaye
New submission from Xavier de Gaye : UUIDs are unique and persistent across time and space. UUIDs generated using the getnode() function of the uuid module on a plaform where getnode() cannot use the MAC address are based on a random number created for that purpose and are therefore transient

[issue32201] Python uuids may not be persistent across time

2017-12-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: Hum, I misunderstood the meaning of persistency in this context. It is the uniqueness that is persistent. Sorry for the noise, closing now. -- resolution: -> not a bug stage: -> resolved status: open -&g

[issue32202] [ctypes] all long double tests fail on android-24-x86_64

2017-12-02 Thread Xavier de Gaye
New submission from Xavier de Gaye : These tests are ok on Android API 24 on the armv7, x86 and arm64 architectures. == FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks

[issue32203] [ctypes] test_struct_by_value fails on android-24-arm64

2017-12-02 Thread Xavier de Gaye
New submission from Xavier de Gaye : test_struct_by_value is ok on Android API 24 on the armv7, x86 and x86_64 architectures. == FAIL: test_struct_by_value (ctypes.test.test_win32.Structures

[issue32107] Improve MAC address calculation and fix test_uuid.py

2017-12-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: 1. Before the regression made by 23df2d1304ece169d7e0dfc843dfb8026b413d9f, on the first invocation of getnode(), the returned value is cached in '_node' (a global variable) and getnode() is idempotent. 2. After 23df2d1304ece169d7e0dfc843dfb8026b4

[issue32107] Improve MAC address calculation and fix test_uuid.py

2017-12-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: When I am the author of a regression (as I have been too many times unfortunately), I prefer to be the one that reverts the changes and I would not like someone else to do it. -- ___ Python tracker <ht

[issue32205] test.pythoninfo does not print the cross-built sysconfig data

2017-12-03 Thread Xavier de Gaye
New submission from Xavier de Gaye : When cross-compiling the only useful information printed by pythoninfo is the cross-built sysconfig data since everything else is related to the native python process used during the cross-build. Currently pythoninfo prints the native sysconfig data

[issue32205] test.pythoninfo does not print the cross-built sysconfig data

2017-12-03 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4600 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue32210] Add the versions of the Android SDK and NDK to test.pythoninfo

2017-12-04 Thread Xavier de Gaye
New submission from Xavier de Gaye : * The NDK version can be obtained by parsing the file $ANDROID_NDK_ROOT/source.properties. * The versions of the SDK build-tools, emulator and platform-tools packages as well as those of the system images can be obtained by parsing the output of

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-04 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4609 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue32205] test.pythoninfo does not print the cross-built sysconfig data

2017-12-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: I may have misunderstood the scope of pythoninfo. On Android the readline or sqlite versions are known at build time since they have to be built at that time, but much more useful information can be obtained (or will be obtained) from python running on the

[issue32205] test.pythoninfo does not print the cross-built sysconfig data

2017-12-05 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32210] Add the versions of the Android SDK and NDK to test.pythoninfo

2017-12-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: The NDK version may be printed by the pythoninfo make target before test.pythoninfo is run on Android. platform.android_ver() (not yet implemented, see issue 26855) must be added to collect_sys() in test.pythoninfo

[issue26855] android: add platform.android_ver()

2017-12-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: I cannot find a reference to the "build.prop" file in the Android documentation but google answers at the question ' what is "build.prop"': The “build.prop” file is a system file that exists on every Android device. The f

[issue32210] Add platform.android_ver() to test.pythoninfo for Android platforms

2017-12-05 Thread Xavier de Gaye
Change by Xavier de Gaye : -- dependencies: +android: add platform.android_ver() title: Add the versions of the Android SDK and NDK to test.pythoninfo -> Add platform.android_ver() to test.pythoninfo for Android platforms ___ Python tracker <

[issue26855] android: add platform.android_ver()

2017-12-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Yes, and fall back to spawning getprop if that fails. In the following link Robin Gawenda is reporting that /system/build.prop is world readable on all the devices he checked: https://stackoverflow.com/questions/9937099/how-to-get-the-build-prop-values

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: The result of various 'ip' commands on Android, the last 'ip link list' command is run as root and succeeds (did not think about trying that before): generic_x86_64:/data/local/tmp/python $ ip link list request send failed: Permission deni

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Whatever the change made to fix this issue, it is not possible to add a test case for this change. So following the suggestion made by Barry in PR 4696, we can add (in another issue) a new keyword parameter to getnode() named 'methods' whose va

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: You may be right Serhiy. Those tests have been run on the emulator at API 24 (Android 7.0 Nougat, the first API version where SELinux is run in enforced mode) where 'ip link list' fails, but on my device (a Samsung API 21, Android 5.1 Lollipop) r

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: 'adb logcat' is a tool that monitors many kind of events on Android. Both ip commands prints a SElinux record on logcat: Upon the successfull 'ip link' command, logcat prints: 12-06 09:17:24.119 2460 2460 W ip : type=1400 audit

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: Oops, the second failed command is 'ip link list' of course. -- ___ Python tracker <https://bugs.python.org/issue32199> ___ __

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: It is also possible that rather than an oversight in Android, it is a side effect of SELinux on the implementation of iproute2 if the 'ip link list' command does a little bit more than the 'ip link' command and if this 'little bit

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-06 Thread Xavier de Gaye
Change by Xavier de Gaye : Added file: https://bugs.python.org/file47322/ip_link.strace ___ Python tracker <https://bugs.python.org/issue32199> ___ ___ Python-bugs-list m

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: Attached ip_link.strace and ip_link_list.strace, the output of strace for the 'ip link' and 'ip link list' commands. At the end of the process, both commands create an PF_NETLINK socket to receive from the kernel link information throu

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-07 Thread Xavier de Gaye
Change by Xavier de Gaye : Added file: https://bugs.python.org/file47326/archlinux-ip_link.strace ___ Python tracker <https://bugs.python.org/issue32199> ___ ___ Pytho

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: On archlinux it is easy to know precisely what patches are applied to iproute2 and how it is built (see https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/iproute2). The attached two files, archlinux-ip_link.strace and archlinux

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 961dbe0548e26394b7716d41423c61b1e2e58ef7 by xdegaye in branch 'master': bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696) https://github.com/python/cpython/commit/961dbe0548

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 03031fbc7d44106d652756462db34eae67de9568 by xdegaye (Miss Islington (bot)) in branch '3.6': bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696) (#4747) https://gi

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-07 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32246] test_regrtest alters the execution environment on Android

2017-12-07 Thread Xavier de Gaye
New submission from Xavier de Gaye : Sorry, this is a bit involved :-( BTW all the tests except this one pass (ctypes is disabled on x86_64 and arm64) on Android API 24 for x86, x86_64, armv7 and arm64 :-) Description: --- There are two different cases: 1) When buildbottest is tweaked

[issue32246] test_regrtest alters the execution environment on Android

2017-12-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: > The command 'adb logcat' reports a crash ("Fatal signal 11 (SIGSEGV)") during > the execution of the command. This sounds familiar :-) See issue #32138 and #26934. -- ___ Python tracker

[issue32199] uuid.getnode() should return the MAC address on Android

2017-12-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks Serhiy and Barry for your comments and reviews :-) -- ___ Python tracker <https://bugs.python.org/issue32199> ___ ___

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-08 Thread Xavier de Gaye
New submission from Xavier de Gaye : After running test_regrtest in the source tree on linux, the build/ subdirectory (i.e. test.libregrtest.main.TEMPDIR) contains a new test_python_* directory that contains a core file when the core file size is unlimited. I did not test on 3.6

[issue32246] test_regrtest alters the execution environment on Android

2017-12-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: > The fact that the TEMP directory is not clean already happens when running > buildbottest natively with the standard Python Makefile (no one has noticed > it yet I guess) and the directory contains a core file. I should have written "ha

[issue32246] test_regrtest alters the execution environment on Android

2017-12-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: I agree that test_crashed() should be skipped on Android anyway and I will create a PR to skip the test. If I understand correctly, there may be another nasty bug that is revealed when test_regrstest fails with the environment altered: How is it

[issue32205] test.pythoninfo does not print the cross-built sysconfig data

2017-12-08 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: wont fix -> not a bug ___ Python tracker <https://bugs.python.org/issue32205> ___ ___ Python-bugs-list mailing list Un

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Can you please explain how to reproduce the bug? (Which commands should I > type?) ./python -m test test_regrtest > What is your /proc/sys/kernel/core_pattern? $ cat /proc/sys/kernel/core_pattern core-%e.%s $ ulimit -c unlimited FWIW on arch

<    1   2   3   4   5   6   7   8   9   10   >