pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/python39



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.

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);



Home | Main Index | Thread Index | Old Index