From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 77A8E158649 for ; Thu, 11 May 2023 06:26:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7CE6E0C87; Thu, 11 May 2023 06:26:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9BFBCE0C87 for ; Thu, 11 May 2023 06:26:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AB8D3335D5E for ; Thu, 11 May 2023 06:26:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B2A60A6C for ; Thu, 11 May 2023 06:26:41 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1683786142.fe9b3c589dc0033b806bf3632e4fa9a445a696cd.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytables/, dev-python/pytables/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytables/files/pytables-3.8.0-cython3.patch dev-python/pytables/pytables-3.8.0-r3.ebuild X-VCS-Directories: dev-python/pytables/ dev-python/pytables/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: fe9b3c589dc0033b806bf3632e4fa9a445a696cd X-VCS-Branch: master Date: Thu, 11 May 2023 06:26:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9b6aeb8f-7baf-4c5f-aa26-f7739b7e5345 X-Archives-Hash: 8728d92686f4aab5c3eb6830fa2808ae commit: fe9b3c589dc0033b806bf3632e4fa9a445a696cd Author: Michał Górny gentoo org> AuthorDate: Thu May 11 06:20:47 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu May 11 06:22:22 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe9b3c58 dev-python/pytables: Backport cython-3 fix Closes: https://bugs.gentoo.org/898710 Signed-off-by: Michał Górny gentoo.org> .../pytables/files/pytables-3.8.0-cython3.patch | 40 ++++++++++++++++++++++ dev-python/pytables/pytables-3.8.0-r3.ebuild | 1 + 2 files changed, 41 insertions(+) diff --git a/dev-python/pytables/files/pytables-3.8.0-cython3.patch b/dev-python/pytables/files/pytables-3.8.0-cython3.patch new file mode 100644 index 000000000000..9ad0b72d224a --- /dev/null +++ b/dev-python/pytables/files/pytables-3.8.0-cython3.patch @@ -0,0 +1,40 @@ +From a70e36f0b0d4fb15b0b50e7ca513c4e4452767cc Mon Sep 17 00:00:00 2001 +From: Matus Valo +Date: Wed, 15 Mar 2023 22:49:07 +0100 +Subject: [PATCH] Fix build errors when compiled using cython 3.0.0b1. + +--- + pyproject.toml | 2 +- + tables/tableextension.pyx | 2 +- + tables/utilsextension.pyx | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/tables/tableextension.pyx b/tables/tableextension.pyx +index 8f3bb01b..4a50c6ab 100644 +--- a/tables/tableextension.pyx ++++ b/tables/tableextension.pyx +@@ -37,7 +37,7 @@ from .utils import SizeType + from .utilsextension cimport get_native_type, cstr_to_pystr + + # numpy functions & objects +-from hdf5extension cimport Leaf ++from .hdf5extension cimport Leaf + from cpython cimport PyErr_Clear + from libc.stdio cimport snprintf + from libc.stdlib cimport malloc, free +diff --git a/tables/utilsextension.pyx b/tables/utilsextension.pyx +index 5b16dcd3..664e1ea5 100644 +--- a/tables/utilsextension.pyx ++++ b/tables/utilsextension.pyx +@@ -344,7 +344,7 @@ except ImportError: + #--------------------------------------------------------------------- + + # Error handling helpers +-cdef herr_t e_walk_cb(unsigned n, const H5E_error_t *err, void *data) with gil: ++cdef herr_t e_walk_cb(unsigned n, const H5E_error_t *err, void *data) noexcept with gil: + cdef object bt = data # list + #cdef char major_msg[256] + #cdef char minor_msg[256] +-- +2.40.1 + diff --git a/dev-python/pytables/pytables-3.8.0-r3.ebuild b/dev-python/pytables/pytables-3.8.0-r3.ebuild index c2dfebf6f12b..4eb70e76b350 100644 --- a/dev-python/pytables/pytables-3.8.0-r3.ebuild +++ b/dev-python/pytables/pytables-3.8.0-r3.ebuild @@ -52,6 +52,7 @@ python_prepare_all() { local PATCHES=( "${FILESDIR}"/${P}-blosc2.patch "${FILESDIR}"/${P}-optional-cpuinfo.patch + "${FILESDIR}"/${P}-cython3.patch ) export PYTABLES_NO_EMBEDDED_LIBS=1