[issue26857] gethostbyname_r() is broken on android

2016-05-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: gethostbyaddr_r() is implemented now on Android 6.0 (API 23). The attached patch has been tested on the android-21-x86 emulator (API 21) and android-23-x86 emulator (API 23). No new NDK has been released at Android 5.1 (API 22) so there is no need to test the

[issue26855] android: add platform.android_ver()

2016-05-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: IMHO returning an integer for the sdk field would be better. The patch could use shutil.which() to avoid subprocess calls when getprop is not available. It would be better to use a 'try/except ValueError' clause instead of isdigit(). The O

[issue26857] gethostbyname_r() is broken on android

2016-05-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: So what is problematic with this new patch ? Obviously you need to build with API 23 to get gethostbyname_r() since it was not supported by android before, with the previous patch you don't get gethostbyname_r(), even when building with A

[issue26884] android: cross-compilation of extension module links to the wrong python library

2016-05-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: Another description of the problem: * On the build system, the native python (in one of the search directories of PATH) has been built without --with-pydebug. * The cross-compilation is done on this build system with --with-pydebug. * The cross-compilation of

[issue26919] android: test_cmd_line fails

2016-05-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch follows Victor suggestion in msg230407 and brings the changes made in issue #4388 and issue #16416 to the Android platform. As a consequence, it adds a new test for Android in test_cmd_line named test_osx_android_utf8 (was previously test_osx_utf8

[issue26919] android: test_cmd_line fails

2016-05-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: Patch updated after vadmium review. -- Added file: http://bugs.python.org/file42839/retrofit_osx_2.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26920] android: test_sys fails

2016-05-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_ioencoding_nonascii does not fail when LANG is set to en_GB.UTF-8 in the environment. -- ___ Python tracker <http://bugs.python.org/issue26

[issue26920] android: test_sys fails

2016-05-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > test_ioencoding_nonascii does not fail when LANG is set to en_GB.UTF-8 in the > environment. When LANG is not set, we have on an android emulator: >>> from test.support import FS_NONASCII >>> print(FS_NONASCII) Traceback (most r

[issue26920] android: test_sys fails

2016-05-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > On Android, os.fsdecode(os.fsencode('\xe6')) does not raise UnicodeError in > the test.support module. Because of changeset ad6be34ce8c9. -- ___ Python tracker <http://bugs.py

[issue26920] android: test_sys fails

2016-05-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch fixes test_ioencoding_nonascii. -- keywords: +patch Added file: http://bugs.python.org/file42844/test_ioencoding_nonascii.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26920] android: test_sys fails

2016-05-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: About the failures in test_c_locale_surrogateescape, it seems that on Android the locale is not set correctly on startup when LC_ALL is set to C: root@generic_x86:/data/local/tmp # LC_ALL=C python Python 3.6.0a0 (default:eee959fee5f5+, May 14 2016, 10:19:09

[issue26920] android: test_sys fails

2016-05-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch fixes the locale setting on startup when the LC_ALL environment variable is set to C, and as a consequence test_c_locale_surrogateescape does not fail anymore. Note that on Android HAVE_LANGINFO_H is undefined, see issue #22747. -- Added

[issue26937] android: test_tarfile fails

2016-05-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: On the android-21-x86 emulator: >>> import grp Traceback (most recent call last): File "", line 1, in ImportError: dlopen failed: cannot locate symbol "setgrent" referenced by "grp.cpython-36m-i386-linux-gnu.so"... The

[issue26920] android: test_sys fails

2016-05-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: With Serhiy's latest patch named sys_test_ioencoding.patch in issue19058, test_sys fails only in test_c_locale_surrogateescape on the android-21-x86 emulator. -- ___ Python tracker <http://bugs.py

[issue27027] add is_android in test.support to detect Android platform

2016-05-15 Thread Xavier de Gaye
New submission from Xavier de Gaye: Needed by tests specific to Android or that must be skipped on Android. -- components: Tests messages: 265609 nosy: ezio.melotti, michael.foord, pitrou, xdegaye priority: normal severity: normal status: open title: add is_android in test.support to

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

2016-05-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27027: add is_android in test.support to detect Android platform -- ___ Python tracker <http://bugs.python.org/issue26

[issue26934] android: test_faulthandler fails

2016-05-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: root@generic_x86:/data/local/tmp # python Python 3.6.0a0 (default:eee959fee5f5+, May 14 2016, 13:43:41) [GCC 4.9 20150123 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information.

[issue26938] android: test_concurrent_futures hangs on armv7

2016-05-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_concurrent_futures is not run on Android because "This platform lacks a functioning sem_open implementation", see issue #26924. Closing as won't fix. -- resolution: -> wont fix stat

[issue26939] android: test_functools hangs on armv7

2016-05-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: Got now a full fledged gdb. Thread #1 loops infinitely in the "while (_Py_atomic_load_relaxed(&gil_locked))" loop in take_gil(). Thread #2 is stuck in the MUTEX_LOCK(gil_mutex) statement in drop_gil() as can be seen by setting a breakpoint at

[issue26939] android: test_functools hangs on armv7

2016-05-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: On a heavily loaded system, there is no guarantee that the date obtained from a call to gettimeofday() in PyCOND_TIMEDWAIT(), is not in the past when pthread_cond_timedwait() is called, as there may be a context switch in between. When this happens, a Python

[issue26939] android: test_functools hangs on armv7

2016-05-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I don't know if it can fix the issue, but you may see my issue #23428: "Use > the monotonic clock for thread conditions on POSIX platforms". pthread_condattr_setclock() is declared in the Android API 21 headers. When a monot

[issue26942] android: test_ctypes crashes on armv7

2016-05-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: The crash occurs at the same line that the crash reported in issue #17786. Line 85 in ctypes/test/test_as_parameter.py was line 87 at changeset ae5c4a9118b8a3f490f77f2084d46163ca229aef. -- ___ Python tracker <h

[issue26942] android: test_ctypes crashes on armv7

2016-05-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: Running the following interactive statements [1]: >>> import unittest, ctypes.test.test_as_parameter >>> unittest.main(module=ctypes.test.test_as_parameter, >>> defaultTest='BasicWrapTestCase', verbosity=2) The corr

[issue27027] add is_android in test.support to detect Android platform

2016-05-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch adds a dependency to issue #26855. -- keywords: +patch Added file: http://bugs.python.org/file42910/is_android.patch ___ Python tracker <http://bugs.python.org/issue27

[issue26919] android: test_cmd_line fails

2016-05-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: This new patch adds a dependency to issue #27027. -- Added file: http://bugs.python.org/file42911/retrofit_osx_3.patch ___ Python tracker <http://bugs.python.org/issue26

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

2016-05-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: This new patch adds a dependency to issue #27027. -- Added file: http://bugs.python.org/file42913/pwd_2.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26931] android: test_distutils fails

2016-05-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: This new patch adds a dependency to issue #27027. -- Added file: http://bugs.python.org/file42915/android-sh-path_2.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26858] android: setting SO_REUSEPORT fails

2016-05-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: Should use boolean 'is_android' being added to module test.support by issue #27027, instead of platform.android_ver()[0]. -- ___ Python tracker <http://bugs.python.o

[issue27027] add is_android in test.support to detect Android platform

2016-05-20 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- dependencies: +android: add platform.android_ver() ___ Python tracker <http://bugs.python.org/issue27027> ___ ___ Python-bugs-list m

[issue26919] android: test_cmd_line fails

2016-05-20 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- dependencies: +add is_android in test.support to detect Android platform ___ Python tracker <http://bugs.python.org/issue26

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

2016-05-20 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- dependencies: +add is_android in test.support to detect Android platform ___ Python tracker <http://bugs.python.org/issue26

[issue26931] android: test_distutils fails

2016-05-20 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- dependencies: +add is_android in test.support to detect Android platform ___ Python tracker <http://bugs.python.org/issue26

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

2016-05-21 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- dependencies: +Large files are not supported on Android, RTLD_* macros are not defined on Android, add is_android in test.support to detect Android platform, android: test_cmd_line fails, android: test_concurrent_futures fails, android

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

2016-05-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: No, regular users can't adjust dependencies, but I can now. Thanks Zachary. -- ___ Python tracker <http://bugs.python.org/is

[issue26928] _bootlocale imports locale at startup on Android

2016-05-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: Sorry for the confusion, the file system encoding is not the locale encoding. In issue #9548, Antoine proposed a patch that avoids the import of the re, collections and functools modules by the _io module on startup, by refactoring and moving code from locale

[issue26928] _bootlocale imports locale at startup on Android

2016-05-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: An improvement to Python startup time on Android (Android does not have nl_langinfo()) is to have _bootlocale.getpreferredencoding() return 'ascii' without importing locale, when none of the locale environment variables is set. With patch

[issue26858] android: setting SO_REUSEPORT fails

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch test.asyncio_2.patch uses test.support.is_android and adds a dependency to issue #27027. -- dependencies: +add is_android in test.support to detect Android platform Added file: http://bugs.python.org/file42940/test.asyncio_2.patch

[issue26926] Large files are not supported on Android

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: Size of off_t is also 4 when building on API 23 with or without '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1' added to the CC envt variable. -- ___ Python tracker <http://bu

[issue26926] Large files are not supported on Android

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch skips the large file support test. -- dependencies: +add is_android in test.support to detect Android platform Added file: http://bugs.python.org/file42941/skip-large-file.patch ___ Python tracker <h

[issue26927] test_mmap does not handle ValueError when no large file support

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: f.seek(number) raises ValueError (ValueError: cannot fit 'int' into an offset-sized integer) when 'number' is greater than the size allowed by off_t. ValueError is not handled in test_mmap to detect that large file is not support

[issue26944] android: test_posix fails

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_getgroups is ok on an android emulator running API 23 with the attached patch, and the test is skipped when running API 21. -- dependencies: +add is_android in test.support to detect Android platform -android: add platform.android_ver() keywords

[issue26927] test_mmap does not handle ValueError when no large file support

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: On linux with large file support, OSError is raised when the file system limit is exceeded, here with ext4: >>> f.seek(2**44 - 2**11) Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument >&

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

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #22747: Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined -- dependencies: +Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined ___ Python tracker <h

[issue26857] gethostbyname_r() is broken on android

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I've moved the include into pyport.h and also fixed the error in my patch, thanks :) With issue26857.diff, importing the socket module does not fail both with an API 21 emulator and an API 23

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

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: The list of locations where '/bin/sh' is hard coded in the standard library: Lib/distutils/tests/test_build_scripts.py|68 col 31| ("#!/bin/sh\n" Lib/distutils/tests/test_install_scripts.py|57 col 38| write_script("shell.sh", (&qu

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

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #16255: subrocess.Popen needs /bin/sh but Android only has /system/bin/sh issue #16353: add function to os module for getting path to default shell -- dependencies: +subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

[issue16353] add function to os module for getting path to default shell

2016-05-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: Following Serhiy suggestion at msg224477, this tentative patch adds the is_android attribute to the posix module and the default_shell attribute to the os module. No documentation for the moment. No test case is needed I think, as the changes in issue 16255

[issue26936] android: test_socket fails

2016-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch fixes the testGetServBy test for API 21 and 23 (fixing the cases a) and e) of my previous msg). -- keywords: +patch Added file: http://bugs.python.org/file43000/null-proto.patch ___ Python tracker <h

[issue26936] android: test_socket fails

2016-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: Problems with the socket module on Android: API 21: a) Both getservbyname() and getservbyport() fail when the optional 'protocolname' parameter is not set to 'tcp' or 'udp'. b) getservbyname() fails when 'servicename

