Created attachment 269479 [details] Proposed patch Switch to use numpy2, and use eigen5 instead of bundled eigen (broken when AVX enabled).
(In reply to Xin LI from comment #0) I'm OK with eigen change. Regarding the numpy transition: in my experience, this is rarely isolated to a single port. It typically impacts a broad range of ports, often leading to conflicts between py-numpy1 and py-numpy within the dependency chain or among downstream consumers. Resolving this will likely require a coordinated effort across multiple committers.
(In reply to Po-Chuan Hsieh from comment #1) The numpy is no longer an issue since makc@ has migrated almost every ports to py-numpy in ports b0b4d9e1eae890d0de1591e20fb37358439a2ff6.
^Triage: this patch does not apply. For one thing, the existing port has already been updated with the numpy changes, and the PORTREVISION updated. For the second, the line: +@@ -4,8 +4,7 @@ requires-python = ">=3.9" appears out of sequence. Can submitter please update this?
Created attachment 270939 [details] Rebased after recent changes
I've made minor adjustment: - Respect LOCALBASE - Clean up bundled library Please see https://people.FreeBSD.org/~sunpoet/patch/math-py-ml-dtypes.txt