Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 49F7284D46 for ; Wed, 4 Oct 2023 13:19:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id S2nri3NvAB5o for ; Wed, 4 Oct 2023 13:19:49 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 585A284D6A for ; Wed, 4 Oct 2023 13:19:49 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 51581FBDB; Wed, 4 Oct 2023 13:19:49 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_169642558936170" MIME-Version: 1.0 Date: Wed, 4 Oct 2023 13:19:49 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/lang/python312 To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20231004131949.51581FBDB@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_169642558936170 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Wed Oct 4 13:19:49 UTC 2023 Modified Files: pkgsrc/lang/python312: distinfo pkgsrc/lang/python312/patches: patch-Modules_socketmodule.c Log Message: python312: Fix socket module on SunOS. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/python312/distinfo cvs rdiff -u -r1.1 -r1.2 \ pkgsrc/lang/python312/patches/patch-Modules_socketmodule.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_169642558936170 Content-Disposition: inline Content-Length: 2382 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/python312/distinfo diff -u pkgsrc/lang/python312/distinfo:1.1 pkgsrc/lang/python312/distinfo:1.2 --- pkgsrc/lang/python312/distinfo:1.1 Mon Oct 2 20:07:14 2023 +++ pkgsrc/lang/python312/distinfo Wed Oct 4 13:19:49 2023 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1 2023/10/02 20:07:14 adam Exp $ +$NetBSD: distinfo,v 1.2 2023/10/04 13:19:49 jperkin Exp $ BLAKE2s (Python-3.12.0.tar.xz) = d99d0b678e02814643fcf2977b1a85992441e78c88c5624b7d5ed9d50e72c82c SHA512 (Python-3.12.0.tar.xz) = 4d5353151fd1dad80fe96bd2a668cec27287a0dad85086239597166f8189d4edf6c4800ed14f39c8e54816076fec13ba405d6bfa1123ad2dada8cf85c60025e6 @@ -8,5 +8,5 @@ SHA1 (patch-Lib_ctypes_util.py) = 3dec1b SHA1 (patch-Lib_lib2to3_pgen2_driver.py) = 593c4e93c5653ab400f0a98b91db92630c0a7390 SHA1 (patch-Lib_sysconfig.py) = bc6d91bf8f7121456b26ea7f080f588c96f2596f SHA1 (patch-Makefile.pre.in) = 03403a42fc77e4d244fe22335563927f97be6980 -SHA1 (patch-Modules_socketmodule.c) = dcf93806374bb8d983b7c8cefd7a3360a90064d7 +SHA1 (patch-Modules_socketmodule.c) = 87e02460d54a6879e1e5a3029ad1068909f63961 SHA1 (patch-configure) = dee9b26930232c58f0edff884a94031c014387e5 Index: pkgsrc/lang/python312/patches/patch-Modules_socketmodule.c diff -u pkgsrc/lang/python312/patches/patch-Modules_socketmodule.c:1.1 pkgsrc/lang/python312/patches/patch-Modules_socketmodule.c:1.2 --- pkgsrc/lang/python312/patches/patch-Modules_socketmodule.c:1.1 Mon Oct 2 20:07:15 2023 +++ pkgsrc/lang/python312/patches/patch-Modules_socketmodule.c Wed Oct 4 13:19:49 2023 @@ -1,8 +1,20 @@ -$NetBSD: patch-Modules_socketmodule.c,v 1.1 2023/10/02 20:07:15 adam Exp $ +$NetBSD: patch-Modules_socketmodule.c,v 1.2 2023/10/04 13:19:49 jperkin Exp $ ---- Modules/socketmodule.c.orig 2022-01-13 18:52:14.000000000 +0000 +SunOS needs _XOPEN_SOURCE for sendmsg bits that are now required. + +--- Modules/socketmodule.c.orig 2023-10-02 11:48:14.000000000 +0000 +++ Modules/socketmodule.c -@@ -5440,7 +5440,7 @@ socket_sethostname(PyObject *self, PyObj +@@ -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 +@@ -5655,7 +5658,7 @@ socket_sethostname(PyObject *self, PyObj Py_buffer buf; int res, flag = 0; --_----------=_169642558936170--