head 1.2; access; symbols pkgsrc-2026Q2:1.1.0.34 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.32 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.30 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.28 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.26 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.24 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.22 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.20 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.18 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.16 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.14 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.12 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.10 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.8 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.6 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.4 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.2 pkgsrc-2022Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2026.06.28.15.40.18; author wiz; state dead; branches; next 1.1; commitid Smom2RBzpbB21ALG; 1.1 date 2022.05.23.17.28.41; author ryoon; state Exp; branches; next ; commitid 3wcmNXmBYorAJcFD; desc @@ 1.2 log @py-numpy: update to 2.5.0. Numpy 2.5.0 is a transitional release. It drops support for Python 3.11, marking the end of distutils, and expires a large number of deprecations made in the 2.0.x release. It also improves free threading and brings sorting into compliance with the array-api standard with the addition of descending sorts. There is also a fair amount of preparation for Python 3.15, which will be supported starting with the first rc. Highlights Distutils has been removed. Many expired deprecations. Many new deprecations. Many static typing improvements. Improved support for free threading. Support for descending sorts. @ text @$NetBSD: patch-numpy_distutils_command_config.py,v 1.1 2022/05/23 17:28:41 ryoon Exp $ * Workaround for undefined-sysbol errors from graphics/py-matplotlib. --- numpy/distutils/command/config.py.orig 2022-05-17 10:56:58.000000000 +0000 +++ numpy/distutils/command/config.py @@@@ -321,11 +321,7 @@@@ class config(old_config): # return a value. self._check_compiler() body = [] - if decl: - if type(decl) == str: - body.append(decl) - else: - body.append("int %s (void);" % func) + body.append("int %s (void);" % func) # Handle MSVC intrinsics: force MS compiler to make a function call. # Useful to test for some functions when built with optimization on, to # avoid build error because the intrinsic and our 'fake' test @@@@ -336,15 +332,16 @@@@ class config(old_config): body.append("int main (void) {") if call: if call_args is None: + body.append(" %s(%s);" % (func, call_args)) call_args = '' - body.append(" %s(%s);" % (func, call_args)) + body.append(" %s();" % func) else: body.append(" %s;" % func) body.append(" return 0;") body.append("}") body = '\n'.join(body) + "\n" - return self.try_link(body, headers, include_dirs, + return self.try_link(body, None, include_dirs, libraries, library_dirs) def check_funcs_once(self, funcs, @@@@ -376,10 +373,8 @@@@ class config(old_config): """ self._check_compiler() body = [] - if decl: - for f, v in decl.items(): - if v: - body.append("int %s (void);" % f) + for f in funcs: + body.append("int %s (void);" % f) # Handle MS intrinsics. See check_func for more info. body.append("#ifdef _MSC_VER") @@@@ -395,7 +390,7 @@@@ class config(old_config): args = '' else: args = call_args[f] - body.append(" %s(%s);" % (f, args)) + body.append(" %s();" % f) else: body.append(" %s;" % f) else: @@@@ -405,7 +400,7 @@@@ class config(old_config): body.append("}") body = '\n'.join(body) + "\n" - return self.try_link(body, headers, include_dirs, + return self.try_link(body, None, include_dirs, libraries, library_dirs) def check_inline(self): @ 1.1 log @py-numpy: Workaround undefined-symbol errors under NetBSD at least py-numpy-1.22.4's symbol check mechanism does not work for NetBSD and the other platforms, because gcc and clang calculate trivial math functions, for example, log1pl() and expm1l(), with immediate arguments, for example 0. So compiling 'log1pl(0)' is always successful even if -lm is not added to the compiler's commandline arguments. Use GNU autotools style check with ugly workaround. I have no idea about WASM case. However current mechanism will not work as expected. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @