File:  [cvs.NetBSD.org] / pkgsrc / lang / python314 / patches / patch-Modules_socketmodule.c
Revision 1.1: download - view: text, annotated - select for diffs
Wed Oct 8 07:13:08 2025 UTC (13 months, 1 week ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, HEAD
python314 py314-html-docs: added version 3.14.0

Major new features of the 3.14 series, compared to 3.13
Some of the major new features and changes in Python 3.14 are:

New features

PEP 779: Free-threaded Python is officially supported
PEP 649: The evaluation of annotations is now deferred, improving the semantics of using annotations.
PEP 750: Template string literals (t-strings) for custom string processing, using the familiar syntax of f-strings.
PEP 734: Multiple interpreters in the stdlib.
PEP 784: A new module compression.zstd providing support for the Zstandard compression algorithm.
PEP 758: except and except* expressions may now omit the brackets.
Syntax highlighting in PyREPL, and support for color in unittest, argparse, json and calendar CLIs.
PEP 768: A zero-overhead external debugger interface for CPython.
UUID versions 6-8 are now supported by the uuid module, and generation of versions 3-5 are up to 40% faster.
PEP 765: Disallow return/break/continue that exit a finally block.
PEP 741: An improved C API for configuring Python.
A new type of interpreter. For certain newer compilers, this interpreter provides significantly better performance. Opt-in for now, requires building from source.
Improved error messages.
Builtin implementation of HMAC with formally verified code from the HACL* project.
A new command-line interface to inspect running Python processes using asynchronous tasks.
The pdb module now supports remote attaching to a running Python process.

$NetBSD: patch-Modules_socketmodule.c,v 1.1 2025/10/08 07:13:08 adam Exp $

SunOS needs _XOPEN_SOURCE for sendmsg bits that are now required.

--- Modules/socketmodule.c.orig	2023-12-07 20:45:44.000000000 +0000
+++ Modules/socketmodule.c
@@ -89,6 +89,9 @@ Local naming conventions:
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
+#ifdef __sun
+#define _XOPEN_SOURCE	600
+#endif
 #ifdef __APPLE__
 // Issue #35569: Expose RFC 3542 socket options.
 #define __APPLE_USE_RFC_3542 1

CVSweb <webmaster@jp.NetBSD.org>