pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-bracex (textproc/py-bracex) fix build with...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a802aac6d0c8
branches: trunk
changeset: 458940:a802aac6d0c8
user: mef <mef%pkgsrc.org@localhost>
date: Sun Sep 26 15:21:30 2021 +0000
description:
(textproc/py-bracex) fix build with py36, can not decode..
diffstat:
textproc/py-bracex/distinfo | 3 ++-
textproc/py-bracex/patches/patch-setup.py | 24 ++++++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r a39a0c53f918 -r a802aac6d0c8 textproc/py-bracex/distinfo
--- a/textproc/py-bracex/distinfo Sun Sep 26 05:58:36 2021 +0000
+++ b/textproc/py-bracex/distinfo Sun Sep 26 15:21:30 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2021/05/28 04:22:58 adam Exp $
+$NetBSD: distinfo,v 1.2 2021/09/26 15:21:30 mef Exp $
SHA1 (bracex-2.1.1.tar.gz) = a592635ea4869161b39e62a3e34ac4c22648dfcd
RMD160 (bracex-2.1.1.tar.gz) = ecb8735123a512686b5b07fa243ecbe7111af276
SHA512 (bracex-2.1.1.tar.gz) = d34a50e6565e1ecdb1c645d047351d907f57ab73614743be18495eb873449a2604f7dfd528e1221f71f7e709e0651cdb5d19605d24cad578bee85543c4a79c9e
Size (bracex-2.1.1.tar.gz) = 26628 bytes
+SHA1 (patch-setup.py) = b10cfc0f074d9c61e96cb46c5b78ec05ddc21756
diff -r a39a0c53f918 -r a802aac6d0c8 textproc/py-bracex/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-bracex/patches/patch-setup.py Sun Sep 26 15:21:30 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-setup.py,v 1.1 2021/09/26 15:21:30 mef Exp $
+
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 356: ordinal not in range(128)
+*** Error code 1
+
+--- setup.py.orig 2021-09-27 00:10:19.151518709 +0900
++++ setup.py 2021-09-27 00:16:39.319538592 +0900
+@@ -3,6 +3,7 @@
+ """Setup package."""
+ from setuptools import setup, find_packages
+ import os
++import sys
+ import importlib
+
+
+@@ -31,7 +32,7 @@ def get_requirements(req):
+ def get_description():
+ """Get long description."""
+
+- with open("README.md", 'r') as f:
++ with open("README.md", **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as f:
+ desc = f.read()
+ return desc
+
Home |
Main Index |
Thread Index |
Old Index