Ryan Gonzalez added the comment:
Oh my god this was still open? I think you can just use the CC variable, not
sure what 6-years-younger-and-more-stupid me was thinking here. Sorry about the
noise.
--
stage: patch review -> resolved
status: open ->
New submission from Ryan Gonzalez :
If e.g. a tar archive is extracted that has dates from several months ago, if
systemd-tmpfiles runs to clean up data, then it may delete that data while the
directory is still being used. This can be avoided by holding a LOCK_SH on the
directory while it's
Ryan Gonzalez added the comment:
FWIW, I opened a PR for this: https://github.com/python/cpython/pull/563
--
nosy: +refi64
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Ryan Gonzalez <rym...@gmail.com>:
--
pull_requests: +754
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11913>
___
_
Ryan Gonzalez added the comment:
Serhiy: if you want, you can give me your email and I'll submit a PR for you.
If you want to do it yourself, just:
Download hub: https://hub.github.com/
git clone python/cpython cpython-git
cd cpython-git
git fork
curl
https://raw.githubusercontent.com
Ryan Gonzalez added the comment:
Trying to fix this in https://github.com/python/cpython/pull/9...but...
Currently there are approx *pause for effect* 6,245 warnings!
Out of those, around 6,243 are 'reference target not found' warnings, spanning
over 290 files:
/media/ryan/stuff/cpython/Doc
Changes by Ryan Gonzalez <rym...@gmail.com>:
--
nosy: +Ryan.Gonzalez
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue2786>
___
_
Ryan Gonzalez added the comment:
HAHA, I lied. :D Attached is what I have so far.
--
keywords: +patch
Added file:
http://bugs.python.org/file45225/0001-Make-failed-calls-to-methods-show-the-fully-qualifie.patch
___
Python tracker <
New submission from Ryan Gonzalez:
e.g. make this:
class X:
def __init__(self): pass
X(1)
print something like this:
TypeError: X.__init__() takes 1 positional argument but 2 were given
instead of:
TypeError: __init__() takes 1 positional argument but 2 were given
I'm trying
Ryan Gonzalez added the comment:
Ugh, hit Submit too soon. I meant to say the patch that has 20:13 as the date
(I should've probably given them different names...).
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Ryan Gonzalez added the comment:
@eric.smith How's this instead?
--
Added file:
http://bugs.python.org/file45160/0001-Fix-comment-in-tokenizer.c.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from Ryan Gonzalez:
Attached is a little fix for a comment in tokenizer.c. I noticed that it was
never updated for the inclusion of f-strings.
--
assignee: docs@python
components: Documentation
files: 0001-Fix-comment-in-tokenizer.c.patch
keywords: patch
messages: 279056
Ryan Gonzalez added the comment:
Are there no binaries?
Pretty sure it isn't your device. I'd think a compiler issue. What are you
using, and what version?
You have insane determination! :D
On November 1, 2015 8:34:21 AM CST, Cyd Haselton <rep...@bugs.python.org> wrote:
>
>Cyd Ha
Ryan Gonzalez added the comment:
I don't think so. I believe that switch is just to enable writing gdb
extensions in Python.
On August 26, 2015 9:34:29 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
UPDATE:
Still working on the test_hash issue; not making
Ryan Gonzalez added the comment:
After typing 'run', enter 'bt' and post the results.
On Sat, Aug 22, 2015 at 3:06 PM, Cyd Haselton rep...@bugs.python.org
wrote:
Cyd Haselton added the comment:
On August 22, 2015 2:47:42 PM CDT, Ryan Gonzalez rep...@bugs.python.org
wrote:
Ryan Gonzalez
Ryan Gonzalez added the comment:
I'm assuming gdb still doesn't work?
On August 22, 2015 1:06:41 PM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
Update:
I found this bug report (https://bugs.python.org/issue23786) and
re-compiled python with -mno-unaligned
Ryan Gonzalez added the comment:
On August 21, 2015 9:25:10 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
Question for Ryan Gonzalez:
Given this information...
On August 20, 2015 8:03:13 PM CDT, Russell Keith-Magee
rep...@bugs.python.org wrote:
Russell
Ryan Gonzalez added the comment:
Bus error is basically unaligned memory access.
...
...do you feel like trying to get a backtrace from GDB again? :) (The last
time likely didn't end well because the machine stack got somehow
corrupted.)
On Fri, Aug 21, 2015 at 2:04 PM, Cyd Haselton rep
Ryan Gonzalez added the comment:
Wait, did you compile this with Clang?
On August 17, 2015 9:24:50 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
Result:
(gdb) bt
#0 0xb6a63cc8 in ?? ()
#1 0xb6a5feb0 in ?? ()
Backtrace stopped: previous frame identical
Ryan Gonzalez added the comment:
What if you run:
bt
?
On August 15, 2015 7:32:37 PM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
I thought porting gdb would be the difficult part of getting debug
info. I was so wrong.
Here is what I have so far, after
Ryan Gonzalez added the comment:
Doesn't Python still have debug symbols? The system ones don't matter too much.
On August 12, 2015 6:21:23 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
After struggling to get helpful output from gdb it is looking like
Ryan Gonzalez added the comment:
So...I have *no* clue why _struct can't be found.
Can you use gdb to get the segfault backtrace like you did before?
On July 25, 2015 6:56:10 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
I assume so; I'm using whatever
Ryan Gonzalez added the comment:
On June 30, 2015 8:14:34 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
Your question about -fPIE brings up a question: How should the
differences between Android 5 and previous versions be handled in
regards to this issue
Ryan Gonzalez added the comment:
You compiled with -fPIE and GCC, right? I know the Android Clang seems broken.
On June 29, 2015 7:09:25 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
FYI, Figured out that running ./configure with --with-pydebug does
Ryan Gonzalez added the comment:
On June 5, 2015 6:22:07 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
Will do...if by try the tests now you mean run 'make tests'
Pretty much.
...but it may be about a week or two as a) I'm currently in the last stages
Ryan Gonzalez added the comment:
#1 and #2 are fixed. I hand-edited the patch file (!!), so here's to hoping
it'll work...
Working on #3. You probably should try the tests now (which is obviously the
scary part ;).
--
Added file: http://bugs.python.org/file39628/kbox_fix.patch
Ryan Gonzalez added the comment:
Fixes for readline and _crypt done.
--
Added file: http://bugs.python.org/file39629/lib_fixes.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
I thought you were running the tests...
Or was there something I had to do that I missed?
On May 29, 2015 5:54:18 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
All,
Just checking in as it has been a while
Ryan Gonzalez added the comment:
Now we're getting away from the original issue. This wasn't created to handle
edge cases for sys.exit; is was created to make it accept long values under
Python 2.
--
nosy: +Ryan.Gonzalez
___
Python tracker rep
Ryan Gonzalez added the comment:
errors should not pass silently
The fix makes the problem worse.
Why would anyone want to pass a long integer to exit?
I bet the user who discovered this problem had something like 0L or 1L
coming from a lazily written C extension.
Or the person
Ryan Gonzalez added the comment:
Nevermind. I was just being stupid. I kept searching the Python directory
for references to get_codec_name and _PyMem_RawStrdup and completely missed
the Programs directory. Sorry.
Did the updated kbox_fix.patch work
Ryan Gonzalez added the comment:
On Sun, Apr 19, 2015 at 7:16 PM, Cyd Haselton rep...@bugs.python.org
wrote:
Cyd Haselton added the comment:
Ryan,
Found the missing fix.
In ./Programs/python.c
#ifndef __ANDROID__
oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL));
if (!oldloc
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file39134/kbox_fix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
That's the thing; my repo has no python.c!
On April 19, 2015 7:39:19 PM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
Ryan,
That fix is in the android_segfault patch, but it's for frozenmain.c
not python.c
I cloned from
Ryan Gonzalez added the comment:
Ok...try going to Python/pylifecycle.c and changing lines 220-230 from:
#elif defined(HAVE_LANGINFO_H) defined(CODESET)
char* codeset = nl_langinfo(CODESET);
if (!codeset || codeset[0] == '\0') {
PyErr_SetString(PyExc_ValueError, CODESET
Ryan Gonzalez added the comment:
Here:
diff -r 38f5b3beeb2a Python/pylifecycle.c
--- a/Python/pylifecycle.c Thu Mar 19 15:16:03 2015 -0500
+++ b/Python/pylifecycle.c Sat Apr 18 13:07:36 2015 -0500
@@ -217,6 +217,10 @@
char codepage[100];
PyOS_snprintf(codepage, sizeof(codepage), cp%d
Ryan Gonzalez added the comment:
Can you try to see exactly *which* line of the function is segfaulting?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
Whoops. Updated the patch.
--
Added file: http://bugs.python.org/file38881/rjmatthews64_fixes2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
Ack...I feel smart. Attached is kind of a part 2 to the rjmatthews patch.
Apply and the errors shall be solved. :)
--
Added file: http://bugs.python.org/file38880/rjmatthews64_fixes2.patch
___
Python tracker rep
Ryan Gonzalez added the comment:
Maybe it's conflicted with the last one...
Try:
git checkout Python/pythonrun.c
git apply rjmatthews...
On Thu, Apr 9, 2015 at 12:28 PM, Cyd Haselton rep...@bugs.python.org
wrote:
Cyd Haselton added the comment:
H. That patch failed to apply
Ryan Gonzalez added the comment:
ARGH!
Fixed. Re-apply rjmatthews64_fixes2.patch.
--
Added file: http://bugs.python.org/file38884/rjmatthews64_fixes2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
I put a fix in the patch; I don't know why the heck it didn't apply. Just
go to Python/pythonrun.c, line 66 and put a semicolon (;) at the end of the
line.
On Thu, Apr 9, 2015 at 1:51 PM, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added
Changes by Ryan Gonzalez rym...@gmail.com:
Removed file: http://bugs.python.org/file38579/issue_20306.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
Remove the + at the beginning of line 87.
I re-uploaded issue_20306.patch to fix that issue.
--
Added file: http://bugs.python.org/file38853/issue_20306.patch
___
Python tracker rep...@bugs.python.org
http
Ryan Gonzalez added the comment:
Ah, crud. androidfn.h was a header I added but forgot to put the patch for. I
just attached the patch for that now.
The commit I based the patches on was by Alexander Belopolsky and was named
merge. Committed on February 28.
--
Added file: http
Ryan Gonzalez added the comment:
I thought this was for the tip, i.e. the 3.5 dev...?
But I created the patches in the order that I wrote the descriptions in the
comment. So you might want to use that order.
If that fails, I can figure out the revision I was at when I created the
patches
Ryan Gonzalez added the comment:
No; you need the CPython tip. You can use https://github.com/python/cpython.
Other than that, it's the configure+make thing.
As I said before, the pyconfig.h changes aren't there yet. Trying to figure out
how I want to approach those
Ryan Gonzalez added the comment:
Cyd: if you could do that, it would be great!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
...except for the pyconfig.h changes. Need to do something with autoconf for
that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
I am slowly attaching the patches I created.
Titles:
- issue_16353.patch - Issue 16353 for tip
- issue_20305_tweaked.patch - Issue 2305 for tip
- rjmatthews62_fixes_tweaked.patch - rjmatthew...@gmail.com's Android fixes (a
bit more modularized
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38578/issue_20305_tweaked.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38582/rjmatthews62_fixes_tweaked.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38579/issue_20306.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38580/issue_21668.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38581/unused_var.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38576/kbox_fix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38577/issue_16353.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
Ok, please bear with me. I'm going to be REALLY busy for a bit; I have a BIG
test/exam coming up next week, a music recital shortly afterwards, and lots of
stuff/studying in between.
Sorry for any delays
Ryan Gonzalez added the comment:
This is what I'm using:
PYTHON_FOR_BUILD=`realpath ../cpython/python` CC=arm-linux-androideabi-clang
CXX=arm-linux-androideabi-clang++ ./configure --host=arm-linux-androideabi
--build=x86_64 --disable-ipv6 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc
Ryan Gonzalez added the comment:
Python really needs some way of separating the host C compiler and the target C
compiler.
I'm giving up cross-compiling from my computer and am going to install KBOX on
an Android virtual device. It worked for Cyd, it'll work for me. Beats
compiling two
Ryan Gonzalez added the comment:
Ugh...
I'll just cross my fingers and hope that the libfakechroot KBOX2 comes with is
new enough.
As for a text editor, I'll just probably use something external.
*crosses fingers*
--
___
Python tracker rep
Ryan Gonzalez added the comment:
I'm getting a weird error message building python:
ryan@DevPC-LX:~/stuff/cpydroid$ make
_PYTHON_PROJECT_BASE=/home/ryan/stuff/cpython _PYTHON_HOST_PLATFORM=linux-arm
PYTHONPATH=./Lib:./Lib/plat-linux python3 -S -m sysconfig --generate-posix-vars
Ryan Gonzalez added the comment:
Ahh...ok, then please post the changes. I want to burn autotools enough right
now; I doubt that redoing those changes would ease my anger. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Ryan Gonzalez added the comment:
So...you didn't make the changes by hand? Could you just post whatever you
passed to configure?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
Cyd:
What exactly do you mean by post-configure edits?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Ryan Gonzalez added the comment:
Cyd:
Don't upload them. Git won't even let you add pyconfig.h; running `git add
PC/pyconfig.h` won't say anything, but running `git status` will show that it
did not do anything.
--
___
Python tracker rep
Ryan Gonzalez added the comment:
Cyd:
I was trying to see if I could build the latest Python for Android (not to get
it to run; just to get it to compile) so that your changes would
(theoretically) easier to update to the latest Python. That failed. Miserably.
Joys of cross-compiling Python
Ryan Gonzalez added the comment:
Cyd:
Just run:
$ git commit -m Put some message here # commit the changes
$ git push # push the changes
I'm working on it, but I haven't even gotten it to build (CURSE YOU, AUTOCONF!)
--
___
Python tracker rep
Ryan Gonzalez added the comment:
Ok...so the joys of autoconf configuring bite again. ALL Android devices have
/dev/ptmx (adb even assumes it)...should the configure script be modified to
skip that check if cross-compiling for Android
Ryan Gonzalez added the comment:
I'll try to do as much as I can to get this through. Once I reinstall the NDK
(I accidently wiped my hard drive with a bad dd command recently), I'll test
this on my old Android phone that still runs 2.3 and would be very happy if
someone else can test
Ryan Gonzalez added the comment:
Ok, if I don't finish it today, I *will* finish it tomorrow. Or Sunday. Sunday
is the latest, though I'm pretty sure I'll be done by Saturday.
Hardest part is likely going to be re-configuring the Android emulator to test
it.
Cyd (and anyone else who can), do
Ryan Gonzalez added the comment:
That's what I was saying; I'll update the patches myself. I highly doubt Cyd
wants to re-port Python again. :0
I'll ask on python-dev on which would be preferred: configure.ac edits or macro
tests.
--
___
Python
Ryan Gonzalez added the comment:
So...
I know a decent amount of configure scripts, although Python's is easily going
to be the absolute longest I've ever touched.
Maybe these should be made against the 3.6 Mercurial source? I'm not sure if
the Python devs would prefer that.
Also, should
Changes by Ryan Gonzalez rym...@gmail.com:
--
nosy: +Ryan.Gonzalez
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list
New submission from Ryan Gonzalez:
This should work (but doesn't):
Python 2.7.8+ (2.7:63dc1e32b715, Sep 30 2014, 19:24:46)
[GCC 4.2.1 Compatible Clang 3.5.0 (207381)] on linux2
Type help, copyright, credits or license for more information.
import re
re.match('(foo)', 'foo').group(1L
Changes by Ryan Gonzalez rym...@gmail.com:
--
nosy: +Ryan.Gonzalez
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
___
Python-bugs-list
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file31477/cygwinccompiler.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18834
Changes by Ryan Gonzalez rym...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file31476/ccompiler.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18834
New submission from Ryan Gonzalez:
A have created to patches(for ccompiler.py and cygwinccompiler.py) to add Clang
as a compiler in distutils. The patches are here:
ccompiler.py: http://pastebin.com/yMGYys0P
cygwinccompiler.py: http://pastebin.com/a49qNP6n
I used the distutils version from
79 matches
Mail list logo