pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-nanobind
Module Name: pkgsrc
Committed By: wiz
Date: Sun Nov 1 20:19:26 UTC 2026
Modified Files:
pkgsrc/devel/py-nanobind: Makefile distinfo
Added Files:
pkgsrc/devel/py-nanobind/patches: patch-cmake_nanobind-config.cmake
Log Message:
py-nanobind: fix (at least on) on NetBSD
NetBSD's x86_64 runtime linker does not support the TLSDESC
thread-local storage ABI (R_X86_64_TLSDESC, relocation type 36).
Limit the check to Linux systems.
Submitted upstream.
Fixes py-pikepdf (and probably other py-nanobind dependencies).
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-nanobind/Makefile \
pkgsrc/devel/py-nanobind/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/py-nanobind/patches/patch-cmake_nanobind-config.cmake
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-nanobind/Makefile
diff -u pkgsrc/devel/py-nanobind/Makefile:1.2 pkgsrc/devel/py-nanobind/Makefile:1.3
--- pkgsrc/devel/py-nanobind/Makefile:1.2 Tue Sep 29 09:19:48 2026
+++ pkgsrc/devel/py-nanobind/Makefile Sun Nov 1 20:19:25 2026
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2026/09/29 09:19:48 adam Exp $
+# $NetBSD: Makefile,v 1.3 2026/11/01 20:19:25 wiz Exp $
DISTNAME= nanobind-3.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=n/nanobind/}
Index: pkgsrc/devel/py-nanobind/distinfo
diff -u pkgsrc/devel/py-nanobind/distinfo:1.2 pkgsrc/devel/py-nanobind/distinfo:1.3
--- pkgsrc/devel/py-nanobind/distinfo:1.2 Tue Sep 29 09:19:48 2026
+++ pkgsrc/devel/py-nanobind/distinfo Sun Nov 1 20:19:25 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2026/09/29 09:19:48 adam Exp $
+$NetBSD: distinfo,v 1.3 2026/11/01 20:19:25 wiz Exp $
BLAKE2s (nanobind-3.1.0.tar.gz) = 7ae1396de1203e09f13ad984172078c6de3541a8796a76e44d6053b635151443
SHA512 (nanobind-3.1.0.tar.gz) = fc13cf3aa58e35eb76e764e92a610acda32b9c210a23bd16a54533276cce517769e1c73cd37ed68318bbccc3cdf592b0d6aff70827f7bab467704e9698e5c77c
Size (nanobind-3.1.0.tar.gz) = 1145390 bytes
+SHA1 (patch-cmake_nanobind-config.cmake) = 0cb28db4561da8cd052aecc15d19a738131b12d6
Added files:
Index: pkgsrc/devel/py-nanobind/patches/patch-cmake_nanobind-config.cmake
diff -u /dev/null pkgsrc/devel/py-nanobind/patches/patch-cmake_nanobind-config.cmake:1.1
--- /dev/null Sun Nov 1 20:19:26 2026
+++ pkgsrc/devel/py-nanobind/patches/patch-cmake_nanobind-config.cmake Sun Nov 1 20:19:26 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-cmake_nanobind-config.cmake,v 1.1 2026/11/01 20:19:26 wiz Exp $
+
+NetBSD's x86_64 runtime linker does not support the TLSDESC
+thread-local storage ABI (R_X86_64_TLSDESC, relocation type 36).
+Limit the check to Linux systems.
+
+https://github.com/wjakob/nanobind/pull/1462
+
+--- cmake/nanobind-config.cmake.orig 2026-09-29 09:19:48.000000000 +0000
++++ cmake/nanobind-config.cmake
+@@ -113,7 +113,7 @@
+ # Probe for the faster TLSDESC thread-local storage ABI (Linux/x86_64)
+ # ---------------------------------------------------------------------------
+
+-if (NOT (MSVC OR WIN32 OR APPLE))
++if (LINUX)
+ include(CheckCXXCompilerFlag)
+ check_cxx_compiler_flag(-mtls-dialect=gnu2 NB_HAS_MTLS_GNU2)
+ endif()
Home |
Main Index |
Thread Index |
Old Index