File mingw-numpy-longdoubleformat.patch of Package mingw-numpy
diff -rupN --no-dereference numpy-2.4.0/meson.options numpy-2.4.0-new/meson.options
--- numpy-2.4.0/meson.options 2025-12-20 08:38:18.000000000 +0100
+++ numpy-2.4.0-new/meson.options 2025-12-23 08:00:53.130898348 +0100
@@ -43,3 +43,4 @@ option('test-simd', type: 'array',
description: 'Specify a list of CPU features to be tested against NumPy SIMD interface')
option('test-simd-args', type: 'string', value: '',
description: 'Extra args to be passed to the `_simd` module that is used for testing the NumPy SIMD interface')
+option('longdouble_format', type: 'string', value: '', description: 'The longdouble format string')
diff -rupN --no-dereference numpy-2.4.0/numpy/_core/meson.build numpy-2.4.0-new/numpy/_core/meson.build
--- numpy-2.4.0/numpy/_core/meson.build 2025-12-20 08:38:18.000000000 +0100
+++ numpy-2.4.0-new/numpy/_core/meson.build 2025-12-23 08:00:53.131196787 +0100
@@ -437,7 +437,7 @@ endforeach
# https://github.com/numpy/numpy/blob/eead09a3d02c09374942cdc787c0b5e4fe9e7472/numpy/core/setup_common.py#L264-L434
# This port is in service of solving gh-23972
# as well as https://github.com/mesonbuild/meson/issues/11068
-longdouble_format = meson.get_external_property('longdouble_format', 'UNKNOWN')
+longdouble_format = meson.get_external_property('longdouble_format', get_option('longdouble_format'))
if longdouble_format == 'UNKNOWN'
longdouble_format = meson.get_compiler('c').run(
'''