From nobody Mon Mar 07 18:27:14 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 901611A06D61; Mon, 7 Mar 2022 18:27:17 +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 4KC6Pb5Y2Yz3h20; Mon, 7 Mar 2022 18:27:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646677637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2/LsnlywJfHqV9IddfcEQ99mkVMXCrQ3M57xQC2D7Ec=; b=L8iWduKyZVmPFu0ZxVuac3GK63PGXFxlzsWB6+PAluuwpLzLFggknijIi8WXojqXpmRd5i ++4KwLY+orQTBx4LiqnqIhPXzpQkBztyGWck2vwJvhEG2CSP6g7ZLwqT/1/GeDBOeL3yUK +7P36PxaedHGTaFRUHVoa2qDVKnZgQcsFwW8Xhp59ttOMwVYvRgzapxWqWwZgoN2v3Yl89 f0VaKb4Byl5XGXsjNGxjiTcuI6XGX6wUGv8dBXbOAkNYRdGkNnkeltvjEPLRUtvvtur7UD XlMt7jaZO0/y3jm/Ef4KeHUjNRno48W217AMAy0eiswOPBRXHlakSi9h08masg== 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 DFE8358A1; Mon, 7 Mar 2022 18:27:14 +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 227IRE5D085740; Mon, 7 Mar 2022 18:27:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 227IRENr085739; Mon, 7 Mar 2022 18:27:14 GMT (envelope-from git) Date: Mon, 7 Mar 2022 18:27:14 GMT Message-Id: <202203071827.227IRENr085739@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 013e70f366f6 - main - devel/py-paver: Fix build with setuptools 58.0.0+ List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 013e70f366f6f82725de352fab21eaa10a1bdc6a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646677637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2/LsnlywJfHqV9IddfcEQ99mkVMXCrQ3M57xQC2D7Ec=; b=Q/Xe1xmrtXbTmlD3Q/LcYTjRKU8bJyptAo/Yp/dA7nMoqiPTXpRqzQ6qUU4/lO7TksiTlA Eo5nSW/qJL1b97rmz3DFgGmbzQkHa28v1KZ5EZlZopbR6vQyVX2ao/oJWJcDWLFKpwS88G zBt+nNnpF1evPHpfJGuXy9UzuJX2piyRLp1gloD7frVC6T8cUqmnX8iPXMk4n9IEaypMug 57RE3rOQ92G46giqdre2gXawJCCWme30uYlzWy8hfcCwdj/QxxqxtxlBtUxJIJnV1nrYZG YC7PBRCJZqU14GsgKgJY0krxZ/G1a2cfGi8ouX1o451JbSzPYCxg4uPbEhiusA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646677637; a=rsa-sha256; cv=none; b=raB/4wFuQk5pomtuC/LJAqR7FrmbtYOHrD9kGMwEUp3R+XXMvcrZUO6SdIBLZiOm7/wGDf LiK4MZMOMzwpDSHOduCusf00RDEpGbZKcoZvQdFb8378sUQ381XBW4svLjv2ulHjkalaoO B5athS2mmbLKwIHDkK4tK2DUqRCv2ZS3uBbfkis0Uk2q69zGByacGCCLNDElbcyAwifk/6 v8TIO2XIUrcESrxoMJl4HOKJpae64ftkVQWT9yDZjAIKMGjboJ4dPQ6otPKtxl+udDHxXl ktbyq7r9sG/NZgOCpU0X0iT5jJRGJQNfwRu0mG7f6Qixb7YjoFqbyCdVNdioxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=013e70f366f6f82725de352fab21eaa10a1bdc6a commit 013e70f366f6f82725de352fab21eaa10a1bdc6a Author: Po-Chuan Hsieh AuthorDate: 2022-03-07 18:07:25 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-07 18:13:19 +0000 devel/py-paver: Fix build with setuptools 58.0.0+ With hat: python --- devel/py-paver/files/patch-2to3 | 201 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) diff --git a/devel/py-paver/files/patch-2to3 b/devel/py-paver/files/patch-2to3 new file mode 100644 index 000000000000..819541b24082 --- /dev/null +++ b/devel/py-paver/files/patch-2to3 @@ -0,0 +1,201 @@ +--- paver/deps/path2.py.orig 2014-07-16 12:48:36 UTC ++++ paver/deps/path2.py +@@ -39,10 +39,10 @@ for f in d.files('*.py'): + This module requires Python 2.3 or later. + """ + +-from __future__ import generators + +-import __builtin__ + ++import builtins ++ + import sys + import warnings + import os +@@ -75,16 +75,16 @@ _base = str + _getcwd = os.getcwd + try: + if os.path.supports_unicode_filenames: +- _base = unicode +- _getcwd = os.getcwdu ++ _base = str ++ _getcwd = os.getcwd + except AttributeError: + pass + + # Pre-2.3 workaround for basestring. + try: +- basestring ++ str + except NameError: +- basestring = (str, unicode) ++ str = (str, str) + + # Universal newline support + _textmode = 'U' +@@ -116,7 +116,7 @@ class path(_base): + # On python 2, unicode result breaks os.path.join + # if we are inheriting from str + # see https://github.com/paver/paver/issues/78 +- if isinstance(resultStr, unicode) and not os.path.supports_unicode_filenames: ++ if isinstance(resultStr, str) and not os.path.supports_unicode_filenames: + resultStr = resultStr.encode('utf-8') + + if resultStr is NotImplemented: +@@ -124,7 +124,7 @@ class path(_base): + return self.__class__(resultStr) + + def __radd__(self, other): +- if isinstance(other, basestring): ++ if isinstance(other, str): + return self.__class__(other.__add__(self)) + else: + return NotImplemented +@@ -604,11 +604,11 @@ class path(_base): + t = f.read() + finally: + f.close() +- return (t.replace(u'\r\n', u'\n') +- .replace(u'\r\x85', u'\n') +- .replace(u'\r', u'\n') +- .replace(u'\x85', u'\n') +- .replace(u'\u2028', u'\n')) ++ return (t.replace('\r\n', '\n') ++ .replace('\r\x85', '\n') ++ .replace('\r', '\n') ++ .replace('\x85', '\n') ++ .replace('\u2028', '\n')) + + def write_text(self, text, encoding=None, errors='strict', linesep=os.linesep, append=False): + r""" Write the given text to this file. +@@ -674,16 +674,16 @@ class path(_base): + conversion. + + """ +- if isinstance(text, unicode): ++ if isinstance(text, str): + if linesep is not None: + # Convert all standard end-of-line sequences to + # ordinary newline characters. +- text = (text.replace(u'\r\n', u'\n') +- .replace(u'\r\x85', u'\n') +- .replace(u'\r', u'\n') +- .replace(u'\x85', u'\n') +- .replace(u'\u2028', u'\n')) +- text = text.replace(u'\n', linesep) ++ text = (text.replace('\r\n', '\n') ++ .replace('\r\x85', '\n') ++ .replace('\r', '\n') ++ .replace('\x85', '\n') ++ .replace('\u2028', '\n')) ++ text = text.replace('\n', linesep) + if encoding is None: + encoding = sys.getdefaultencoding() + bytes = text.encode(encoding, errors) +@@ -766,15 +766,15 @@ class path(_base): + f = self.open(mode) + try: + for line in lines: +- isUnicode = isinstance(line, unicode) ++ isUnicode = isinstance(line, str) + if linesep is not None: + # Strip off any existing line-end and add the + # specified linesep string. + if isUnicode: +- if line[-2:] in (u'\r\n', u'\x0d\x85'): ++ if line[-2:] in ('\r\n', '\x0d\x85'): + line = line[:-2] +- elif line[-1:] in (u'\r', u'\n', +- u'\x85', u'\u2028'): ++ elif line[-1:] in ('\r', '\n', ++ '\x85', '\u2028'): + line = line[:-1] + else: + if line[-2:] == '\r\n': +@@ -893,7 +893,7 @@ class path(_base): + self, win32security.OWNER_SECURITY_INFORMATION) + sid = desc.GetSecurityDescriptorOwner() + account, domain, typecode = win32security.LookupAccountSid(None, sid) +- return domain + u'\\' + account ++ return domain + '\\' + account + else: + if pwd is None: + raise NotImplementedError("path.owner is not implemented on this platform.") +@@ -936,25 +936,25 @@ class path(_base): + # + # --- Create/delete operations on directories + +- def mkdir(self, mode=0777): ++ def mkdir(self, mode=0o777): + if not self.exists(): + os.mkdir(self, mode) + +- def mkdir_p(self, mode=0777): ++ def mkdir_p(self, mode=0o777): + try: + self.mkdir(mode) +- except OSError, e: ++ except OSError as e: + if e.errno != errno.EEXIST: + raise + +- def makedirs(self, mode=0777): ++ def makedirs(self, mode=0o777): + if not self.exists(): + os.makedirs(self, mode) + +- def makedirs_p(self, mode=0777): ++ def makedirs_p(self, mode=0o777): + try: + self.makedirs(mode) +- except OSError, e: ++ except OSError as e: + if e.errno != errno.EEXIST: + raise + +@@ -965,7 +965,7 @@ class path(_base): + def rmdir_p(self): + try: + self.rmdir() +- except OSError, e: ++ except OSError as e: + if e.errno != errno.ENOTEMPTY and e.errno != errno.EEXIST: + raise + +@@ -976,7 +976,7 @@ class path(_base): + def removedirs_p(self): + try: + self.removedirs() +- except OSError, e: ++ except OSError as e: + if e.errno != errno.ENOTEMPTY and e.errno != errno.EEXIST: + raise + +@@ -986,7 +986,7 @@ class path(_base): + """ Set the access/modified times of this file to the current time. + Create the file if it does not exist. + """ +- fd = os.open(self, os.O_WRONLY | os.O_CREAT, 0666) ++ fd = os.open(self, os.O_WRONLY | os.O_CREAT, 0o666) + os.close(fd) + os.utime(self, None) + +@@ -997,7 +997,7 @@ class path(_base): + def remove_p(self): + try: + self.unlink() +- except OSError, e: ++ except OSError as e: + if e.errno != errno.ENOENT: + raise + +@@ -1058,7 +1058,7 @@ class path(_base): + def rmtree_p(self): + try: + self.rmtree() +- except OSError, e: ++ except OSError as e: + if e.errno != errno.ENOENT: + raise +