From 34e269e52345c7dab5af8584ee595622b18cd50f Mon Sep 17 00:00:00 2001 From: dl1ksv Date: Mon, 16 Nov 2015 10:57:38 +0100 Subject: [PATCH] Fixing compiler problem ( parse tuples ) --- pythonforandroid/recipes/python2/__init__.py | 1 + .../recipes/python2/patches/parsetuple.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 pythonforandroid/recipes/python2/patches/parsetuple.patch diff --git a/pythonforandroid/recipes/python2/__init__.py b/pythonforandroid/recipes/python2/__init__.py index b0d5b32114..41c12b2457 100644 --- a/pythonforandroid/recipes/python2/__init__.py +++ b/pythonforandroid/recipes/python2/__init__.py @@ -33,6 +33,7 @@ def prebuild_armeabi(self): self.apply_patch(join('patches', 'fix-remove-corefoundation.patch')) self.apply_patch(join('patches', 'fix-dynamic-lookup.patch')) self.apply_patch(join('patches', 'fix-dlfcn.patch')) + self.apply_patch(join('patches', 'parsetuple.patch')) # self.apply_patch(join('patches', 'ctypes-find-library.patch')) self.apply_patch(join('patches', 'ctypes-find-library-updated.patch')) diff --git a/pythonforandroid/recipes/python2/patches/parsetuple.patch b/pythonforandroid/recipes/python2/patches/parsetuple.patch new file mode 100644 index 0000000000..150c75e495 --- /dev/null +++ b/pythonforandroid/recipes/python2/patches/parsetuple.patch @@ -0,0 +1,11 @@ +--- Python-2.7.2/configure.orig 2015-06-24 17:47:39.181473779 +0200 ++++ Python-2.7.2/configure 2015-06-24 17:48:31.646173137 +0200 +@@ -5731,7 +5731,7 @@ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 + $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } + save_CFLAGS=$CFLAGS +- CFLAGS="$CFLAGS -Werror" ++ CFLAGS="$CFLAGS -Werror -Wformat" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +