diff options
author | root <root@rshg054.dnsready.net> | 2013-04-05 00:06:04 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-04-05 00:06:04 -0700 |
commit | 3c7a59bfd2b8340068df7dc196e0c9b612b9ef31 (patch) | |
tree | 355d93a0286f98e9b5ba02d7e5b840eedb38e2b1 /extra/libreoffice/gcc48_2.diff | |
parent | 1b6860ed7a33a22c4202348a4f42afbb5d26be09 (diff) |
Fri Apr 5 00:06:03 PDT 2013
Diffstat (limited to 'extra/libreoffice/gcc48_2.diff')
-rw-r--r-- | extra/libreoffice/gcc48_2.diff | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/extra/libreoffice/gcc48_2.diff b/extra/libreoffice/gcc48_2.diff new file mode 100644 index 000000000..559adddfa --- /dev/null +++ b/extra/libreoffice/gcc48_2.diff @@ -0,0 +1,45 @@ +From c6cfd44717643b0630b5f8fd3262c243fdaaf239 Mon Sep 17 00:00:00 2001 +From: Stephan Bergmann <sbergman@redhat.com> +Date: Fri, 08 Mar 2013 09:54:45 +0000 +Subject: Work around GCC 4.8 -Werror=format= in python3 + +...complainging that "‘PyArg_ParseTuple’ is an unrecognized format function +type." + +Change-Id: I125af6669010c4c9c1a18cc7c1a4895acc89338b +--- +diff --git a/python3/UnpackedTarball_python3.mk b/python3/UnpackedTarball_python3.mk +index d8c0862..87adff0 100644 +--- a/python3/UnpackedTarball_python3.mk ++++ b/python3/UnpackedTarball_python3.mk +@@ -30,6 +30,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,python3,\ + python3/python-3.3.0-ssl.patch.1 \ + python3/python-3.3.0-implicit-int.patch.1 \ + python3/python-3.3.0-ffi-clang.patch.1 \ ++ python3/python-3.3.0-gcc-4.8.patch.1 \ + )) + + ifneq ($(OS),WNT) +diff --git a/python3/python-3.3.0-gcc-4.8.patch.1 b/python3/python-3.3.0-gcc-4.8.patch.1 +new file mode 100644 +index 0000000..8fb7107 +--- a/dev/null ++++ b/python3/python-3.3.0-gcc-4.8.patch.1 +@@ -0,0 +1,15 @@ ++--- Python-3.3.0/Include/modsupport.h 2012-09-29 10:00:26.000000000 +0200 +++++ Python-3.3.0/Include/modsupport.h 2013-03-08 10:46:28.671938738 +0100 ++@@ -26,7 +26,11 @@ ++ /* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */ ++ #if !defined(PY_SSIZE_T_CLEAN) || !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000 ++ PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...); ++-PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3); +++PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) +++#ifdef PY_SSIZE_T_CLEAN +++ Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3) +++#endif +++ ; ++ PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *, ++ const char *, char **, ...); ++ PyAPI_FUNC(int) PyArg_ValidateKeywordArguments(PyObject *); +-- +cgit v0.9.0.2-2-gbebe |