git: b054b7f28e5b - main - math/{,py-}faiss: update 1.14.3 → 1.15.1

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 15 Oct 2026 09:26:41 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b054b7f28e5b2319802bc2c6d80047994ea9519f

commit b054b7f28e5b2319802bc2c6d80047994ea9519f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-15 08:22:48 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-15 09:26:38 +0000

    math/{,py-}faiss: update 1.14.3 → 1.15.1
---
 math/faiss/Makefile     | 13 +++++--------
 math/faiss/distinfo     |  6 +++---
 math/faiss/pkg-plist    |  7 ++++++-
 math/py-faiss/Makefile  |  6 +++++-
 math/py-faiss/distinfo  |  6 +++---
 math/py-faiss/pkg-plist |  1 +
 6 files changed, 23 insertions(+), 16 deletions(-)

diff --git a/math/faiss/Makefile b/math/faiss/Makefile
index 7fa612101763..bad9a6787fa0 100644
--- a/math/faiss/Makefile
+++ b/math/faiss/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	faiss
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.14.3
-PORTREVISION=	1
+DISTVERSION=	1.15.1
 CATEGORIES=	math
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -11,10 +10,6 @@ WWW=		https://github.com/facebookresearch/faiss
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-.if !exists(/usr/include/omp.h)
-BROKEN=		requires OpenMP support that is missing on this architecture
-.endif
-
 BUILD_DEPENDS=	openblas>0:math/openblas # faiss links with libopenblasp-rN.N.N.so (installed by default only on amd64,i386), so use non-filename-specific DEPENDS commands
 RUN_DEPENDS=	openblas>0:math/openblas
 TEST_DEPENDS=	benchmark>0:devel/benchmark \
@@ -29,9 +24,11 @@ GH_ACCOUNT=	facebookresearch
 CMAKE_ON=	BUILD_SHARED_LIBS FAISS_ENABLE_C_API
 CMAKE_OFF=	BUILD_TESTING FAISS_ENABLE_GPU FAISS_ENABLE_PYTHON
 
-post-extract: # workaround for https://github.com/facebookresearch/faiss/issues/3913
-	@${LN} -s ${WRKSRC} ${WRKDIR}/faiss
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
 
 # tests as of 1.13.1: 100% tests passed, 0 tests failed out of 138
+# tests as of 1.15.1: 94% tests passed, 16 tests failed out of 283, all failures seem to be die to OpenBLAS mis-identifying the CPU architecture, see https://github.com/OpenMathLib/OpenBLAS/issues/6029
 
 .include <bsd.port.mk>
diff --git a/math/faiss/distinfo b/math/faiss/distinfo
index a5119b65aeb9..2958cccc62f8 100644
--- a/math/faiss/distinfo
+++ b/math/faiss/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1781802617
-SHA256 (facebookresearch-faiss-v1.14.3_GH0.tar.gz) = 7f3c4ed9aec3bd7524382862f5fcbd4d8984e2a8979ff3bdb2c0bcea5144149e
-SIZE (facebookresearch-faiss-v1.14.3_GH0.tar.gz) = 1680994
+TIMESTAMP = 1791878758
+SHA256 (facebookresearch-faiss-v1.15.1_GH0.tar.gz) = 7b583010cc3c0a778b909a1beecbc5a4bd42f415d82af734b2c05d5eaaca0ffa
+SIZE (facebookresearch-faiss-v1.15.1_GH0.tar.gz) = 1841117
diff --git a/math/faiss/pkg-plist b/math/faiss/pkg-plist
index 985a6417b48e..ea10be02747b 100644
--- a/math/faiss/pkg-plist
+++ b/math/faiss/pkg-plist
@@ -11,6 +11,7 @@ include/faiss/IndexBinaryFromFloat.h
 include/faiss/IndexBinaryHNSW.h
 include/faiss/IndexBinaryHash.h
 include/faiss/IndexBinaryIVF.h
+include/faiss/IndexEDEN.h
 include/faiss/IndexFastScan.h
 include/faiss/IndexFlat.h
 include/faiss/IndexFlatCodes.h
@@ -19,6 +20,7 @@ include/faiss/IndexIDMap.h
 include/faiss/IndexIVF.h
 include/faiss/IndexIVFAdditiveQuantizer.h
 include/faiss/IndexIVFAdditiveQuantizerFastScan.h
+include/faiss/IndexIVFEDEN.h
 include/faiss/IndexIVFFastScan.h
 include/faiss/IndexIVFFlat.h
 include/faiss/IndexIVFFlatPanorama.h
@@ -75,6 +77,7 @@ include/faiss/c_api/impl/AuxIndexStructures_c.h
 include/faiss/c_api/impl/io_c.h
 include/faiss/c_api/index_factory_c.h
 include/faiss/c_api/index_io_c.h
+include/faiss/c_api/invlists/DirectMap_c.h
 include/faiss/c_api/macros_impl.h
 include/faiss/c_api/utils/distances_c.h
 include/faiss/c_api/utils/utils_c.h
@@ -88,6 +91,7 @@ include/faiss/impl/ClusteringInitialization.h
 include/faiss/impl/CodePacker.h
 include/faiss/impl/CodePackerRaBitQ.h
 include/faiss/impl/DistanceComputer.h
+include/faiss/impl/EDENQuantizer.h
 include/faiss/impl/FaissAssert.h
 include/faiss/impl/FaissException.h
 include/faiss/impl/HNSW.h
@@ -141,6 +145,7 @@ include/faiss/impl/lattice_Zn.h
 include/faiss/impl/mapped_io.h
 include/faiss/impl/maybe_owned_vector.h
 include/faiss/impl/platform_macros.h
+include/faiss/impl/polysemous_training/dispatch.h
 include/faiss/impl/pq_code_distance/IVFPQScanner_impl.h
 include/faiss/impl/pq_code_distance/IVFPQ_QueryTables.h
 include/faiss/impl/pq_code_distance/PQDistanceComputer_impl.h
@@ -191,7 +196,7 @@ include/faiss/utils/hamming.h
 include/faiss/utils/hamming_distance/common.h
 include/faiss/utils/hamming_distance/hamming_computer-avx2.h
 include/faiss/utils/hamming_distance/hamming_computer-avx512.h
-include/faiss/utils/hamming_distance/hamming_computer-avx512_spr.h
+include/faiss/utils/hamming_distance/hamming_computer-avx512_vpopcnt.h
 include/faiss/utils/hamming_distance/hamming_computer-generic.h
 include/faiss/utils/hamming_distance/hamming_computer-neon.h
 include/faiss/utils/hamming_distance/hamming_computer-rvv.h
diff --git a/math/py-faiss/Makefile b/math/py-faiss/Makefile
index 3c0932df2271..75aa39e50183 100644
--- a/math/py-faiss/Makefile
+++ b/math/py-faiss/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	faiss
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.14.3
+DISTVERSION=	1.15.1
 CATEGORIES=	math
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -30,9 +30,12 @@ GH_ACCOUNT=	facebookresearch
 WRKSRC_SUBDIR=	faiss/python
 
 CMAKE_ARGS=	-DPython_EXECUTABLE:STRING=${PYTHON_CMD}
+CMAKE_ON=	FAISS_ENABLE_PYTHON
 
 TEST_WRKSRC=	${WRKSRC}/../../tests
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_ARGS=	--disable-plugin-autoload \
+		--ignore=external_module_test.py
 
 post-patch: # remove GPU testcases
 	@${RM} -r ${WRKSRC}/../../faiss/gpu
@@ -40,6 +43,7 @@ post-patch: # remove GPU testcases
 do-install: # see https://github.com/facebookresearch/faiss/issues/2194
 	${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
 	${INSTALL_LIB} ${BUILD_WRKSRC}/_swigfaiss.so ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
+	${INSTALL_LIB} ${BUILD_WRKSRC}/_faiss_example_external_module.so ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
 .for f in __init__.py array_conversions.py class_wrappers.py extra_wrappers.py gpu_wrappers.py loader.py swigfaiss.py
 	${INSTALL_DATA} ${BUILD_WRKSRC}/${f} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
 .endfor
diff --git a/math/py-faiss/distinfo b/math/py-faiss/distinfo
index d08c9b6e86a0..2958cccc62f8 100644
--- a/math/py-faiss/distinfo
+++ b/math/py-faiss/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1781803255
-SHA256 (facebookresearch-faiss-v1.14.3_GH0.tar.gz) = 7f3c4ed9aec3bd7524382862f5fcbd4d8984e2a8979ff3bdb2c0bcea5144149e
-SIZE (facebookresearch-faiss-v1.14.3_GH0.tar.gz) = 1680994
+TIMESTAMP = 1791878758
+SHA256 (facebookresearch-faiss-v1.15.1_GH0.tar.gz) = 7b583010cc3c0a778b909a1beecbc5a4bd42f415d82af734b2c05d5eaaca0ffa
+SIZE (facebookresearch-faiss-v1.15.1_GH0.tar.gz) = 1841117
diff --git a/math/py-faiss/pkg-plist b/math/py-faiss/pkg-plist
index 9f2af6dceddf..e483c9994518 100644
--- a/math/py-faiss/pkg-plist
+++ b/math/py-faiss/pkg-plist
@@ -1,5 +1,6 @@
 %%PYTHON_SITELIBDIR%%/faiss/__init__.py
 %%PYTHON_SITELIBDIR%%/faiss/_swigfaiss.so
+%%PYTHON_SITELIBDIR%%/faiss/_faiss_example_external_module.so
 %%PYTHON_SITELIBDIR%%/faiss/array_conversions.py
 %%PYTHON_SITELIBDIR%%/faiss/class_wrappers.py
 %%PYTHON_SITELIBDIR%%/faiss/contrib/README.md