head 1.3; access; symbols pkgsrc-2026Q3:1.2.0.38 pkgsrc-2026Q3-base:1.2 pkgsrc-2026Q2:1.2.0.36 pkgsrc-2026Q2-base:1.2 pkgsrc-2026Q1:1.2.0.34 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.32 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.30 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.28 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.26 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.24 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.22 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.20 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.18 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.16 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.14 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.12 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.10 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.8 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.6 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.4 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.2 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.1.0.2 pkgsrc-2021Q4-base:1.1; locks; strict; comment @ * @; 1.3 date 2026.10.16.17.08.36; author adam; state dead; branches; next 1.2; commitid o6Jq8cQYuv58YIZG; 1.2 date 2022.01.20.13.07.50; author jperkin; state Exp; branches; next 1.1; commitid 7EULFjVZ1a7ffnpD; 1.1 date 2021.10.05.19.07.13; author adam; state Exp; branches; next ; commitid jj3P8LbPoUKBFEbD; desc @@ 1.3 log @python310 py310-html-docs: removed, end of life @ text @$NetBSD: patch-Modules_socketmodule.c,v 1.2 2022/01/20 13:07:50 jperkin Exp $ Support NetBSD's socketcan implementation --- Modules/socketmodule.c.orig 2022-01-13 18:52:14.000000000 +0000 +++ Modules/socketmodule.c @@@@ -2112,7 +2112,7 @@@@ getsockaddrarg(PySocketSockObject *s, Py PyObject *interfaceName; struct ifreq ifr; Py_ssize_t len; - struct sockaddr_can *addr = &addrbuf->can; + struct sockaddr_can *addr = (struct sockaddr_can *)addrbuf; if (!PyTuple_Check(args)) { PyErr_Format(PyExc_TypeError, @@@@ -5440,7 +5440,7 @@@@ socket_sethostname(PyObject *self, PyObj Py_buffer buf; int res, flag = 0; -#ifdef _AIX +#if defined(_AIX) || (defined(__sun) && PKGSRC_OPSYS_VERSION < 051100) /* issue #18259, not declared in any useful header file */ extern int sethostname(const char *, size_t); #endif @@@@ -7782,6 +7782,20 @@@@ PyInit__socket(void) PyModule_AddIntMacro(m, J1939_FILTER_MAX); #endif +#ifdef HAVE_NETCAN_CAN_H + PyModule_AddIntMacro(m, CAN_EFF_FLAG); + PyModule_AddIntMacro(m, CAN_RTR_FLAG); + PyModule_AddIntMacro(m, CAN_ERR_FLAG); + + PyModule_AddIntMacro(m, CAN_SFF_MASK); + PyModule_AddIntMacro(m, CAN_EFF_MASK); + PyModule_AddIntMacro(m, CAN_ERR_MASK); + + PyModule_AddIntMacro(m, CAN_RAW_FILTER); + /* PyModule_AddIntMacro(m, CAN_RAW_ERR_FILTER); */ + PyModule_AddIntMacro(m, CAN_RAW_LOOPBACK); + PyModule_AddIntMacro(m, CAN_RAW_RECV_OWN_MSGS); +#endif #ifdef SOL_RDS PyModule_AddIntMacro(m, SOL_RDS); #endif @ 1.2 log @python310: Solaris 10 fixes, from pekdon via IRC. @ text @d1 1 a1 1 $NetBSD: patch-Modules_socketmodule.c,v 1.1 2021/10/05 19:07:13 adam Exp $ @ 1.1 log @python310 py310-html-docs: added version 3.10.0 Python 3.10 Summary – Release highlights New syntax features: PEP 634, Structural Pattern Matching: Specification PEP 635, Structural Pattern Matching: Motivation and Rationale PEP 636, Structural Pattern Matching: Tutorial bpo-12782, Parenthesized context managers are now officially allowed. New features in the standard library: PEP 618, Add Optional Length-Checking To zip. Interpreter improvements: PEP 626, Precise line numbers for debugging and other tools. New typing features: PEP 604, Allow writing union types as X | Y PEP 613, Explicit Type Aliases PEP 612, Parameter Specification Variables Important deprecations, removals or restrictions: PEP 644, Require OpenSSL 1.1.1 or newer PEP 632, Deprecate distutils module. PEP 623, Deprecate and prepare for the removal of the wstr member in PyUnicodeObject. PEP 624, Remove Py_UNICODE encoder APIs PEP 597, Add optional EncodingWarning @ text @d1 1 a1 1 $NetBSD: patch-Modules_socketmodule.c,v 1.2 2021/05/22 11:36:01 bouyer Exp $ d5 1 a5 1 --- Modules/socketmodule.c.orig 2021-07-10 00:51:07.000000000 +0000 d7 1 a7 1 @@@@ -2115,7 +2115,7 @@@@ getsockaddrarg(PySocketSockObject *s, Py d16 10 a25 1 @@@@ -7785,6 +7785,20 @@@@ PyInit__socket(void) @