[issue26936] android: test_socket fails

2016-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch fixes the testGetaddrinfo test for API 21 (the test runs fine on API 23): The failing statement 'socket.getaddrinfo(HOST, "http")' in testGetaddrinfo does not test explicitly for "http" and for the absence of

[issue20703] RuntimeError caused by lazy imports in pdb

2015-02-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I can reproduce this on Windows 8.1 with 3.4.3 but cannot do so with 3.5.0a1. I can still reproduce this on linux on today's tip: '3.5.0a1+ (default:7185a35fb293, Feb 26 2015, 11:27:11) \n[GCC 4.9.2 20150204 (prerelease)]'. Maybe you tr

[issue20703] RuntimeError caused by lazy imports in pdb

2015-02-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: > In that case the behavior you are seeing is correct, even if not obvious or > even desirable. It will happen any time you are looping over sys.modules and > call a function/method which has a function-scoped import statement for a > module that

[issue23768] assert on getting the representation of a thread in atexit function

2015-03-24 Thread Xavier de Gaye
New submission from Xavier de Gaye: The following 'thread_repr.py' script: -- import threading, atexit def foo(): print(threading.currentThread()) atexit.register(foo) gives the following output: --- Error

[issue23821] test_pdb fails under -O

2015-03-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: FWIW looks good to me. -- ___ Python tracker <http://bugs.python.org/issue23821> ___ ___ Python-bugs-list mailing list Unsub

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: Running configure without the '--prefix' option creates the Makefile with the following line: LIBPL= NONE/lib/python3.5/config-$(VERSION)$(ABIFLAGS) As a result 'make install' fails to install the library and the stuff needed for exten

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-04 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue24122> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Installing the april 20 pre-release Python 3.5.0a4: $ tar xJf Python-3.5.0a4.tar.xz $ cd Python-3.5.0a4 && ./configure $ grep "LIBPL=" Makefile LIBPL= NONE/lib/python3.5/config-$(VERSION)$(ABIFLAGS) $ make a

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: > FWIW the regression was introduced by the change to LIBPL in Makefile.pre.in > made by changeset 3d3db6d11e8b. Ooops, the regression was made by changeset 84328374ea01. -- ___ Python tracker

