Date: Sat, 26 Aug 2023 09:30:50 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ec97e4f3733b - main - devel/py-protobuf: Fix build with Clang 16 Message-ID: <202308260930.37Q9Uov0090077@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=ec97e4f3733bd59cb03326778a396a425d33cd05 commit ec97e4f3733bd59cb03326778a396a425d33cd05 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-08-26 09:27:33 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-08-26 09:27:33 +0000 devel/py-protobuf: Fix build with Clang 16 Reported by: fluffy, rhurlin, <jakub_lach@mailplus.pl> PR: 273282 --- devel/py-protobuf/files/patch-clang16 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/devel/py-protobuf/files/patch-clang16 b/devel/py-protobuf/files/patch-clang16 new file mode 100644 index 000000000000..87b64d4d2354 --- /dev/null +++ b/devel/py-protobuf/files/patch-clang16 @@ -0,0 +1,23 @@ +--- python/message.c.orig 2000-01-01 00:00:00 UTC ++++ python/message.c +@@ -1235,7 +1235,7 @@ static PyObject* PyUpb_Message_CopyFrom(PyObject* _sel + Py_DECREF(tmp); + + upb_Message_DeepCopy(self->ptr.msg, other->ptr.msg, +- upb_MessageDef_MiniTable(other->def), ++ upb_MessageDef_MiniTable((upb_MessageDef *) other->def), + PyUpb_Arena_Get(self->arena)); + PyUpb_Message_SyncSubobjs(self); + +@@ -1606,9 +1606,9 @@ PyObject* DeepCopy(PyObject* _self, PyObject* arg) { + + PyObject* arena = PyUpb_Arena_New(); + upb_Message* clone = +- upb_Message_DeepClone(self->ptr.msg, upb_MessageDef_MiniTable(self->def), ++ upb_Message_DeepClone(self->ptr.msg, upb_MessageDef_MiniTable((upb_MessageDef *) self->def), + PyUpb_Arena_Get(arena)); +- PyObject* ret = PyUpb_Message_Get(clone, self->def, arena); ++ PyObject* ret = PyUpb_Message_Get(clone, (upb_MessageDef *) self->def, arena); + Py_DECREF(arena); + + return ret;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308260930.37Q9Uov0090077>