pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/py-zstandard



Module Name:    pkgsrc
Committed By:   leot
Date:           Tue Aug 26 14:35:42 UTC 2025

Modified Files:
        pkgsrc/archivers/py-zstandard: Makefile

Log Message:
py-zstandard: do not use inexistent qsort_r() on NetBSD<11

Do not pick up qsort_r(3) on NetBSD<11.

Fixes PR pkg/59609.

Patch from <wiz> with the conditional inclusion added by myself, thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 pkgsrc/archivers/py-zstandard/Makefile

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

Modified files:

Index: pkgsrc/archivers/py-zstandard/Makefile
diff -u pkgsrc/archivers/py-zstandard/Makefile:1.36 pkgsrc/archivers/py-zstandard/Makefile:1.37
--- pkgsrc/archivers/py-zstandard/Makefile:1.36 Sun Aug 17 20:43:58 2025
+++ pkgsrc/archivers/py-zstandard/Makefile      Tue Aug 26 14:35:41 2025
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.36 2025/08/17 20:43:58 wiz Exp $
+# $NetBSD: Makefile,v 1.37 2025/08/26 14:35:41 leot Exp $
 
 DISTNAME=      zstandard-0.24.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    archivers python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=z/zstandard/}
 
@@ -16,6 +17,12 @@ TEST_DEPENDS+=       ${PYPKGPREFIX}-hypothesis
 
 USE_TOOLS+=    cpp
 
+.include "../../mk/bsd.prefs.mk"
+# qsort_r(3) was added in NetBSD 11.0
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 110000
+CPPFLAGS+=     -DZDICT_QSORT=ZDICT_QSORT_C90
+.endif
+
 # upstream prefers to use its bundled version of zstd
 # https://github.com/indygreg/python-zstandard/blob/0063333790a853360c816101511635865405834f/c-ext/backend_c.c#L137-L151
 #BUILDLINK_API_DEPENDS.zstd+=  zstd>=1.5.7



Home | Main Index | Thread Index | Old Index