From b17e9702c7abde01cae48e4f7ea13e25e0872a87 Mon Sep 17 00:00:00 2001 From: Tom Briden Date: Thu, 23 Jul 2020 19:29:24 +0100 Subject: [PATCH] python-sipsimple: Add patch to fix build with GCC 10 --- .../files/python-sipsimple-gcc10-fix.patch | 25 +++++++++++++++++++ .../python-sipsimple-3.4.2-r1.exheres-0 | 1 + 2 files changed, 26 insertions(+) create mode 100644 packages/dev-python/python-sipsimple/files/python-sipsimple-gcc10-fix.patch diff --git a/packages/dev-python/python-sipsimple/files/python-sipsimple-gcc10-fix.patch b/packages/dev-python/python-sipsimple/files/python-sipsimple-gcc10-fix.patch new file mode 100644 index 0000000..3d70a8f --- /dev/null +++ b/packages/dev-python/python-sipsimple/files/python-sipsimple-gcc10-fix.patch @@ -0,0 +1,25 @@ +Upstream: Submitted +Source: https://github.com/AGProjects/python-sipsimple/pull/10 + +From 052f7301a0c906c4117dff5453222f12e768bb49 Mon Sep 17 00:00:00 2001 +From: Tom Briden +Date: Thu, 23 Jul 2020 19:22:30 +0100 +Subject: [PATCH] Fix multiple definition of `PJ_ATTR_MAY_ALIAS' with GCC-10 + +--- + deps/pjsip/pjlib/include/pj/list.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/deps/pjsip/pjlib/include/pj/list.h b/deps/pjsip/pjlib/include/pj/list.h +index 880f58d4..50510fe3 100644 +--- a/deps/pjsip/pjlib/include/pj/list.h ++++ b/deps/pjsip/pjlib/include/pj/list.h +@@ -71,7 +71,7 @@ PJ_BEGIN_DECL + * must initialize the 'value' member to an appropriate value (typically the + * owner itself). + */ +-struct pj_list ++extern struct pj_list + { + PJ_DECL_LIST_MEMBER(void); + } PJ_ATTR_MAY_ALIAS; /* may_alias avoids warning with gcc-4.4 -Wall -O2 */ diff --git a/packages/dev-python/python-sipsimple/python-sipsimple-3.4.2-r1.exheres-0 b/packages/dev-python/python-sipsimple/python-sipsimple-3.4.2-r1.exheres-0 index 6d1b3ee..165cbbd 100644 --- a/packages/dev-python/python-sipsimple/python-sipsimple-3.4.2-r1.exheres-0 +++ b/packages/dev-python/python-sipsimple/python-sipsimple-3.4.2-r1.exheres-0 @@ -50,6 +50,7 @@ DEPENDENCIES=" DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PNV}-fix-build.patch "${FILES}"/0001-Fix-build-with-LibreSSL-2.7.patch + "${FILES}"/${PN}-gcc10-fix.patch ) src_compile() {