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 8A9CB158003 for ; Fri, 29 Oct 2021 16:59:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4CA0E0824; Fri, 29 Oct 2021 16:59:48 +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 B7825E0824 for ; Fri, 29 Oct 2021 16:59:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 80D51343239 for ; Fri, 29 Oct 2021 16:59:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E8E479 for ; Fri, 29 Oct 2021 16:59:46 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1635526768.45d65df5773c2bcaf1241e5c0881c7308d9c6740.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pandas/files/pandas-1.3.4-arm-tests.patch dev-python/pandas/pandas-1.3.4.ebuild X-VCS-Directories: dev-python/pandas/files/ dev-python/pandas/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 45d65df5773c2bcaf1241e5c0881c7308d9c6740 X-VCS-Branch: master Date: Fri, 29 Oct 2021 16:59:46 +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: 507a1127-4c67-4070-8a89-668259e10806 X-Archives-Hash: 27e54ecc51b43272152cfb06206229c9 commit: 45d65df5773c2bcaf1241e5c0881c7308d9c6740 Author: Sam James gentoo org> AuthorDate: Fri Oct 29 16:59:28 2021 +0000 Commit: Sam James gentoo org> CommitDate: Fri Oct 29 16:59:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45d65df5 dev-python/pandas: fix detecting 32-bit arm (for skipping some tests) Bug: https://bugs.gentoo.org/818964 Signed-off-by: Sam James gentoo.org> .../pandas/files/pandas-1.3.4-arm-tests.patch | 21 +++++++++++++++++++++ dev-python/pandas/pandas-1.3.4.ebuild | 5 +++++ 2 files changed, 26 insertions(+) diff --git a/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch b/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch new file mode 100644 index 00000000000..c30d10460b6 --- /dev/null +++ b/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/818964 +https://github.com/pandas-dev/pandas/commit/b0992ee2f4653c7d70ddbad6f2d172a4ef0bda32 + +From: Sam James +Date: Fri, 29 Oct 2021 17:24:01 +0100 +Subject: [PATCH] Update is_platform_arm() to detect 32-bit arm and other + variants (#44225) + +--- a/pandas/compat/__init__.py ++++ b/pandas/compat/__init__.py +@@ -99,7 +99,9 @@ def is_platform_arm() -> bool: + bool + True if the running platform uses ARM architecture. + """ +- return platform.machine() in ("arm64", "aarch64") ++ return platform.machine() in ("arm64", "aarch64") or platform.machine().startswith( ++ "armv" ++ ) + + + def import_lzma(): diff --git a/dev-python/pandas/pandas-1.3.4.ebuild b/dev-python/pandas/pandas-1.3.4.ebuild index 4c3b594f00c..4d866a1cf62 100644 --- a/dev-python/pandas/pandas-1.3.4.ebuild +++ b/dev-python/pandas/pandas-1.3.4.ebuild @@ -106,6 +106,11 @@ RDEPEND="${COMMON_DEPEND} full-support? ( ${OPTIONAL_DEPEND} ) " +PATCHES=( + # Upstream patch to fix 32-bit ARM test detection + "${FILESDIR}"/${P}-arm-tests.patch +) + python_prepare_all() { # Prevent un-needed download during build sed -e "/^ 'sphinx.ext.intersphinx',/d" \