Skip to content

Instantly share code, notes, and snippets.

@opacam
opacam / gist:49e9395ef036560f30d53f7666e1f2f8
Created April 29, 2020 11:22
Patch to use CPython `bpo-22490` for hospython/python p4a's recipes (to fix `pyconfig.h` issue)
Index: pythonforandroid/recipes/hostpython3/__init__.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pythonforandroid/recipes/hostpython3/__init__.py (revision 60c624ffe839e0f975bfdbf5a2adfd88743cf010)
+++ pythonforandroid/recipes/hostpython3/__init__.py (date 1588157424290)
@@ -24,14 +24,14 @@
:class:`~pythonforandroid.python.HostPythonRecipe`
'''
@opacam
opacam / Harfbuzz configure
Created May 27, 2019 21:32
Harfbuzz configure
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by HarfBuzz configure 0.9.40, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /media/DEVEL/Android/python-for-android/build/other_builds/harfbuzz/armeabi-v7a__ndk_target_21/harfbuzz/configure --without-icu --host=arm-linux-androideabi --prefix=/home/opacam/.local/share/python-for-android/build/other_builds/harfbuzz/armeabi-v7a__ndk_target_21/harfbuzz --with-freetype=yes --without-glib
## --------- ##
## Platform. ##
@opacam
opacam / Harfbuzz build log
Created May 27, 2019 21:29
Harfbuzz build
[INFO]: Building harfbuzz for armeabi-v7a
[INFO]: -> directory context /home/opacam/.local/share/python-for-android/build/other_builds/harfbuzz/armeabi-v7a__ndk_target_21/harfbuzz
stty: 'entrada estàndard': L’operació ioctl() no s’adequa al dispositiu
[DEBUG]: -> running configure --without-icu --host=arm-linux-androideabi --prefix=/home/opacam/.local/share/python-for-android/build/other_builds/harfbuzz/armeabi-v7a__ndk_target_21/harfbuzz --with-freetype=yes --without-glib
[DEBUG]: checking for a BSD-compatible install... /usr/bin/install -c
[DEBUG]: checking whether build environment is sane... yes
[DEBUG]: checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip --strip-unneeded
[DEBUG]: checking for a thread-safe mkdir -p... /bin/mkdir -p
[DEBUG]: checking for gawk... gawk
[DEBUG]: checking whether make -j5 sets $(MAKE)... yes
@opacam
opacam / gist:8ffc6ae140bee1ef74bc1e5a96a9bc01
Created February 7, 2019 21:36
Test android's sensor fix with testapps (openssl|sqlite3) for sdl 2.0.9+
Index: testapps/setup_testapp_python2_sqlite_openssl.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- testapps/setup_testapp_python2_sqlite_openssl.py (date 1549483563000)
+++ testapps/setup_testapp_python2_sqlite_openssl.py (date 1549574623000)
@@ -10,6 +10,7 @@
'ndk-version': '10.3.2',
'permissions': ['INTERNET', 'VIBRATE'],
@opacam
opacam / gist:f6f4232cfe5ae997b712b8611c3c88c0
Created January 27, 2019 14:40
Make python flags relative for Android.mk of bootstraps/common/build/jni/application/src (to fix python's linkage problems in Mac OS)
Index: pythonforandroid/bootstraps/common/build/jni/application/src/Android.mk
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pythonforandroid/bootstraps/common/build/jni/application/src/Android.mk (revision Local Version)
+++ pythonforandroid/bootstraps/common/build/jni/application/src/Android.mk (revision Shelved Version)
@@ -12,13 +12,13 @@
LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.c \
start.c
@opacam
opacam / gist:1d5932dfbb3e1082ab1f68dd0559d667
Created January 12, 2019 18:47
Move libffi to mainline repo and update version (3.3-rc0) ¡¡¡Be careful...It's a release candidate!!!
Index: pythonforandroid/recipes/libffi/remove-version-info.patch
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pythonforandroid/recipes/libffi/remove-version-info.patch (date 1547074008000)
+++ pythonforandroid/recipes/libffi/remove-version-info.patch (date 1547318225000)
@@ -1,12 +1,11 @@
-diff -Naur libffi/Makefile.am b/Makefile.am
---- libffi/Makefile.am 2014-11-12 06:00:59.000000000 -0600
@opacam
opacam / fix-python3-linkage.patch
Created January 6, 2019 15:54
Fix linkage problems with python3's versioned library
Index: pythonforandroid/recipes/python3/__init__.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pythonforandroid/recipes/python3/__init__.py (revision Local Version)
+++ pythonforandroid/recipes/python3/__init__.py (revision Shelved Version)
@@ -169,7 +169,13 @@
exec_prefix=sys_exec_prefix)).split(' '), _env=env)