From nobody Sat Aug 26 09:30:50 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RXs4p5zrbz4rXDZ; Sat, 26 Aug 2023 09:30:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RXs4p556Cz4Jbv; Sat, 26 Aug 2023 09:30:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693042250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QD0grMIgjpIjoBX9ks9SJkXuH5K4N4OLGsnQ19Tz/80=; b=Ta8zhBLwu0oBuiuA12Pi4ziGokeTUS/d8hxjCxgVV7jZX86QMUGgYO9HYSGulkyU/CfwHj 6ZIKKNuL9R8GiR2lOXHJdarfx6HcE3WpWxT3Z+J3lQA0AbCCTagR1CiD+sPrer98Elkccy AhXFnadIdT2kX3enDrAF6ppy6ifY9G+3eS0JeCDxvk3mK7/z9MB/q0dcstCgN6op4/kqfV qrOa2VlCC86UExi2gpW9vJGmlAepYjSL9lhX3XiOUcsvp5rD5vUTzH7ciYchJdQw0vxmmL uRjlmSsJ1/7ITTEsfMfdB6o6AiBol9STgYCsjXu6gvykQo8CESV7/N6iXYv7Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693042250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QD0grMIgjpIjoBX9ks9SJkXuH5K4N4OLGsnQ19Tz/80=; b=ouE32Sfs9rtvwqKwamfHcQ/XpaJo/1TzzrfqTbwSzmcgspLSVMWK++HY56+UwctF01O6nf qbfTm79KoyWv8XPL4cvHHgM5H43gFmMcn6l6+VckSZ62HIrkgiHCLXnTg/anWU1IBbu+mc iJ+ulZI6kl7wZI0A2X/yC46iaR8Y7cSeUVH7O6+cEsJFC+0JZh5X8vMb0SY9RPT32O9izV tHjqJK3yzwxm7q+Hm1LjOLG6UeVx0eoKNi1b2o+utYEPkE2iw0op293NWEIW3WjB0WjuRd gw29zZM0jwgElDpv46f9ynsvumWAi7OG3/my+rhYZrJFIwvdf2PwIxwKg0czKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693042250; a=rsa-sha256; cv=none; b=tHMLzFLH7npIh2b5RvjGqjpvZticQpqSeDeF2fKs2zVj2gHSlTFSwusz9dwNcvpTjuTgQn UTyO5WBsehYo0qwcAP97IvMLSEBKtfo2GT277Wzi22wnSKKvmweUO3AXZAqkKVkShnVyo0 LM0CIHJreCmDN9VsMgbYnU8hPnK76H3iTecCTXLZqrjYGfhwPKKyuwqFzzIG2LKQuWUaQ8 H9fq8ubfvvdTUb9wA0siuSR1iAWVwadMX5+0ZWKjxF9nDqjd1yz4k/tFgNodtMGh/F+RDk dTWiZfZ8zEOe4Cuh7Xen7/BVC5gpcF0GDVq5xNlRU+k7FazcazX37Mbqxz7ZXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RXs4p49NfzVjb; Sat, 26 Aug 2023 09:30:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37Q9Uokv090080; Sat, 26 Aug 2023 09:30:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37Q9Uov0090077; Sat, 26 Aug 2023 09:30:50 GMT (envelope-from git) Date: Sat, 26 Aug 2023 09:30:50 GMT Message-Id: <202308260930.37Q9Uov0090077@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: ec97e4f3733b - main - devel/py-protobuf: Fix build with Clang 16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ec97e4f3733bd59cb03326778a396a425d33cd05 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=ec97e4f3733bd59cb03326778a396a425d33cd05 commit ec97e4f3733bd59cb03326778a396a425d33cd05 Author: Po-Chuan Hsieh AuthorDate: 2023-08-26 09:27:33 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-08-26 09:27:33 +0000 devel/py-protobuf: Fix build with Clang 16 Reported by: fluffy, rhurlin, 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;