[issue28833] cross compilation of third-party extension modules

2016-11-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: So I suggest we start with this patch as it works for: * The standard library extension modules (for debian as well). * The third-party extension modules on platforms that have multiarch defined and on platforms that do not have multiarch defined (on debian

[issue28849] do not define sys.implementation._multiarch on Android

2016-12-01 Thread Xavier de Gaye
New submission from Xavier de Gaye: Android is not a multiarch system and the unix build system can cross compile non-multiarch systems as well as multiarch systems. This is a follow up of the decisions implemented in issue 28046 and the patch fixes also an oversight made in this issue in

[issue28833] cross compilation of third-party extension modules

2016-12-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: $ _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_m_linux_aarch64-linux-android PYTHONHOME=~/Projects/python3-android/build/21-aarch64-linux-android-4.9/usr python3.7 setup.py build_ext > Variables prefixed by an underscore such as '_PYTHON_SYSCONFIGDATA_N

[issue28740] Add sys.getandroidapilevel()

2016-12-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: > How about renaming sys.implementation._multiarch to > sys.implementation.target_architecture and make it public? > sys.androidapilevel() sounds too specific to me. Please do not hijack this issue. The removal of sys.implementation._multiarch for A

[issue28740] Add sys.getandroidapilevel()

2016-12-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: @Chi Hsuan Yen And please, let us not waste any more time on lost battles, this suggestion of using sys.implementation has already been rejected at issue 27442 (see msg269748) as you must know since you were involved in the discussion there

[issue28740] Add sys.getandroidapilevel()

2016-12-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: > getandroidapilevel-3.patch: Updated version of getandroidapilevel.patch: > replace "runtime" with "build time" in the doc :-) Remove also "version > 0" > check in support/__init__.py. LGTM > About the version &g

[issue28740] Add sys.getandroidapilevel()

2016-12-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: Here is the output of getandroidapilevel(), a verbose run of test_sys and a run of the test suite on the Android x86 emulator API 21. All the results are as expected, the failed tests are the usual ones, BTW all of the failed tests have either a patch ready

[issue28853] locals() and free variables

2016-12-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: FWIW the definition of free variables can be found in the Language Reference at section 4.2.1. "Binding of names" [1]. The list of the free variables of a user defined function can be accessed through the __closure__ function attribute, a tuple. Th

[issue28849] do not define sys.implementation._multiarch on Android

2016-12-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: The change made by the patch in Makefile.pre.in handles the removing of the dangling underscore in the patch of issue 28833, it is not needed. android_multiarch_2.patch is simpler: the change in Makefile.pre.in has been removed and test_triplet_in_ext_suffix

[issue28849] do not define sys.implementation._multiarch on Android

2016-12-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: The MULTIARCH triplet: * is used by the build system in the suffix of the name of the _sysconfigdata private module, it may have any value (including being empty) when the platform is non-multiarch - for example cross-compiling for an Android emulator with

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: -> xdegaye stage: needs patch -> patch review type: behavior -> performance versions: -Python 3.6 ___ Python tracker <http://bugs.python.or

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is a performance issue. I will look at it shortly. -- ___ Python tracker <http://bugs.python.org/issue28596> ___ ___ Pytho

[issue26865] Meta-issue: support of the android platform

2016-12-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #20211: setup.py: do not add system header locations when cross compiling issue #28190: Detect curses headers correctly for cross-compiling -- dependencies: +Detect curses headers correctly for cross-compiling, setup.py: do not add system header

[issue26939] android: test_functools hangs on armv7

2016-12-08 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26940] android: test_importlib hangs on armv7

2016-12-08 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26941] android: test_threading hangs on armv7

2016-12-08 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28911] Clarify the behaviour of assert_called_once_with

2016-12-08 Thread Arne de Laat
New submission from Arne de Laat: The name assert_called_once_with and the current method documentation can be interpreted to mean that it asserts that there is precisely one call matching the given signature, regardless of the total number of calls. However, the method first checks that

[issue28918] cross compiling xxlimited fails with "Py_LIMITED_API is incompatible with Py_DEBUG"

2016-12-09 Thread Xavier de Gaye
New submission from Xavier de Gaye: This happens when the cross compilation is done with '--with-pydebug' while the native interpeter used to run setup.py has been built without it. The error message is: Py_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, and Py

