head 1.3; access; symbols; locks; strict; comment @ * @; 1.3 date 2026.08.17.18.12.58; author wiz; state dead; branches; next 1.2; commitid qu0hOmZ1MGWCf1SG; 1.2 date 2026.08.17.09.58.06; author wiz; state Exp; branches; next 1.1; commitid BWsItNkTG2h0wYRG; 1.1 date 2026.08.17.09.27.49; author adam; state Exp; branches; next ; commitid y5rMUUKwPAKxlYRG; desc @@ 1.3 log @py-numpy: stop forcing c99 This codebase actually wants c11; avoids the need for two patches. Debugged with help from upstream. Bump PKGREVISION. @ text @$NetBSD: patch-numpy___core_src_multiarray_arrayobject.c,v 1.2 2026/08/17 09:58:06 wiz Exp $ Avoid static_assert in C. https://github.com/numpy/numpy/issues/32308 --- numpy/_core/src/multiarray/arrayobject.c.orig 2026-08-14 12:32:59.056345672 +0000 +++ numpy/_core/src/multiarray/arrayobject.c @@@@ -1296,22 +1296,8 @@@@ NPY_NO_EXPORT PyTypeObject PyArray_Type * We can choose that this is fine or increase the padding to 16/max_align_t when it happens. * (See comments in `ndarraytypes.h` for more details.) */ -static_assert(sizeof(PyObject) % 16 == 0, - "Expected sizeof(PyObject) to be multiple of 16 on 64bit builds."); #endif -static_assert(NPY_ALIGNOF(PyArray_Descr_fields) <= 8, - "PyArray_Descr must not require more than 8-byte alignment"); -static_assert(NPY_ALIGNOF(_PyArray_LegacyDescr_fields) <= 8, - "_PyArray_LegacyDescr must not require more than 8-byte alignment"); -static_assert(NPY_ALIGNOF(PyArrayObject_fields) <= 8, - "PyArrayObject must not require more than 8-byte alignment"); -static_assert(NPY_ALIGNOF(PyArrayMultiIterObject_fields) <= 8, - "PyArrayMultiIterObject must not require more than 8-byte alignment"); -static_assert(NPY_ALIGNOF(PyArrayIterObject_fields) <= 8, - "PyArrayIterObject must not require more than 8-byte alignment"); -static_assert(NPY_ALIGNOF(PyArrayNeighborhoodIterObject_fields) <= 8, - "PyArrayNeighborhoodIterObject must not require more than 8-byte alignment"); #undef _PyDataType_GET_ITEM_DATA /*NUMPY_API*/ NPY_NO_EXPORT PyArray_Descr_fields * @ 1.2 log @py-numpy: add upstream bug report URL @ text @d1 1 a1 1 $NetBSD: patch-numpy___core_src_multiarray_arrayobject.c,v 1.1 2026/08/17 09:27:49 adam Exp $ @ 1.1 log @py-numpy: updated to 2.5.2 2.5.2 MAINT: Prepare 2.5.x for further development TYP: Backport multiple static typing fixes 1. TST: add tests for stable ABI numpy extensions BUG: fix ``StringDType`` coerce flag in binary ufunc promotion... BLD: fix meson deprecation warnings TYP: Backport multiple typing fixes 2. MAINT: Update x86-simd-sort subproject (5adb334 → fa944ef) BUG: fix crash on 32 bit systems using abi3t MNT: remove some obsolete string to bool workarounds BUG: centralized helper for output coerce and na_object in stringdtype... BUG: fix CPU feature env diagnostic buffer overruns BUG: restore ndarray.conjugate() for legacy user-defined dtypes... TYP: Avoid shadowed dtype annotations MAINT: Update verdored-meson/meson to match main. BUG: fix refcount leak on overlapping copyto with where=False BUG: fix swallowed cast error in fancy indexing assignment BUG: Fix buffered iterator stride after removing multi-index BUG: fix ``np.fromiter`` corruption when reusing a ``StringDType``... BUG: add a special case for StringDType in np.isdtype BUG: reference leak in ``simd_sequence_from_iterable`` BUG: ensure lock is held when accessing or writing to RNG state... BUG: fully reset cached RNG state for non-MT19937 RNGs TYP: type capabilities max dimensions BUG: avoid possible stack overflow in arraydescr_dealloc MAINT: Update cibuildwheel to v4.2.0 MAINT: Skip limited_api tests on some platforms. TYP: ``isclose`` shape-typing fix for 2d array-likes BUG: avoid segfaults when legacy copyswap slot is not defined... @ text @d1 1 a1 1 $NetBSD$ d4 1 @