From owner-dev-commits-ports-all@freebsd.org Wed May 12 09:05:33 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 90A6E6369BA; Wed, 12 May 2021 09:05:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fg85T3lnkz3tLX; Wed, 12 May 2021 09:05:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 73F975E9; Wed, 12 May 2021 09:05:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14C95XvN092719; Wed, 12 May 2021 09:05:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14C95Xm8092718; Wed, 12 May 2021 09:05:33 GMT (envelope-from git) Date: Wed, 12 May 2021 09:05:33 GMT Message-Id: <202105120905.14C95Xm8092718@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dima Panov Subject: git: ce16fa339263 - main - deve/py-xmltodict: fix build with py36 by always open file as utf-8 encoded MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fluffy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ce16fa339263309c4baf66317e6f9ac802a71e21 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2021 09:05:33 -0000 The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=ce16fa339263309c4baf66317e6f9ac802a71e21 commit ce16fa339263309c4baf66317e6f9ac802a71e21 Author: Dima Panov AuthorDate: 2021-05-12 08:59:35 +0000 Commit: Dima Panov CommitDate: 2021-05-12 08:59:35 +0000 deve/py-xmltodict: fix build with py36 by always open file as utf-8 encoded This fix the 'UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2587: ordinal not in range(128)' Obtained from: https://github.com/martinblech/xmltodict/pull/246 Approved by: portmgr blanket (trivial build fix) --- devel/py-xmltodict/files/patch-setup.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/devel/py-xmltodict/files/patch-setup.py b/devel/py-xmltodict/files/patch-setup.py new file mode 100644 index 000000000000..416bb1f917c4 --- /dev/null +++ b/devel/py-xmltodict/files/patch-setup.py @@ -0,0 +1,13 @@ +--- setup.py.orig 2019-02-11 06:36:33 UTC ++++ setup.py +@@ -8,8 +8,8 @@ except ImportError: + + import xmltodict + +-with open('README.md') as f: +- long_description = f.read() ++with open('README.md', 'rb') as f: ++ long_description = f.read().decode('utf-8') + + + setup(name='xmltodict',