From nobody Fri Mar 25 13:42:48 2022 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 6CFEA1A28EDD; Fri, 25 Mar 2022 13:42:51 +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 4KQ3F65Qlpz3L02; Fri, 25 Mar 2022 13:42:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648215771; 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=VHli9PN5fiAKRA1ky23nA92TewthC1JJfRsDHYpCAsM=; b=UyjEzLGoLAQIsr7cphyTzKgWSo1c4h66N/YN2FNuT9np5OyrlcT4sCxl/R53HC880bFs1f o5I/mdHlXC19FE/KkYeduOibBXXDq3HmbR2+5j4+q5Z2L0cY71YHK2sg2EZKa7RV/F67cs Zpzb4mR31/1/hAEB3jaulkRjMFwBnX40m/uXRIIqN9KPJ6l9Ffn1Kj2ajhVftj0zTJ3wLJ g7sz2uTdBhgll/2qOm6W3eg+Bl14agyQFr6Vkqqi/1P633atsFPgqeMzGcDMLq6facRKk5 w7alXOBTPYtHujAQG4vF/yeAp4I9MeegAVgkZRXOcAP2qLMMMcnvVizB/tkmxQ== 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 D4CDD5837; Fri, 25 Mar 2022 13:42:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22PDgmxD018560; Fri, 25 Mar 2022 13:42:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDgm7k018559; Fri, 25 Mar 2022 13:42:48 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:42:48 GMT Message-Id: <202203251342.22PDgm7k018559@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: c95bdf643aa2 - main - lang/cython: Fix build with Python 3.11.0a6 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: c95bdf643aa2a633fb72545b7c8581b215471eab Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648215771; 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=VHli9PN5fiAKRA1ky23nA92TewthC1JJfRsDHYpCAsM=; b=C+5U8fhi0heGciyJe6WHuqPLJ7ZVWyn/qXyAO8o6AB2LovvMTdTDoYhZvfOyca28UTSMgA a977xGyg0o/0VU5p+OcvYJOv54G8IOBEBuBoeeljaakOsJsZVlZdww2nOUvMShqlAQ7K6y uYnWPUO2usPqekJwfRqVAFTzR//Hbp2tTjVG7HXm2lWiHk+Xm0YQT/Yx4zAIeXvpnigVfO c9Aqw1+Wq6tftAp5RRLZWAlR/A1SGcABNT9BSjhLZML90jC9cDqrpbNUaSgpvCKzW9wl8j JeQLXEDnbGh10bLKoJv/yw5oV2vIHN4tvkZe1QmytaTtnyRy+lKaizedNDQajg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648215771; a=rsa-sha256; cv=none; b=LFWMvwc5MpMgWZlvKV6gKTy6xnziOUgPT9HgDzJAjxBksd+IB2E1dl0920pdE8L3g4HcjK Za6s2RVxwaPukjj9nzqELwWGk8lByrlS70nVYNW2arPC5vYloOhPCAJ0WdlO7RfwaGsRN4 mqAIXndHoyipb3MYg1w9ZtHtCbywSdxTPOOEJ/k2Xx/Rs6GBOgmMcuq1SbJoyLi4KUtLqs mfO39rHwUI170qCs1VRGrIz/hAos18SwSVVwAIc7OmRv+/mqOPEUx11QHoS6R+n3IOzkNP dBJO59FhfyMa32bkNgdmV8ZgRKKsUz64bpM2Gj46qUaqhUxnQypgYQHJSCtU/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c95bdf643aa2a633fb72545b7c8581b215471eab commit c95bdf643aa2a633fb72545b7c8581b215471eab Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 12:46:04 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:36:42 +0000 lang/cython: Fix build with Python 3.11.0a6 Obtained from: https://github.com/cython/cython/commit/7537910a2d2e3892359ef639fe9262f017634461 --- lang/cython/files/patch-python311 | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/lang/cython/files/patch-python311 b/lang/cython/files/patch-python311 new file mode 100644 index 000000000000..8dc0daa4022e --- /dev/null +++ b/lang/cython/files/patch-python311 @@ -0,0 +1,62 @@ +Obtained from: https://github.com/cython/cython/commit/7537910a2d2e3892359ef639fe9262f017634461 + +--- Cython/Utility/Coroutine.c.orig 2022-02-16 23:58:31 UTC ++++ Cython/Utility/Coroutine.c +@@ -490,6 +490,12 @@ static int __pyx_Generator_init(void); /*proto*/ + + #include + #include ++#if PY_VERSION_HEX >= 0x030b00a6 ++ #ifndef Py_BUILD_CORE ++ #define Py_BUILD_CORE 1 ++ #endif ++ #include "internal/pycore_frame.h" ++#endif + + #define __Pyx_Coroutine_Undelegate(gen) Py_CLEAR((gen)->yieldfrom) + +--- Cython/Utility/Exceptions.c.orig 2022-02-16 23:58:31 UTC ++++ Cython/Utility/Exceptions.c +@@ -705,6 +705,12 @@ static void __Pyx_AddTraceback(const char *funcname, i + #include "compile.h" + #include "frameobject.h" + #include "traceback.h" ++#if PY_VERSION_HEX >= 0x030b00a6 ++ #ifndef Py_BUILD_CORE ++ #define Py_BUILD_CORE 1 ++ #endif ++ #include "internal/pycore_frame.h" ++#endif + + static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( + const char *funcname, int c_line, +--- Cython/Utility/ObjectHandling.c.orig 2022-02-16 23:58:31 UTC ++++ Cython/Utility/ObjectHandling.c +@@ -1996,6 +1996,12 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObjec + static size_t __pyx_pyframe_localsplus_offset = 0; + + #include "frameobject.h" ++#if PY_VERSION_HEX >= 0x030b00a6 ++ #ifndef Py_BUILD_CORE ++ #define Py_BUILD_CORE 1 ++ #endif ++ #include "internal/pycore_frame.h" ++#endif + // This is the long runtime version of + // #define __Pyx_PyFrame_GetLocalsplus(frame) ((frame)->f_localsplus) + // offsetof(PyFrameObject, f_localsplus) differs between regular C-Python and Stackless Python. +--- Cython/Utility/Profile.c.orig 2022-02-16 23:58:31 UTC ++++ Cython/Utility/Profile.c +@@ -38,6 +38,12 @@ + #include "compile.h" + #include "frameobject.h" + #include "traceback.h" ++#if PY_VERSION_HEX >= 0x030b00a6 ++ #ifndef Py_BUILD_CORE ++ #define Py_BUILD_CORE 1 ++ #endif ++ #include "internal/pycore_frame.h" ++#endif + + #if CYTHON_PROFILE_REUSE_FRAME + #define CYTHON_FRAME_MODIFIER static