Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id B8C4C1A923A for ; Mon, 6 Dec 2021 16:03:08 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id E271D84D55; Mon, 6 Dec 2021 16:03:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 2905184D41 for ; Mon, 6 Dec 2021 16:03:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id n4zH10lWpQ0h for ; Mon, 6 Dec 2021 16:03:06 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 9B2B784D04 for ; Mon, 6 Dec 2021 16:03:06 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 94C77FAEC; Mon, 6 Dec 2021 16:03:06 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1638806586216150" MIME-Version: 1.0 Date: Mon, 6 Dec 2021 16:03:06 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/lang/python39 To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20211206160306.94C77FAEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1638806586216150 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Mon Dec 6 16:03:06 UTC 2021 Modified Files: pkgsrc/lang/python39: distinfo Added Files: pkgsrc/lang/python39/patches: patch-Modules___cursesmodule.c Log Message: python39: make curses module more amenable to NetBSD curses To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 pkgsrc/lang/python39/distinfo cvs rdiff -u -r0 -r1.1 \ pkgsrc/lang/python39/patches/patch-Modules___cursesmodule.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1638806586216150 Content-Disposition: inline Content-Length: 2097 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/python39/distinfo diff -u pkgsrc/lang/python39/distinfo:1.17 pkgsrc/lang/python39/distinfo:1.18 --- pkgsrc/lang/python39/distinfo:1.17 Tue Nov 16 14:23:50 2021 +++ pkgsrc/lang/python39/distinfo Mon Dec 6 16:03:06 2021 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.17 2021/11/16 14:23:50 adam Exp $ +$NetBSD: distinfo,v 1.18 2021/12/06 16:03:06 wiz Exp $ BLAKE2s (Python-3.9.9.tar.xz) = bb0cf5c1cb3212d82b69ab4e965f03b77736610c84bd032f31a5debdd25e6a30 SHA512 (Python-3.9.9.tar.xz) = 0ab29fb9a7ecb808bd08d84d28908d5a934e0f021853da0f7a9c94670eb30c8dbbc233d461afdb3995b0de59275ef7e1de43e82d7f848802cbd6e6e50b7b25a6 @@ -10,6 +10,7 @@ SHA1 (patch-Lib_distutils_unixccompiler. SHA1 (patch-Lib_lib2to3_pgen2_driver.py) = 5d6dab14197f27363394ff1aeee22a8ced8026d2 SHA1 (patch-Lib_sysconfig.py) = a4f009ed73ebbd9d9c4bf7e12b7981182ed8fd7c SHA1 (patch-Makefile.pre.in) = dd5ff571ac9fe2dc2e41fa678261d8e3648ac908 +SHA1 (patch-Modules___cursesmodule.c) = 9ea087fbbd3e6a33699bc91d0ace18b7c7aa9955 SHA1 (patch-Modules___ssl.c) = f241ba148e4c244a641386be5ac07817b03f04f7 SHA1 (patch-Modules_makesetup) = a06786eebffadecedba5e3a50a9785fb47613567 SHA1 (patch-Modules_nismodule.c) = 1bafe9b06359586d027a77011b103877590d947d Added files: Index: pkgsrc/lang/python39/patches/patch-Modules___cursesmodule.c diff -u /dev/null pkgsrc/lang/python39/patches/patch-Modules___cursesmodule.c:1.1 --- /dev/null Mon Dec 6 16:03:06 2021 +++ pkgsrc/lang/python39/patches/patch-Modules___cursesmodule.c Mon Dec 6 16:03:06 2021 @@ -0,0 +1,17 @@ +$NetBSD: patch-Modules___cursesmodule.c,v 1.1 2021/12/06 16:03:06 wiz Exp $ + +NetBSD curses compatibility. + +--- Modules/_cursesmodule.c.orig 2021-11-15 17:43:00.000000000 +0000 ++++ Modules/_cursesmodule.c +@@ -1077,8 +1077,8 @@ PyCursesWindow_ChgAt(PyCursesWindowObjec + return NULL; + } + +- color = (short)((attr >> 8) & 0xff); +- attr = attr - (color << 8); ++ color = (short) PAIR_NUMBER(attr); ++ attr = attr & A_ATTRIBUTES; + + if (use_xy) { + rtn = mvwchgat(self->win,y,x,num,attr,color,NULL); --_----------=_1638806586216150--