[issue26937] the chown() method of the tarfile.TarFile class fails on Android

2016-12-09 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28918] cross compiling xxlimited fails with "Py_LIMITED_API is incompatible with Py_DEBUG"

2016-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Patch attached. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file45812/xxlimited_abiflags.patch ___ Python tracker <http://bugs.python.org/issu

[issue28190] Detect curses headers correctly for cross-compiling

2016-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: The only change that is needed here is to not include /usr/include/ncursesw in setup.py when cross compiling to ensure that the headers of the build platform are not included. When cross compiling Python, it is the responsability of the packager to set the

[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: When cross compiling, setup.py must not look for headers in the directory for installing C header files and must not look for libraries in the directory for installing object code libraries of the _native_ interpreter which is being used to run setup.py

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2016-12-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch does not add /usr/include/ncursesw to the include directories search paths when cross compiling. Restoring the original title. @Chi Hsuan Yen Please open a new issue for the detection of the curses paths. The current issue is about the failure to

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2016-12-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Both gcc and clang offer a method to search for header files and libraries in > a target specific location. AFAIK there is no target specific location when cross compiling. What are those cross compilation target specific locations according

[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: > this assumption is wrong for the multiarch case. Please explain why it is wrong. -- ___ Python tracker <http://bugs.python.org/issu

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2016-12-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: > no, this is a very wrong simplification. Both gcc and clang offer a method > to search for header files and libraries in a target specific location. > Please use these options. Please open a new issue for the detection of the curses paths. Th

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2016-12-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Now users have to specify the path manually even for native builds. This does not make sense, the patch does not change anything for the native builds. -- ___ Python tracker <http://bugs.python.org/issu

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2016-12-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: Hum, I did miss that line in configure.ac, thanks for pointing that out. New patch. -- Added file: http://bugs.python.org/file45850/no-path-to-ncursesw_2.patch ___ Python tracker <http://bugs.python.org/issue28

[issue28849] do not define sys.implementation._multiarch on Android

2016-12-11 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28918] cross compiling xxlimited fails with "Py_LIMITED_API is incompatible with Py_DEBUG"

2016-12-11 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-12-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: AFAIK many changes that have been made in Python 3 for the support of the cross compilation have not been backported to 2.7, including this one. -- ___ Python tracker <http://bugs.python.org/issue28

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

2016-12-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Patch updated to the current head of the default branch. -- stage: patch review -> commit review Added file: http://bugs.python.org/file45855/pwd_3.patch ___ Python tracker <http://bugs.python.org/issu

[issue28764] test_mailbox fails when run as a non-root user on Android API 24

2016-12-12 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26936] android: test_socket fails

2016-12-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch using sys.getandroidapilevel(). getandroidapilevel() is only available in 3.7, so only 3.7 is being fixed. -- stage: commit review -> patch review versions: -Python 3.6 Added file: http://bugs.python.org/file45858/test_socket_3.pa

[issue28759] access to mkfifo, mknod and hard links is controled by SELinux MAC on Android

2016-12-12 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue28759> ___ ___ Python-bugs-list mai

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2016-12-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch using sys.getandroidapilevel() that is only defined for Android. getandroidapilevel() is only available in 3.7, so only 3.7 is being fixed. -- assignee: -> xdegaye dependencies: -add function to os module for getting path to default sh

[issue26936] android: test_socket fails

2016-12-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

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

2016-12-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28759] access to mkfifo, mknod and hard links is controled by SELinux MAC on Android

2016-12-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2016-12-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: xdegaye -> ___ Python tracker <http://bugs.python.org/issue28190> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue26865] Meta-issue: support of the android platform

2016-12-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: Removing from the dependencies some issues that have become out of scope. -- dependencies: -Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts, add function to os module for getting path to default

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2016-12-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: For some reason the following notifications have not all been received (yet): remote: added 1 changesets with 2 changes to 2 files remote: buildbot: change(s) sent successfully remote: sent email to roundup at rep...@bugs.python.org remote

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

2016-12-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_pathlib must also be fixed for this same problem. New patch. -- Added file: http://bugs.python.org/file45878/bind_unix_socket_2.patch ___ Python tracker <http://bugs.python.org/issue28