[issue24140] In pdb using "until X" doesn't seem to have effect in commands

2015-05-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: test.py is missing. -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue24140> ___ ___ Python-bugs-list mailin

[issue24140] In pdb using "until X" doesn't seem to have effect in commands

2015-05-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: The bug occurs also on the default branch: '3.5.0a4+ (default:8bac00eadfda, May 6 2015, 17:40:12) \n[GCC 4.9.2 20150304 (prerelease)]' The reason is that 'do_until' is missing from the Pdb.commands_resuming list, which causes the Pdb.bp_

[issue24160] Pdb sometimes crashes when trying to remove a breakpoint defined in a different debugger sessoon

2015-05-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: I can reproduce the problem on python 3.5 with test3.py as: def foo(): foo = 7789 bar = 7788 $ python Python 3.5.0a4+ (default:8bac00eadfda, May 6 2015, 17:40:12) [GCC 4.9.2 20150304 (prerelease)] on linux Type "help", "copyright

[issue27323] ncurses putwin() fails in test_module_funcs

2016-09-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Just wondering, how you built Python with ncurses 6.0 Xavier? I am using archlinux ncurses 6.0 [1] (sorry for the delay, no internet on a sail crossing). [1] https://www.archlinux.org/packages/core/x86_64/ncur

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-09-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Sorry that I haven't answered for a long time. I would like to get an email > notification but I don't know whether/how I can enable it. You should get an email upon each message posted to this issue. The email is sent to the address you

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-09-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: The problem can be reproduced as follows: Run the following commands to install python with a site configuration file that installs the libraries to lib64: export INSTALL_DIR=/some/path/to/install mkdir -p $INSTALL_DIR/share echo "test \&quo

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-09-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: The problem is that Makefile and Modules/getpath.c are not consistent: * Makefile uses $(LIBDIR)/python$(VERSION)/lib-dynload as the location of the installed shared libraries and in this issue, it happens that LIBDIR is not ${exec_prefix}/lib but is

[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue28027> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Since the 3.6 cycle, these modules are regenerated for the build, so they are > not outdated anymore. They are not a maintenance burden either. Indeed, they are regenerated by the changes made in issue 23968 ("rename the platform director

[issue28046] Remove the concept of platform-specific directories

2016-09-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Sure, I was already planning to do it :) -- ___ Python tracker <http://bugs.python.org/issue28046> ___ ___ Python-bugs-list m

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: Confirming the problem reported by Chi Hsuan Yen. The attached patch fixes this. Another problem is that the shared libraries names of the extension modules are now suffixed with the wrong triplet, i.e. with the build system triplet instead of the target host

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: With the attached patch, the python test suite runs smoothly on android and without errors on linux. On android, there are two new failed test cases in test_sysconfig that I will look into later (in the frame of this issue, I guess ?), but otherwise about the

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: One of the test_sysconfig failed test is caused by the changes made in issue 27917. I will fix it there. The other one is caused by a change in my android build setup that does not install anymore include/python3.6m/pyconfig.h, this is fixed now and the test

[issue27917] Choose platform triplets for android builds

2016-09-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_triplet_in_ext_suffix in test_sysconfig fails with the 'x86' Android platform. -- status: closed -> open ___ Python tracker <http://bugs.pytho

[issue27917] Choose platform triplets for android builds

2016-09-11 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue27917> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28046] Remove the concept of platform-specific directories

2016-09-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for your help in testing these changes Chi Hsuan Yen. -- ___ Python tracker <http://bugs.python.org/issue28046> ___ ___

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue28125> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Plus the abi flags should not be set by hand, you'll get in trouble at least > for naming extensions, or building extensions for the wrong abi flags. This > was an explicit decision when I first started adding the cross-build changes. What do

[issue22724] byte-compile fails for cross-builds

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: Cross-compilation of Android x86_64 on a linux x86_64 host followed by 'make install' does not fail anymore after the changes made in issue 27917. As expected since the triplets are different now when the target is an Android

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

