pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-rapidfuzz



Module Name:    pkgsrc
Committed By:   gdt
Date:           Mon Jul  3 13:54:32 UTC 2023

Modified Files:
        pkgsrc/textproc/py-rapidfuzz: Makefile

Log Message:
textprox/py-rapidfuzz: Exclude i386 from avx2 PLIST conditional

This package had untested code to expect three files that are
avx2-only when building on i386, but those files don't actually get
built.  This is almost certainly because not all i486-and-up CPUs have
avx2 instructions.

Resolves failure to package on NetBSD 9 i386 using
  cpu0: "Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz"


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/textproc/py-rapidfuzz/Makefile

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-rapidfuzz/Makefile
diff -u pkgsrc/textproc/py-rapidfuzz/Makefile:1.11 pkgsrc/textproc/py-rapidfuzz/Makefile:1.12
--- pkgsrc/textproc/py-rapidfuzz/Makefile:1.11  Sat Jul  1 08:37:42 2023
+++ pkgsrc/textproc/py-rapidfuzz/Makefile       Mon Jul  3 13:54:32 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2023/07/01 08:37:42 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2023/07/03 13:54:32 gdt Exp $
 
 DISTNAME=      rapidfuzz-3.1.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -21,7 +21,9 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27 37 38
 
 PLIST_SUBST+=  PYTHON_VERSION=${_PYTHON_VERSION}
 PLIST_VARS+=   avx2
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+# Only x86_64 is guaranteed to have avx2; while some i386 CPUs do, our
+# build target does not.
+.if ${MACHINE_ARCH} == "x86_64"
 PLIST.avx2=    yes
 .endif
 



Home | Main Index | Thread Index | Old Index