[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: >> this assumption is wrong for the multiarch case. > > Please explain why it is wrong. Sadly no explanations have been given, we have to take Matthias word for it. This new patch updates the add_multiarch_paths() method and includes LIBDIR and I

[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: Same patch, but this one is properly set to be handled by Rietveld. -- Added file: http://bugs.python.org/file45894/multiarch_2.patch ___ Python tracker <http://bugs.python.org/issue20

[issue26865] Meta-issue: support of the android platform

2016-12-14 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- dependencies: -setup.py: do not add system header locations when cross compiling ___ Python tracker <http://bugs.python.org/issue26

[issue28971] nntplib fails on all buildbots

2016-12-14 Thread Xavier de Gaye
New submission from Xavier de Gaye: All the buildbots are currently failing at test_nntplib. See the errors in attached test_nntplib.log. The same error messages can be reproduced with a 3.5.2 interpreter: $ python Python 3.5.2 (default, Nov 7 2016, 11:31:36) [GCC 6.2.1 20160830] on linux Type

[issue28971] nntplib fails on all buildbots

2016-12-14 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +martin.panter ___ Python tracker <http://bugs.python.org/issue28971> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28971] nntplib fails on all buildbots

2016-12-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: The problem is when getting an overview of the following comp.lang.python mail: OT - "Soft" ESC key on the new MacBook Pro Michael Torrie Tue Dec 13 21:33:07 EST 2016 This is at index (last - 16) now and that is why the buildbots do not fai

[issue28971] nntplib fails on all buildbots

2016-12-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: BTW while searching for this problem, I found that there were three other mails raising this same NNTPDataError('line too long') in the 40 last mails. -- ___ Python tracker <http://bugs.python.o

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

2016-12-14 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: When the server sends a line longer than _MAXLINE, nntplib reads only _MAXLINE + 1 bytes leaving the remaining bytes left to be processed by the next command that will interpret those bytes as a protocol error. Hence the failing tests that follow the first

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I found that there were three other mails raising this same > NNTPDataError('line too long') in the 40 last mails. Cannot reproduce it. These three exceptions must have been NNTPProtocolError instead, caused by the initi

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch: 1) Increases _MAXLINE to 4096. 2) Reverts issue 16040 and that is not correct, please ignore that part. The changes made in issue 16040 limit the amount of data read by readline() and does not close the nntp session when the server sends a message

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: It seems that the comment placed above the definition of _MAXLINE in the nntplib module is not correct: "RFC 3977 limits NNTP line length to 512 characters, including CRLF. We have selected 2048 just to be on the safe side." The 512 characters li

[issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

2016-12-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the patch. See my comments in Rietveld. I think we can skip the 'step' command. For the tests, can you use the existing run_pdb() method and trigger the signals from within the code being executed with 'os.kill(os.getpid(),

[issue26919] on Android python fails to decode/encode command line arguments

2016-12-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch fixes also the following errors in test_warnings: == FAIL: test_nonascii (test.test_warnings.CEnvironmentVariableTests

[issue26919] on Android python fails to decode/encode command line arguments

2016-12-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: Forgot the issue number in the commit message for the default branch, the corresponding changeset is 80a041d39c20. -- ___ Python tracker <http://bugs.python.org/issue26

[issue26919] on Android python fails to decode/encode command line arguments

2016-12-15 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I'd be in favor of temporarily skipping the affected tests with a message > that points back to here until we have a permanent solution. I am working on it. -- ___ Python tracker <http://b

[issue26928] _bootlocale imports locale at startup on Android, causing test_site to fail

2016-12-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: Closing as invalid, it is useful to have the test failing on platforms that do not have CODESET and detect that too many modules are imported on startup. For Android, this problem is fixed in issue 28596. -- resolution: -> not a bug stage: com

[issue28996] wcscoll is broken on Android and test_locale fails

2016-12-17 Thread Xavier de Gaye
New submission from Xavier de Gaye: These failures happen now that issue 28596 has been fixed and that locale.getpreferredencoding(False) returns 'UTF-8'. == FAIL: test_strcoll_with

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: Closing the issue. Thanks for the patch Chi Hsuan Yen. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28997] test_readline.test_nonascii fails on Android

2016-12-17 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_nonascii has been implemented in issue 16182. The error message: == FAIL: test_nonascii (test.test_readline.TestReadline

[issue26865] Meta-issue: support of the android platform

2016-12-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #28996: wcscoll is broken on Android and test_locale fails issue #28997: test_readline.test_nonascii fails on Android -- dependencies: +test_readline.test_nonascii fails on Android, wcscoll is broken on Android and test_locale fails

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch defines a _MAXBYTES limit of 100 Mb. The limit is checked upon reading one line and also upon reading the multi-lines of the response to a user command. -- Added file: http://bugs.python.org/file45939/nntplib_maxbytes.patch

[issue28996] wcscoll is broken on Android and test_locale fails

2016-12-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: Both strcoll() and strxfrm() are broken (character 'à' unicode code point is 'e0'): >>> import locale >>> locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') 'C.UTF-8' >>> locale.strcoll('\u00e

[issue28996] wcscoll is broken on Android and test_locale fails

2016-12-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: Here is a patch that skips test_strcoll_with_diacritic and test_strxfrm_with_diacritic. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file45942/test_locale_strcoll.pa

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: I responded to your last review Serhiy, but the psf mail system reports a delivery failure, so you may have missed the notification as well as the other reviewers. -- ___ Python tracker <http://bugs.python.

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: > If sender sends a lot of empty lines and file is not None, LF or CRLF is > stripped from lines Oh, I missed that. Maybe give a weight of 4 to 8 bytes or even more to a line, this value being added to the bytes count whether the line is empty or not.

[issue28997] test_readline.test_nonascii fails on Android

2016-12-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: > For me, it prints this: (includes “te” with an umlaut) I got this same result when testing on Android with the interactive interpreter. See the content of the 'completer' list below, when run with tracing_the_completer.patch: On linux:

[issue28997] test_readline.test_nonascii fails on Android

2016-12-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: FWIW on Android we have: >>> readline.__doc__ and "libedit" in readline.__doc__ False >>> getattr(readline, "set_pre_input_hook", None) -- ___ Python track

[issue28997] test_readline.test_nonascii fails on Android

2016-12-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: Checking that the the problem is indeed an encoding problem on Android with readline.set_pre_input_hook(): with tracing_the_completer_2.patch that replaces '\xEB' with 'A', the test now succeeds and prints: test_nonascii (test.test_r

[issue28996] wcscoll is broken on Android and test_locale fails

2016-12-19 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: Martin in response to your last review, I still hold to my opinion stated in msg283294 but this should not prevent this high priority issue to progress. Can you propose another patch. -- ___ Python tracker <h

[issue28997] test_readline.test_nonascii fails on Android

2016-12-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: The test is ok on Android when LANG=en_US.UTF-8. When LANG is not set, the check made by the first statement in test_nonascii() should skip the test but fails to skip it on Android as Py_EncodeLocale() always encode to utf8 whatever the locale (same as with

[issue28997] test_readline.test_nonascii fails on Android

2016-12-20 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue28997> ___ ___ Python-bugs-list mai

[issue28762] configure links with lockf and F_LOCK is not declared in Android API 24

2016-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: No, the patch prevents posix.flock() to be defined on Android API 24 with android-ndk-r13. But I plan to change it so that the test is skipped when posix does not have the F_LOCK attribute as this problem is not worth a change in the build machinery. It makes

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

2016-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: These changes break the darwin platform, socket.if_nameindex() is not defined anymore. On Darwin, 'net/if.h' requires that 'sys/socket.h' be included beforehand (see the autoconf documentation). -- __

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

2016-12-21 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29040] building Android with android-ndk-r14

2016-12-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: android-ndk-r14 introduces "Unified Headers" [1] and is planned to be released late january/early february 2017 [2]. __ANDROID_API__ is not anymore defined in 'android/api-level.h' that is currently included by Include/pyport.h, and is

[issue26865] Meta-issue: support of the android platform

2016-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #29040: building Android with android-ndk-r14 -- dependencies: +building Android with android-ndk-r14 ___ Python tracker <http://bugs.python.org/issue26

[issue28762] configure links with lockf and F_LOCK is not declared in Android API 24

2016-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the review Victor. I have created issue 29040: building Android with android-ndk-r14. -- ___ Python tracker <http://bugs.python.org/issue28

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

2016-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch. Please use autoreconf before running the patch (autoreconf instead of autoconf because the description of HAVE_LOCKF has been updated). -- title: configure links with lockf and F_LOCK is not declared in Android API 24 -> lockf()

[issue29040] building Android with android-ndk-r14

2016-12-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Seems that indicates future Python versions will require at least NDK r14 to > build? Yes. -- ___ Python tracker <http://bugs.python.org/i

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

2016-12-22 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28997] test_readline.test_nonascii fails on Android

2016-12-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: With your patch Martin, test_nonascii is skipped on Android when LANG is not set and the issue is fixed. > Just to clarify, is the problem that Python (correctly) assumes UTF-8 > encoding on Android, but Readline does not unless you tweak the envir

[issue13886] readline-related test_builtin failure

2016-12-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for waiting for a run of the patch on Android. Indeed, test_input_tty_non_ascii fails with this patch on Android when LANG is not set and is ok when LANG=en_US.UTF-8. As you are suggesting, the test is ok when skipping the Readline half of the test

[issue26851] android compilation and link flags

2017-01-04 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- versions: +Python 3.6 ___ Python tracker <http://bugs.python.org/issue26851> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26851] android compilation and link flags

2017-01-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: Latest patch committed with the following simplification: BASECFLAGS and LDFLAGS are now set for armv7 at the same place, as suggested by Martin in msg271518. -- resolution: -> fixed stage: patch review -> resolved status: open -&g

[issue26851] android compilation and link flags

2017-01-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: In the code review Victor asked the following question: > I'm a little bit surprised that you need to pass so much options which are > specific to the platform. GCC doesn't have a generic option "hello, please > compile for my archite

[issue26865] Meta-issue: support of the android platform

2017-01-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #28833: cross compilation of third-party extension modules -- dependencies: +byte-compile fails for cross-builds, cross compilation of third-party extension modules ___ Python tracker <http://bugs.python.

[issue26851] android compilation and link flags

2017-01-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Just tried. With my packaging scripts, CPython on ARM is compiled with > -mfloat-abi=softfp -mfpu=vfpv3-d16 while libffi not. test_ctypes pass as > usual. This works as expected, '-mfloat-abi=softfp' and the default '-mfloat-abi=so

[issue26865] Meta-issue: support of the android platform

2017-01-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Removing issues from the dependencies list: issue #22747: Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined This issue is fixed for Android. issue #26859: unittest fails with "Start directory is not importable&

[issue29177] skip tests using socketserver.UnixStreamServer when bind() raises PermissionError

2017-01-06 Thread Xavier de Gaye
New submission from Xavier de Gaye: This happens on Android for a non-root user. One test in test_logging fails. Multiple tests fail in test_socketserver with identical backtraces, only the first one is listed here

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-01-06 Thread Xavier de Gaye
New submission from Xavier de Gaye: == ERROR: test_module_funcs (test.test_curses.TestCurses) Test module-level functions -- Traceback (most recent call last

[issue29177] skip tests using socketserver.UnixStreamServer when bind() raises PermissionError

2017-01-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_logging fails also with the following backtrace: == FAIL: test_output (test.test_logging.UnixSocketHandlerTest

[issue29180] skip tests that raise PermissionError in test_os (non-root user on Android)

2017-01-06 Thread Xavier de Gaye
New submission from Xavier de Gaye: == [1633/2616] ERROR: test_link (test.test_os.LinkTests) -- Traceback (most recent call last): File

[issue29177] skip tests using socketserver.UnixStreamServer when bind() raises PermissionError

2017-01-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: To reproduce the test_logging cleanup problem, insert skipTest() in setUp(): diff -r 4a97fa319bf7 Lib/test/test_logging.py --- a/Lib/test/test_logging.py Fri Jan 06 09:52:19 2017 +0100 +++ b/Lib/test/test_logging.py Fri Jan 06 16:39:38 2017 +0100 @@ -1440,6

[issue29177] skip tests using socketserver.UnixStreamServer when bind() raises PermissionError

2017-01-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: The test_logging cleanup problem induces another problem. When test_lib2to3 is run after the failing test_logging then test_lib2to3 fails with: == FAIL

<    5   6   7   8   9   10   11   12   13   14   >