2016-09-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- dependencies: -byte-compile fails for cross-builds ___ Python tracker <http://bugs.python.org/issue26865> ___ ___ Python-bug

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: You do not answer my questions and resort to sarcasm instead: "How did you make it more difficult?". I understand that you may be upset because issue 23968 has been dismantled by the recent decision of removing the platdir files, but please keep ex

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: What do you mean ? When cross-compiling, _PYTHON_HOST_PLATFORM is defined as $MACHDEP-$_host_cpu, but _PYTHON_SYSCONFIGDATA_NAME is suffixed with $(MACHDEP)_$(MULTIARCH) instead. -- ___ Python tracker <h

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > but not having the existing cross build infrastructure being replaced by some > new android concepts. Running 'hg log' on configure.ac and Makefile.pre.in shows that there is not a single change in the cross build infrastructure done for

[issue28125] identify cross builds by a more generic environment setting.

2016-09-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: > please try to build extension modules with mismatching abi flags (pydebug is > the relevant one). Post your results for both mismatch cases. Hum, you are claiming that there is a problem with mismatching abi flags but don't care to explai

[issue28190] Detect curses headers correctly for cross-compiling

2016-09-30 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue28190> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28207] Use pkg-config to find dependencies

2016-09-30 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue28207> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20766] reference leaks in pdb

2016-10-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: The problem may still be reproduced by running the attached pdb_refleak.py script. Enter three times 'c' (short for the pdb 'continue' command) and the following line is printed: pdb 3 -> pdb 2 -> pdb 1 This shows that the

[issue20766] reference leaks in pdb

2016-10-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: Oh, test_pdb does not fail anymore in refleak mode as expected (see msg212510 for the change to apply to test_pdb.py in order to reproduce that). 'hg bisect' says that this is happening since: The first bad revision is: changeset

[issue28338] test_pdb doctests have been removed from its test suite

2016-10-02 Thread Xavier de Gaye
New submission from Xavier de Gaye: Changeset ee0bbfd972de in issue 18401 has removed the doctests from the pdb test suite as can be seen by running test_pdb in verbose mode. See also msg277864 that triggered the creation of this issue. Nosying members of the issue 18401 nosy list

[issue20766] reference leaks in pdb

2016-10-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: > And indeed, this changeset has removed entirely the doctests from the test > suite :( Entered new issue 28338. -- ___ Python tracker <http://bugs.python.org/i

[issue28338] test_pdb doctests have been removed from its test suite

2016-10-02 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue28338> ___ ___

[issue20766] reference leaks in pdb

2016-10-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: Uploaded refleak_5.patch with a simpler test case. With the patch applied, './python -m test -R 3:3 test_pdb' runs with success. The '_previous_sigint_handler' is reset at the Pdb prompt - instead of when the signal is triggered - to handl

[issue26944] android: test_posix fails

2016-10-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the patch David, see my comment in Rietveld. New patch based on David patch, just a bit simpler. -- stage: patch review -> commit review versions: +Python 3.7 Added file: http://bugs.python.org/file45067/test_getgroups_4.pa

[issue20766] reference leaks in pdb

2016-10-12 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20766> ___ ___ Python-bugs-list

[issue20766] reference leaks in pdb

2016-10-12 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- stage: patch review -> resolved ___ Python tracker <http://bugs.python.org/issue20766> ___ ___ Python-bugs-list mailing list Un

[issue22502] after continue in pdb stops in signal.py

2016-10-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Fixed in issue 20766. -- resolution: -> out of date stage: -> 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-10-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: Please upload the output of make, this is where the error messages are printed when extension modules fail to build. Where is set the root directory for arm headers and libraries in the configure command line ? -- nosy: +xdegaye

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

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: Your Setup file matches the one distributed with Python 3.5.2. Did you get the Python source from https://www.python.org/ ? -- ___ Python tracker <http://bugs.python.org/issue28

[issue26851] android compilation and link flags

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also the clang cross compilation documentation at http://clang.llvm.org/docs/CrossCompilation.html. -- versions: +Python 3.7 -Python 3.6 ___ Python tracker <http://bugs.python.org/issue26

[issue26851] android compilation and link flags

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: This new patch fixes the following: * Use BASECFLAGS instead of CCSHARED. * '-march=armv7-a' is not set in BASECFLAGS anymore as this is redundant: this option is already set in the configure command line or is implicitly set by the the first compon

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

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: I assume from your logs that a native (not the cross-built one) python3.5 already exists and is on your PATH. What is the value of sys.builtin_module_names as given by this native python3.5 interpreter

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

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: So the problem is that setup.py in build_extensions() does not build the extensions that have been already built statically into the native Ubuntu interpreter. The solution is to build first natively from source python3.5 and set the PATH environment

<    10   11   12   13   14   15   16   17   >