pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/py-Levenshtein



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Sep 26 07:56:02 UTC 2026

Modified Files:
        pkgsrc/textproc/py-Levenshtein: Makefile distinfo
Added Files:
        pkgsrc/textproc/py-Levenshtein/patches:
            patch-src_Levenshtein_levenshtein__cpp.cxx

Log Message:
py-Levenshtein: fix build on NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/textproc/py-Levenshtein/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/textproc/py-Levenshtein/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/textproc/py-Levenshtein/patches/patch-src_Levenshtein_levenshtein__cpp.cxx

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-Levenshtein/Makefile
diff -u pkgsrc/textproc/py-Levenshtein/Makefile:1.26 pkgsrc/textproc/py-Levenshtein/Makefile:1.27
--- pkgsrc/textproc/py-Levenshtein/Makefile:1.26        Wed Sep 23 10:40:04 2026
+++ pkgsrc/textproc/py-Levenshtein/Makefile     Sat Sep 26 07:56:02 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2026/09/23 10:40:04 adam Exp $
+# $NetBSD: Makefile,v 1.27 2026/09/26 07:56:02 wiz Exp $
 
 DISTNAME=      levenshtein-0.27.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/l/L/}
@@ -21,6 +21,7 @@ PYTHON_VERSIONS_INCOMPATIBLE= 310 311
 
 post-install:
        ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/Levenshtein/CMakeLists.txt.orig
+       ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/Levenshtein/levenshtein_cpp.cxx.orig
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/textproc/py-Levenshtein/distinfo
diff -u pkgsrc/textproc/py-Levenshtein/distinfo:1.19 pkgsrc/textproc/py-Levenshtein/distinfo:1.20
--- pkgsrc/textproc/py-Levenshtein/distinfo:1.19        Wed Sep 23 10:40:04 2026
+++ pkgsrc/textproc/py-Levenshtein/distinfo     Sat Sep 26 07:56:02 2026
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.19 2026/09/23 10:40:04 adam Exp $
+$NetBSD: distinfo,v 1.20 2026/09/26 07:56:02 wiz Exp $
 
 BLAKE2s (levenshtein-0.27.5.tar.gz) = 1d79959e66f057ffb09274497c6add6c0940c65c9ccefb5db74cebe0b63746c1
 SHA512 (levenshtein-0.27.5.tar.gz) = 5df424c781e4270f78792cc785a63fd21c9f041258f15d7907b62c15585bbd50e533692ec08227a52f3d898c32b9e5e33ae976e9f0cd5d4d7205c58eba61a2d7
 Size (levenshtein-0.27.5.tar.gz) = 402914 bytes
 SHA1 (patch-CMakeLists.txt) = 55e88242d6cdc80017797fc056e1e236b05c2eb9
 SHA1 (patch-src_Levenshtein_CMakeLists.txt) = 67f56cfa38593351b337b59a058d496890646da8
+SHA1 (patch-src_Levenshtein_levenshtein__cpp.cxx) = 343128a9cc37fa0e420b719741f2b19549d47e5e

Added files:

Index: pkgsrc/textproc/py-Levenshtein/patches/patch-src_Levenshtein_levenshtein__cpp.cxx
diff -u /dev/null pkgsrc/textproc/py-Levenshtein/patches/patch-src_Levenshtein_levenshtein__cpp.cxx:1.1
--- /dev/null   Sat Sep 26 07:56:02 2026
+++ pkgsrc/textproc/py-Levenshtein/patches/patch-src_Levenshtein_levenshtein__cpp.cxx   Sat Sep 26 07:56:02 2026
@@ -0,0 +1,25 @@
+$NetBSD: patch-src_Levenshtein_levenshtein__cpp.cxx,v 1.1 2026/09/26 07:56:02 wiz Exp $
+
+Fix: "error: 'isfinite' was not declared"
+https://github.com/rapidfuzz/Levenshtein/issues/99
+
+--- src/Levenshtein/levenshtein_cpp.cxx.orig   2026-09-26 07:53:49.853977403 +0000
++++ src/Levenshtein/levenshtein_cpp.cxx
+@@ -5997,7 +5997,7 @@ static int __Pyx_PyObject_CompareFloatIntBoolLt(PyObje
+         Py_ssize_t iop2 = __Pyx_PyLong_CompactValue(op2);
+         if (float_op1 < ((double)iop2)) goto __pyx_return_true; else goto __pyx_return_false;
+     }
+-    if (unlikely(!isfinite(float_op1))) {
++    if (unlikely(!std::isfinite(float_op1))) {
+         if (float_op1 < 0.0) goto __pyx_return_true; else goto __pyx_return_false;
+     } else {
+         int sign2 = __Pyx_PyLong_Sign(op2);
+@@ -6010,7 +6010,7 @@ static int __Pyx_PyObject_CompareFloatIntBoolLt(PyObje
+         }
+     }
+     #else
+-    if (unlikely(!isfinite(float_op1))) {
++    if (unlikely(!std::isfinite(float_op1))) {
+         if (float_op1 < 0.0) goto __pyx_return_true; else goto __pyx_return_false;
+     } else {
+         int overflow2;



Home | Main Index | Thread Index | Old Index