From nobody Fri Jul 07 12:58:08 2023 X-Original-To: dev-commits-ports-all@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 4QyD345pfnz4lwxM; Fri, 7 Jul 2023 12:58:08 +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 4QyD3452Mqz3NRr; Fri, 7 Jul 2023 12:58:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688734688; 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=06GG6P8IhuNENZJ/LmFWqNggMY3Vsv5zVG7ZsX5CaSU=; b=sJRlmTG4g3o15ltlzdN5eIlEef7zriUkPn0V4gtMpTNVMxOF1e+cju4OkH9b0FJB7xhZv2 IT90m4wvmHipwEdvpbYUx/pc/SgRBTLqV7zNGQ+lh9SgNH4UnUKOwg7GyOGwQJ6GXMwJiT 0iYpvH1kVYYK9y2LpME21Bz3X2puTB/Z0tDKDAimU4NZX/ZGSRq5BdsqjKgRyG8iXk2+iq K39KARJmzMNUI9Pff058alePX9m4vuayBoTij+TN7XSls+bS7WuHkY4mDkzLTcAbLIngw4 9BwJtMNiGOTJEOPfdfbmR8gpUmywekp0jBQpiq9looOUtWo4pTJSmXx1fxE8gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688734688; 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=06GG6P8IhuNENZJ/LmFWqNggMY3Vsv5zVG7ZsX5CaSU=; b=cty2fb4NjAzCRCzwu0ykkERNF+v+RRECC4ySJ7vvLccgSG0I7caVcuF92UtKj55iTpvcog 2s8m0WdU0pdt8+gY4aJlbwxrWJ61m6XWeEskKubGNQ5KNkuD5yt+VwPiAIh6N6q+ulKsLl P5i6akkLznP1HxyW92EvFYo9auaKow/5ZoX3NMu3vBEUZTN4/LZXHgEwBI311pV245rP4+ gYOFTxsm5Qclkogrtbbwi6rSAh35T5Uc04A0OYiIzQQ2tXB2qWGccExQDXYslEXBeuYQjP 9gLQzhfpt+rh6fN2YFhEUCDYHt5lNoZsfn1ROIXYZmW5ymeu8lPQNLROAxNbFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688734688; a=rsa-sha256; cv=none; b=dSjzvJeFIKztTMthfiT8r0XOmxHj96KLuZurgjxw4gGWG+K5JjcRRk5x8gLRB3g+ZhdPTn hYZoS02oKiWUQdmKdzvexQrBmqrv3k5jyVkXCql+eThK+2pW0uneVG4YKgai/fTLRPpPZi qYzwe0rwogL0W4N3CWx4fucNP4zcudKNzEL4a4L9V2Zub2uPdtR9UnbmkTLGwGK1rUtjsA 7b5YlyVvmqWnXdAootydioJadB+uQtFRHCf2J/Wm2r9cEerA28j/OPvO7/N+GmXB4g6Q99 KBWI/BBI130fm35evFhecVS4D1aY5NJCwHjek2k1VIBCm1iG3WE8SE5glVNXdg== 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 4QyD34486szfPX; Fri, 7 Jul 2023 12:58:08 +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 367Cw8PR017550; Fri, 7 Jul 2023 12:58:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 367Cw8Ll017549; Fri, 7 Jul 2023 12:58:08 GMT (envelope-from git) Date: Fri, 7 Jul 2023 12:58:08 GMT Message-Id: <202307071258.367Cw8Ll017549@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Wen Heping Subject: git: 65c21fd7c916 - main - math/py-numpy: Update to 1.25.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 65c21fd7c9164f3093c730373d463bbc37f640d1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=65c21fd7c9164f3093c730373d463bbc37f640d1 commit 65c21fd7c9164f3093c730373d463bbc37f640d1 Author: Wen Heping AuthorDate: 2023-07-07 12:56:11 +0000 Commit: Wen Heping CommitDate: 2023-07-07 12:56:11 +0000 math/py-numpy: Update to 1.25.0 PR: 272058 Reported by: wen@ Exp-run by: antoine@ --- Mk/Uses/python.mk | 2 +- math/py-numpy/Makefile | 8 ++--- math/py-numpy/distinfo | 16 +++++----- ...atch-numpy_core_src_common_npy__cpu__features.c | 34 ++++++++++------------ .../files/patch-numpy_distutils_ccompiler__opt.py | 17 ----------- 5 files changed, 26 insertions(+), 51 deletions(-) diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index e0e6d924f655..179cdd2c1d0a 100644 --- a/Mk/Uses/python.mk +++ b/Mk/Uses/python.mk @@ -774,7 +774,7 @@ CMAKE_ARGS+= -DPython_ADDITIONAL_VERSIONS=${PYTHON_VER} # Python 3rd-party modules PYGAME= ${PYTHON_PKGNAMEPREFIX}game>0:devel/py-game@${PY_FLAVOR} -PYNUMPY= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16,1<1.25,1:math/py-numpy@${PY_FLAVOR} +PYNUMPY= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16,1<1.26,1:math/py-numpy@${PY_FLAVOR} . if defined(_PYTHON_FEATURE_DISTUTILS) . if ${PYTHON_MAJOR_VER} < 3 diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile index cf4ebe31274a..d739e2098cf9 100644 --- a/math/py-numpy/Makefile +++ b/math/py-numpy/Makefile @@ -1,6 +1,5 @@ PORTNAME= numpy -PORTVERSION= 1.24.1 -PORTREVISION= 5 +PORTVERSION= 1.25.0 PORTEPOCH= 1 CATEGORIES= math python MASTER_SITES= PYPI \ @@ -12,9 +11,6 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ DIST_SUBDIR= ${PORTNAME}-${PORTVERSION:R} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} -PATCH_SITES= https://github.com/numpy/numpy/commit/ -PATCHFILES= 8692e2478cc74cc7c08e9b2a0f731a10a1ca7118.patch:-p1 - MAINTAINER= python@FreeBSD.org COMMENT= The New Numeric Extension to Python WWW= https://www.numpy.org/ @@ -25,7 +21,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=6.2.5:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hypothesis>=6.24.1:devel/py-hypothesis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.2.0:devel/py-typing-extensions@${PY_FLAVOR} -USES= compiler:c11 cpe fortran python +USES= compiler:c11 cpe fortran python:3.9-3.11 USE_PYTHON= allflavors autoplist concurrent cython distutils GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so | ${SED} -e s/libgfortran.so// diff --git a/math/py-numpy/distinfo b/math/py-numpy/distinfo index 55e6c3eea94c..2de2617b8244 100644 --- a/math/py-numpy/distinfo +++ b/math/py-numpy/distinfo @@ -1,9 +1,7 @@ -TIMESTAMP = 1686775677 -SHA256 (numpy-1.24/numpy-1.24.1.tar.gz) = 2386da9a471cc00a1f47845e27d916d5ec5346ae9696e01a8a34760858fe9dd2 -SIZE (numpy-1.24/numpy-1.24.1.tar.gz) = 10903184 -SHA256 (numpy-1.24/numpy-ref.pdf) = f493c1cae879a4e0038bec400d349fc34aafa164e1462118bdf18b25a3a07daf -SIZE (numpy-1.24/numpy-ref.pdf) = 7715485 -SHA256 (numpy-1.24/numpy-user.pdf) = 3978da15c6a1b00f2737c75458db0cc0fe636ae90b72723a8ff609d40e9b7599 -SIZE (numpy-1.24/numpy-user.pdf) = 4123384 -SHA256 (numpy-1.24/8692e2478cc74cc7c08e9b2a0f731a10a1ca7118.patch) = 59d96ad7ef708f3b63ff7c4d7daa2a12dbaf510691f84dfd7be126de39eda49e -SIZE (numpy-1.24/8692e2478cc74cc7c08e9b2a0f731a10a1ca7118.patch) = 2861 +TIMESTAMP = 1688388955 +SHA256 (numpy-1.25/numpy-1.25.0.tar.gz) = f1accae9a28dc3cda46a91de86acf69de0d1b5f4edd44a9b0c3ceb8036dfff19 +SIZE (numpy-1.25/numpy-1.25.0.tar.gz) = 10426700 +SHA256 (numpy-1.25/numpy-ref.pdf) = f493c1cae879a4e0038bec400d349fc34aafa164e1462118bdf18b25a3a07daf +SIZE (numpy-1.25/numpy-ref.pdf) = 7715485 +SHA256 (numpy-1.25/numpy-user.pdf) = 3978da15c6a1b00f2737c75458db0cc0fe636ae90b72723a8ff609d40e9b7599 +SIZE (numpy-1.25/numpy-user.pdf) = 4123384 diff --git a/math/py-numpy/files/patch-numpy_core_src_common_npy__cpu__features.c b/math/py-numpy/files/patch-numpy_core_src_common_npy__cpu__features.c index 7119bfb88896..0b9fc238b7ca 100644 --- a/math/py-numpy/files/patch-numpy_core_src_common_npy__cpu__features.c +++ b/math/py-numpy/files/patch-numpy_core_src_common_npy__cpu__features.c @@ -1,6 +1,6 @@ ---- numpy/core/src/common/npy_cpu_features.c.orig 2022-11-19 22:40:58 UTC +--- numpy/core/src/common/npy_cpu_features.c.orig 2023-06-18 00:19:04 UTC +++ numpy/core/src/common/npy_cpu_features.c -@@ -527,6 +527,18 @@ npy__cpu_init_features(void) +@@ -570,6 +570,18 @@ npy__cpu_init_features(void) #ifndef PPC_FEATURE2_ARCH_3_1 #define PPC_FEATURE2_ARCH_3_1 0x00040000 #endif @@ -19,18 +19,10 @@ #endif static void -@@ -551,7 +563,26 @@ npy__cpu_init_features(void) - npy__cpu_have[NPY_CPU_FEATURE_VSX2] = (hwcap & PPC_FEATURE2_ARCH_2_07) != 0; - npy__cpu_have[NPY_CPU_FEATURE_VSX3] = (hwcap & PPC_FEATURE2_ARCH_3_00) != 0; - npy__cpu_have[NPY_CPU_FEATURE_VSX4] = (hwcap & PPC_FEATURE2_ARCH_3_1) != 0; --// TODO: AIX, FreeBSD -+#elif defined(__FreeBSD__) -+ unsigned long hwcap; -+ elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); -+ if ((hwcap & PPC_FEATURE_HAS_VSX) == 0) -+ return; -+ -+ elf_aux_info(AT_HWCAP2, &hwcap, sizeof(hwcap)); +@@ -591,6 +603,25 @@ npy__cpu_init_features(void) + + elf_aux_info(AT_HWCAP2, &hwcap, sizeof(hwcap)); + #endif // __linux__ + if (hwcap & PPC_FEATURE2_ARCH_3_1) + { + npy__cpu_have[NPY_CPU_FEATURE_VSX] = @@ -43,7 +35,13 @@ + npy__cpu_have[NPY_CPU_FEATURE_VSX2] = (hwcap & PPC_FEATURE2_ARCH_2_07) != 0; + npy__cpu_have[NPY_CPU_FEATURE_VSX3] = (hwcap & PPC_FEATURE2_ARCH_3_00) != 0; + npy__cpu_have[NPY_CPU_FEATURE_VSX4] = (hwcap & PPC_FEATURE2_ARCH_3_1) != 0; -+// TODO: AIX, OpenBSD - #else - npy__cpu_have[NPY_CPU_FEATURE_VSX] = 1; - #if defined(NPY_CPU_PPC64LE) || defined(NPY_HAVE_VSX2) ++#elif defined(__FreeBSD__) ++ unsigned long hwcap; ++ elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); ++ if ((hwcap & PPC_FEATURE_HAS_VSX) == 0) ++ return; ++ ++ elf_aux_info(AT_HWCAP2, &hwcap, sizeof(hwcap)); + if (hwcap & PPC_FEATURE2_ARCH_3_1) + { + npy__cpu_have[NPY_CPU_FEATURE_VSX] = diff --git a/math/py-numpy/files/patch-numpy_distutils_ccompiler__opt.py b/math/py-numpy/files/patch-numpy_distutils_ccompiler__opt.py deleted file mode 100644 index d8a0abca53bd..000000000000 --- a/math/py-numpy/files/patch-numpy_distutils_ccompiler__opt.py +++ /dev/null @@ -1,17 +0,0 @@ ---- numpy/distutils/ccompiler_opt.py.orig 2022-11-19 22:40:58 UTC -+++ numpy/distutils/ccompiler_opt.py -@@ -959,8 +959,12 @@ class _CCompiler: - detect_arch = ( - ("cc_on_x64", ".*(x|x86_|amd)64.*", ""), - ("cc_on_x86", ".*(win32|x86|i386|i686).*", ""), -- ("cc_on_ppc64le", ".*(powerpc|ppc)64(el|le).*", ""), -- ("cc_on_ppc64", ".*(powerpc|ppc)64.*", ""), -+ ("cc_on_ppc64le", ".*(powerpc|ppc)64(el|le).*|.*powerpc.*", "" -+ "defined(__LP64__) && " -+ "defined(__LITTLE_ENDIAN__)"), -+ ("cc_on_ppc64", ".*(powerpc|ppc).*|.*powerpc.*", "" -+ "defined(__LP64__) && " -+ "defined(__BIG_ENDIAN__)"), - ("cc_on_aarch64", ".*(aarch64|arm64).*", ""), - ("cc_on_armhf", ".*arm.*", "defined(__ARM_ARCH_7__) || " - "defined(__ARM_ARCH_7A__)"),