-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
WIP: Api level 28, NDK 17c - Recipe Updates and Fixes #1381
Closed
Closed
Changes from 44 commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
c1659b8
load `ssl` and `crypto` libs before loading python, for (4.1.2 or ear…
akshayaurora ce6417b
dynamically load libcrypto ans libel if they exist
akshayaurora 7a5e657
Merge branch '866' of https://github.com/kivy/python-for-android
rnixx 248ab32
customize kivy download URL
rnixx 667e06f
Also load cffi lib
rnixx 4aea97f
Load cffi extensions
rnixx 1bf8d8f
Another adoption of lib loading
rnixx bba8377
add TODO note
rnixx ca9edac
Merge branch 'master' of github.com:rnixx/python-for-android
rnixx 3c17132
Try cflag as described in https://github.com/kivy/python-for-android/…
rnixx a28d6d8
comment added cflag in python2 recipe, lets try a newer ndk first
rnixx 87cd3ee
comment python3.5m for debugging purposes
rnixx 212bd9f
...
rnixx 8b28857
Add ``screenSize`` to ``android:configChanges`` AndroidManifest.xml t…
rnixx 8272dae
Merge branch 'master' of https://github.com/kivy/python-for-android
rnixx a39e132
resolve
rnixx 8ab51e7
Merge branch 'master' of https://github.com/kivy/python-for-android
rnixx 44c83b9
merge p4a master
rnixx ac29df7
resolve conflicts
rnixx ec9529f
Merge branch 'master' of github.com:rnixx/python-for-android
rnixx 7b4b100
try https://github.com/kivy/python-for-android/commit/f017eb9254c4dc1…
rnixx 4a7cd2d
Add patches to disable ctermid and getpwall
rnixx 381103d
Add asn1crypto recipe
rnixx dbba5bb
Add attrs recipe
rnixx eb90f78
Add pyasn1_modules recipe
rnixx 47efdf9
Add service_identity recipe
rnixx 4b273ff
Update cffi recipe version to 1.11.5
rnixx 0744f91
Update cryptography version to 2.3.1. Document cryptography dependenc…
rnixx 521922f
Update enum34 recipe version to 1.1.6
rnixx 5e50de1
Update idna recipe version to 2.7
rnixx e87746b
Update ipaddress recipe version to 1.0.22
rnixx adf3dd6
Update openssl version to 1.0.2p
rnixx 0774af4
Update pyasn1 recipe version to 0.4.4
rnixx 2347a86
Update pycparser recipe version to 2.18
rnixx 64f57b4
Update pyopenssl recipe version to 18.0.0
rnixx c9c596b
Document dependency option for TLS in twisted recipe
rnixx 99db618
remove commented line
rnixx 81a0e1a
Use kivy release download in kivy recipe
rnixx b8aae67
Remove superfluous recipes
rnixx bee84ed
Merge branch 'ctermid_getpwall_patches' into api_level_27
rnixx 6854a46
Merge branch 'master' of https://github.com/kivy/python-for-android
rnixx 1c865a6
Add patches to disable ctermid and getpwall
rnixx 94d1a06
Update cffi recipe version to 1.11.5
rnixx 81b326f
Merge branch 'api_level_27' of github.com:rnixx/python-for-android in…
rnixx 8bb8d4f
Merge pull request #1386 from AndreMiras/feature/linter_fixes
inclement de148f4
try https://github.com/kivy/python-for-android/commit/f017eb9254c4dc1…
rnixx cf68676
Add patches to disable ctermid and getpwall
rnixx 061b153
Update cffi recipe version to 1.11.5
rnixx a37d43d
Merge branch 'api_level_27' of github.com:rnixx/python-for-android in…
rnixx b56357f
remove pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android/Py…
rnixx 09fd642
# Das ist eine Kombination aus 2 Commits.
rnixx fbd78ce
Merge branch 'api_level_27' of github.com:rnixx/python-for-android in…
rnixx 61a10a0
try https://github.com/kivy/python-for-android/commit/f017eb9254c4dc1…
rnixx 65b2266
Add patches to disable ctermid and getpwall
rnixx 100dd4e
Add asn1crypto recipe
rnixx 231ac0a
Add attrs recipe
rnixx 7ecd66f
Add pyasn1_modules recipe
rnixx b24a7ed
Add service_identity recipe
rnixx 5cbc9f9
Update cffi recipe version to 1.11.5
rnixx 3bb7359
Update cryptography version to 2.3.1. Document cryptography dependenc…
rnixx 79b5547
Update enum34 recipe version to 1.1.6
rnixx 0da6f72
Update idna recipe version to 2.7
rnixx c9dbd7a
Update ipaddress recipe version to 1.0.22
rnixx 9f444e1
Update openssl version to 1.0.2p
rnixx c46492f
Update pyasn1 recipe version to 0.4.4
rnixx 8e5258a
Update pycparser recipe version to 2.18
rnixx 68763c4
Update pyopenssl recipe version to 18.0.0
rnixx f98e834
Document dependency option for TLS in twisted recipe
rnixx 288a93c
Remove superfluous recipes
rnixx aa3beeb
Merge branch 'api_level_27' of github.com:rnixx/python-for-android in…
rnixx a8ab01a
Add patches to disable ctermid and getpwall in python2 recipe. Fix cr…
rnixx dc01ae7
Merge branch 'api_level_27' of github.com:rnixx/python-for-android in…
rnixx f7cbb20
Merge kivy master
rnixx 23452ac
adopt jnius recipe
rnixx 87fd595
Revert "adopt jnius recipe"
rnixx 3822d8b
merge kivy master
rnixx 33671a0
Add patch for disabling large file support when compiling python2
rnixx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
|
||
# APP_ABI := armeabi armeabi-v7a x86 | ||
APP_ABI := $(ARCH) | ||
APP_PLATFORM := android-19 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
pythonforandroid/recipes/python2/patches/disable-ctermid.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- Python-2.7.2.orig/Modules/posixmodule.c 2018-09-24 15:49:14.041368116 +0200 | ||
+++ Python-2.7.2/Modules/posixmodule.c 2018-09-24 16:15:02.537201532 +0200 | ||
@@ -1615,17 +1615,8 @@ | ||
static PyObject * | ||
posix_ctermid(PyObject *self, PyObject *noargs) | ||
{ | ||
- char *ret; | ||
- char buffer[L_ctermid]; | ||
- | ||
-#ifdef USE_CTERMID_R | ||
- ret = ctermid_r(buffer); | ||
-#else | ||
- ret = ctermid(buffer); | ||
-#endif | ||
- if (ret == NULL) | ||
- return posix_error(); | ||
- return PyString_FromString(buffer); | ||
+ PyErr_SetString(PyExc_NotImplementedError, "ctermid not implemented for this build"); | ||
+ return NULL; | ||
} | ||
#endif | ||
|
32 changes: 32 additions & 0 deletions
32
pythonforandroid/recipes/python2/patches/disable-getpwall.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- Python-2.7.2.orig/Modules/pwdmodule.c 2018-09-24 15:49:14.053368267 +0200 | ||
+++ Python-2.7.2/Modules/pwdmodule.c 2018-09-24 16:28:09.083420986 +0200 | ||
@@ -146,27 +146,8 @@ | ||
static PyObject * | ||
pwd_getpwall(PyObject *self) | ||
{ | ||
- PyObject *d; | ||
- struct passwd *p; | ||
- if ((d = PyList_New(0)) == NULL) | ||
- return NULL; | ||
-#if defined(PYOS_OS2) && defined(PYCC_GCC) | ||
- if ((p = getpwuid(0)) != NULL) { | ||
-#else | ||
- setpwent(); | ||
- while ((p = getpwent()) != NULL) { | ||
-#endif | ||
- PyObject *v = mkpwent(p); | ||
- if (v == NULL || PyList_Append(d, v) != 0) { | ||
- Py_XDECREF(v); | ||
- Py_DECREF(d); | ||
- endpwent(); | ||
- return NULL; | ||
- } | ||
- Py_DECREF(v); | ||
- } | ||
- endpwent(); | ||
- return d; | ||
+ PyErr_SetString(PyExc_NotImplementedError, "getpwall not implemented for this build"); | ||
+ return NULL; | ||
} | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting this to a fixed value for everyone could possibly have some surprising consequences, and there is the problem that it probably also acts as a minimum supported api. It might be better to leave this change until a more robust implementation is complete. Alternatively, if targeting a very old api works (like 12) that could be okay, I'd still be wary of surprising consequences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just taken this from your branch. Not yet in state where I tried to upload to playstore. Once it works with this changes, I'll try to upload an apk without this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you will need to do either this, or the create-dist-with-api-19-then-delete-and-rebuild-with-api-27 method suggested in the other thread. However, the problem is that hardcoding it to a single value will probably cause some problems itself - it didn't matter in my branch or for individual testing, but it's the kind of thing that causes issues when dispersed across the wide range of configurations people use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to get a working apk without hacks like delete-and-rebuild. Let's see what playstore tells me for an apk build like it's done now, and think about generalization afterwards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one still needs to be tested