pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/editors/Sigil Sigil: fix build with Python 3.11



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eff18762d762
branches:  trunk
changeset: 389344:eff18762d762
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Dec 03 21:59:47 2022 +0000

description:
Sigil: fix build with Python 3.11

diffstat:

 editors/Sigil/distinfo                                         |   3 +-
 editors/Sigil/patches/patch-src_EmbedPython_EmbeddedPython.cpp |  16 ++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r fa479d69caa7 -r eff18762d762 editors/Sigil/distinfo
--- a/editors/Sigil/distinfo    Sat Dec 03 21:41:29 2022 +0000
+++ b/editors/Sigil/distinfo    Sat Dec 03 21:59:47 2022 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.53 2022/09/09 15:49:32 wiz Exp $
+$NetBSD: distinfo,v 1.54 2022/12/03 21:59:47 wiz Exp $
 
 BLAKE2s (Sigil-1.9.20.tar.gz) = 7ab49c1da67802d7e80dd799c870d77e8c113201700861f443ea4027d517d186
 SHA512 (Sigil-1.9.20.tar.gz) = 07aff142f65084b7900b25b089fca1d9a36022e690acaf0db3c7b2eb310a847834baff42884e73bbe6b31ff2dd7f73e76819c5c7a4292578fbea2edcebec5ad1
 Size (Sigil-1.9.20.tar.gz) = 25139664 bytes
 SHA1 (patch-3rdparty_minizip_ioapi.c) = a68dead89687529b7022cda3bc8a079e5f5c1459
+SHA1 (patch-src_EmbedPython_EmbeddedPython.cpp) = 128d2857f50acf1fdb29ab0d1c763452bbc19fb2
 SHA1 (patch-src_Misc_Language.cpp) = 5ae2fc9b76b1a706efd05eecad95d5a6760a6357
diff -r fa479d69caa7 -r eff18762d762 editors/Sigil/patches/patch-src_EmbedPython_EmbeddedPython.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/Sigil/patches/patch-src_EmbedPython_EmbeddedPython.cpp    Sat Dec 03 21:59:47 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_EmbedPython_EmbeddedPython.cpp,v 1.1 2022/12/03 21:59:48 wiz Exp $
+
+Fix build with Python 3.11.
+https://github.com/Sigil-Ebook/Sigil/issues/703
+
+--- src/EmbedPython/EmbeddedPython.cpp.orig    2022-08-31 15:13:03.000000000 +0000
++++ src/EmbedPython/EmbeddedPython.cpp
+@@ -480,7 +480,7 @@ QVariant EmbeddedPython::PyObjectToQVari
+ 
+         if (kind == PyUnicode_1BYTE_KIND) {
+             // latin 1 according to PEP 393
+-            res = QVariant(QString::fromLatin1(reinterpret_cast<const char *>PyUnicode_1BYTE_DATA(po), -1));
++            res = QVariant(QString::fromLatin1(reinterpret_cast<const char *>(PyUnicode_1BYTE_DATA(po), -1)));
+ 
+         } else if (kind == PyUnicode_2BYTE_KIND) {
+ #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)



Home | Main Index | Thread Index | Old Index