Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building openssl for python3crystax #1195

Closed
wants to merge 1 commit into from

Conversation

agilewalker
Copy link

Fix based on the work of @emillynge #707

@emillynge
Copy link

Thanks for taking over :)

@agilewalker
Copy link
Author

Glad to help :)

@inclement
Copy link
Member

inclement commented Dec 13, 2017

Thanks for fixing it up. It looks like this cuts out some of the changes to the recipe that have happened since the original PR, such as the download of the python3.6 crystax, which would need adding back in. Also, does this openssl method link properly with other recipes that try to use it?

@agilewalker
Copy link
Author

There is no extensive testing has been done other than getting a working _ssl.so, but changes to openssl recipe should be minimal. This fix is initially made in limited success only intended for Electron-Cash/Electron-Cash#331. New to the p4a codebase, I'm out of depth for knowing how to add back Python3.6 change properly.

@agilewalker
Copy link
Author

After more research, it's nice to find out @inclement has already done most of the 3.6 work already! https://github.com/inclement/crystax_python_builds/
No more prebulit but more archs should work?

@agilewalker
Copy link
Author

Squash all changes into a single commit.

@AndreMiras
Copy link
Member

I confirm that this pull request solves it for me to, the error was:

04-04 23:32:48.495 20544 20615 I python  :    File "/data/user/0/com.github.andremiras.etheroll/files/app/crystax_python/site-packages/requests/adapters.py", line 506, in send
04-04 23:32:48.497 20544 20615 I python  :      raise SSLError(e, request=request)
04-04 23:32:48.497 20544 20615 I python  :  requests.exceptions.SSLError: HTTPSConnectionPool(host='ropsten.infura.io', port=443): Max retries exceeded with url: / (Caused by SSLError("Can't connect to HT
TPS URL because the SSL module is not available.",))

@agilewalker and @inclement that would be nice to have it integrated now that you've done the hardest part. Do you want me to rebase and continue?

@bauerj
Copy link
Contributor

bauerj commented Apr 4, 2018

Hey @AndreMiras, this was superseded by #1217.

AndreMiras added a commit to AndreMiras/EtherollApp that referenced this pull request Apr 4, 2018
@inclement
Copy link
Member

@AndreMiras I'm mildly disappointed to lose the prebuilt python3crystax functionality, but I guess I should just get over that.

I also don't like the way the build order is passed around, using floats. How do others feel about that?

Other than that, rebasing it would be great if it needs it, other than that I should just get around to testing it.

@AndreMiras
Copy link
Member

AndreMiras commented Apr 4, 2018

Thanks @inclement

@AndreMiras I'm mildly disappointed to lose the prebuilt python3crystax functionality, but I guess I should just get over that.

Yes it's a shame, but perhaps we should just create another "technical debt" issue for this case.

I also don't like the way the build order is passed around, using floats. How do others feel about that?

Yes I didn't deep dive into it, but a quick look does give headaches indeed 🤕

Other than that, rebasing it would be great if it needs it, other than that I should just get around to testing it.

Yes I would say, let's move on, test it and merge it for now since it does bring an important feature. And we can take another look to refactor it once #625 is ready 😬

@bauerj yes this #1217 one is confusing me 🤔

@bauerj
Copy link
Contributor

bauerj commented Apr 4, 2018

How is this related to #625?

@AndreMiras
Copy link
Member

Because it would make it easier to see if non functional changes do not break anything. At the moment it's very cumbersome to see if a recipes update provides something new without breaking something else.

@bauerj
Copy link
Contributor

bauerj commented Apr 4, 2018

Well, it wouldn't be able to test whether the generated SSL module actually works, would it?

@AndreMiras
Copy link
Member

Why not? We could go from something simple (verifying lib deps with ldd/readelf) to something more advanced, running some unit tests in an Android VM. That would be already quite advanced of course, but I do think it's possible.

@ghost
Copy link

ghost commented Dec 2, 2018

Just as a reminder for people dropping by: look here https://github.com/JonasT/python-for-android/tree/tlsfix for a continuously updated TLS-enabling patch for python 3 crystax. (I rebase it every few days onto latest python-for-android master!) It's not my work at all, I just try to keep it working on the latest changes.

I am in no way suggesting it should be merged since I also believe it to be a highly intermediate solution until non-crystax py3 is ready, but until the day that happens, I encourage anyone needing TLS to give it a try, and I hope this helps some folks out who come by here searching for working TLS support

@ghost
Copy link

ghost commented Jan 9, 2019

@AndreMiras should we close this maybe? I don't see it ever being merged the way things are heading now with crystax on the way out of the door (mainly since the open pull requests are starting to pile up a little)

@agilewalker thanks a lot for looking into this btw, it has lived on for a while as tlsfix and saved many people a lot of trouble! but we might finally be heading somewhere where we no longer need it

@AndreMiras
Copy link
Member

Also it's superseded by #1217

@AndreMiras AndreMiras closed this Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants