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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
Changes by Xavier de Gaye :
--
dependencies: +android: add platform.android_ver()
___
Python tracker
<http://bugs.python.org/issue27027>
___
___
Python-bugs-list m
Changes by Xavier de Gaye :
--
dependencies: +add is_android in test.support to detect Android platform
___
Python tracker
<http://bugs.python.org/issue26
Changes by Xavier de Gaye :
--
dependencies: +add is_android in test.support to detect Android platform
___
Python tracker
<http://bugs.python.org/issue26
Changes by Xavier de Gaye :
--
dependencies: +add is_android in test.support to detect Android platform
___
Python tracker
<http://bugs.python.org/issue26
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
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
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
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
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
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
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
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
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
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
>&
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
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
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
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
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
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
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
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
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
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
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
Xavier de Gaye added the comment:
FWIW looks good to me.
--
___
Python tracker
<http://bugs.python.org/issue23821>
___
___
Python-bugs-list mailing list
Unsub
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
Changes by Xavier de Gaye :
--
nosy: +larry
___
Python tracker
<http://bugs.python.org/issue24122>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Xavier de Gaye added the comment:
test.py is missing.
--
nosy: +xdegaye
___
Python tracker
<http://bugs.python.org/issue24140>
___
___
Python-bugs-list mailin
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_
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
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
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
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
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
Changes by Xavier de Gaye :
--
nosy: +xdegaye
___
Python tracker
<http://bugs.python.org/issue28027>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Changes by Xavier de Gaye :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue27917>
___
___
Python-bugs-list mailing list
Unsubscrib
Xavier de Gaye added the comment:
Thanks for your help in testing these changes Chi Hsuan Yen.
--
___
Python tracker
<http://bugs.python.org/issue28046>
___
___
Changes by Xavier de Gaye :
--
nosy: +xdegaye
___
Python tracker
<http://bugs.python.org/issue28125>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Xavier de Gaye :
--
dependencies: -byte-compile fails for cross-builds
___
Python tracker
<http://bugs.python.org/issue26865>
___
___
Python-bug
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
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
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
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
Changes by Xavier de Gaye :
--
nosy: +xdegaye
___
Python tracker
<http://bugs.python.org/issue28190>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xavier de Gaye :
--
nosy: +xdegaye
___
Python tracker
<http://bugs.python.org/issue28207>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue28338>
___
___
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
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
Changes by Xavier de Gaye :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue20766>
___
___
Python-bugs-list
Changes by Xavier de Gaye :
--
stage: patch review -> resolved
___
Python tracker
<http://bugs.python.org/issue20766>
___
___
Python-bugs-list mailing list
Un
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
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
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
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
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
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
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
1401 - 1500 of 1614 matches
Mail list logo