diff options
author | Khem Raj <raj.khem@gmail.com> | 2013-06-13 02:28:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-14 12:43:20 +0100 |
commit | 5745a482a85c064a1eec960aff104cf8ce588e30 (patch) | |
tree | f80c75b2f6425a0c64e73b52b4b8211a48b9a99d /meta/recipes-devtools/python | |
parent | d9f840725f3ea67fbd28d0903c99b729df5b1377 (diff) | |
download | openembedded-core-5745a482a85c064a1eec960aff104cf8ce588e30.tar.gz openembedded-core-5745a482a85c064a1eec960aff104cf8ce588e30.tar.bz2 openembedded-core-5745a482a85c064a1eec960aff104cf8ce588e30.zip |
python: -Wformat is needed by gcc 4.8
This fixes errors in packages using python( build with gcc 4.8)
|
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemuarm/usr/include/python2.7/modsupport.h:27:1:
error: 'PyArg_ParseTuple' is an unrecognized format function type
[-Werror=format=]
| PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...)
Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
| ^
| cc1: all warnings being treated as errors
| cc1: all warnings being treated as errors
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r-- | meta/recipes-devtools/python/python/gcc-4.8-fix-configure-Wformat.patch | 20 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python_2.7.3.bb | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python/gcc-4.8-fix-configure-Wformat.patch b/meta/recipes-devtools/python/python/gcc-4.8-fix-configure-Wformat.patch new file mode 100644 index 0000000000..b5d9d5d424 --- /dev/null +++ b/meta/recipes-devtools/python/python/gcc-4.8-fix-configure-Wformat.patch @@ -0,0 +1,20 @@ +backport bug 17547 from http://hg.python.org/cpython/rev/9d50af4c482f/ + +-Wformat is needed by gcc 4.8 + +Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Backport +Index: Python-2.7.3/configure.in +=================================================================== +--- Python-2.7.3.orig/configure.in 2013-06-11 02:22:04.186529212 -0700 ++++ Python-2.7.3/configure.in 2013-06-13 02:17:06.324403327 -0700 +@@ -1196,7 +1196,7 @@ + then + AC_MSG_CHECKING(whether gcc supports ParseTuple __format__) + save_CFLAGS=$CFLAGS +- CFLAGS="$CFLAGS -Werror" ++ CFLAGS="$CFLAGS -Werror -Wformat" + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]]) + ],[ diff --git a/meta/recipes-devtools/python/python_2.7.3.bb b/meta/recipes-devtools/python/python_2.7.3.bb index f76f2185fe..5150e524ae 100644 --- a/meta/recipes-devtools/python/python_2.7.3.bb +++ b/meta/recipes-devtools/python/python_2.7.3.bb @@ -27,6 +27,7 @@ SRC_URI += "\ file://python-2.7.3-remove-bsdb-rpath.patch \ file://builddir.patch \ file://python-2.7.3-CVE-2012-2135.patch \ + file://gcc-4.8-fix-configure-Wformat.patch \ " S = "${WORKDIR}/Python-${PV}" |