On 2026-02-20 10:56, Stuart Henderson wrote:
CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]   2026/02/20 02:56:03

Modified files:
        devel/py-pybind11: Makefile distinfo
        devel/py-pybind11/pkg: PLIST

Log message:
update to py3-pybind11-3.0.2
hook up tests

This seems to have broken cad/netgen-mesher:

In file included from /exopi-obj/pobj/netgen-mesher-6.2.2505/netgen-6.2.2505/libsrc/meshing/python_mesh.cpp:5: In file included from /exopi-obj/pobj/netgen-mesher-6.2.2505/netgen-6.2.2505/libsrc/include/../general/ngpython.hpp:3: In file included from /exopi-obj/pobj/netgen-mesher-6.2.2505/netgen-6.2.2505/libsrc/core/python_ngcore.hpp:5: /usr/local/lib/python3.13/site-packages/pybind11/include/pybind11/pybind11.h:2462:23: error: static assertion failed due to requirement '0 == detail::constexpr_sum(detail::is_keep_alive<pybind11::is_method>::value, detail::is_keep_alive<pybind11::return_value_policy>::value, detail::is_keep_alive<pybind11::keep_alive<0, 1>>::value)': def_property family does not currently support keep_alive. Use a py::cpp_function instead. 2462 | static_assert(0 == detail::constexpr_sum(detail::is_keep_alive<Extra>::value...), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/lib/python3.13/site-packages/pybind11/include/pybind11/pybind11.h:2438:16: note: in instantiation of function template specialization 'pybind11::class_<netgen::Mesh, std::shared_ptr<netgen::Mesh>>::def_property_static<pybind11::is_method, pybind11::return_value_policy, pybind11::keep_alive<0, 1>>' requested here 2438 | return def_property_static(name, fget, fset, is_method(*this), extra...);
      |                ^
/usr/local/lib/python3.13/site-packages/pybind11/include/pybind11/pybind11.h:2417:16: note: in instantiation of function template specialization 'pybind11::class_<netgen::Mesh, std::shared_ptr<netgen::Mesh>>::def_property<pybind11::return_value_policy, pybind11::keep_alive<0, 1>>' requested here
 2417 |         return def_property(
      |                ^
/usr/local/lib/python3.13/site-packages/pybind11/include/pybind11/pybind11.h:2394:16: note: in instantiation of function template specialization 'pybind11::class_<netgen::Mesh, std::shared_ptr<netgen::Mesh>>::def_property<pybind11::cpp_function, std::nullptr_t, pybind11::return_value_policy, pybind11::keep_alive<0, 1>>' requested here
 2394 |         return def_property(name, fget, nullptr, extra...);
      |                ^
/usr/local/lib/python3.13/site-packages/pybind11/include/pybind11/pybind11.h:2384:16: note: in instantiation of function template specialization 'pybind11::class_<netgen::Mesh, std::shared_ptr<netgen::Mesh>>::def_property_readonly<pybind11::return_value_policy, pybind11::keep_alive<0, 1>>' requested here
 2384 |         return def_property_readonly(name,
      |                ^
/exopi-obj/pobj/netgen-mesher-6.2.2505/netgen-6.2.2505/libsrc/meshing/python_mesh.cpp:973:6: note: in instantiation of function template specialization 'pybind11::class_<netgen::Mesh, std::shared_ptr<netgen::Mesh>>::def_property_readonly<(lambda at /exopi-obj/pobj/netgen-mesher-6.2.2505/netgen-6.2.2505/libsrc/meshing/python_mesh.cpp:973:46), pybind11::keep_alive<0, 1>>' requested here
  973 |     .def_property_readonly("parentelements", [](Mesh & self) {
      |      ^
/usr/local/lib/python3.13/site-packages/pybind11/include/pybind11/pybind11.h:2462:25: note: expression evaluates to '0 == 1' 2462 | static_assert(0 == detail::constexpr_sum(detail::is_keep_alive<Extra>::value...), | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.

*** Error 1 in cad/netgen-mesher (/exopi-cvs/ports/devel/cmake/cmake.port.mk:40 'do-build': @cd /exopi-obj/pobj/netgen-mesher-6.2.2505/build...)


--
Antoine

Reply via email to