From nobody Sat Apr 16 04:25:28 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 4A9D57CED37; Sat, 16 Apr 2022 04:25:30 +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 4KgKqs3Qrhz3PWF; Sat, 16 Apr 2022 04:25:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650083129; 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=g3NuvaohMuVrj1ljyWa5Fwz9UxDc2OXe9IjbEXWunAo=; b=r5uEAcd+NBckJHUgG6zskVroWy/D05NNYatxpARhQgcxyFPJhrsngeRfozIZ5FZD/4vjqT h/ymZkVpZANAMRSq0oOQPK8aYbNNB3wBNnAweWrF9encqAD/BdE7aQGjPFyj5NEwPjgN7n jvaTnOxMDXLu7VbDI9kxcD1fFXH9CXbRi4H5umnDLLyYfWNIkeMdN4++/N0Q/Ku10lHmj3 g4jAHBdQIfWI+Hd1LzOl5Q1cn1EexMCpAuOrnxjIFw5IiJA/rFDq2RCzWY1muNf1/Xabgh oJkFbrRgB47ueaoxo7XCaCoXuWiO+ILc386eKJnL1JtRHCSd/IUDMIEnl0hCLg== 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 D5B9C22FA6; Sat, 16 Apr 2022 04:25:28 +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 23G4PSff008820; Sat, 16 Apr 2022 04:25:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23G4PSkm008819; Sat, 16 Apr 2022 04:25:28 GMT (envelope-from git) Date: Sat, 16 Apr 2022 04:25:28 GMT Message-Id: <202204160425.23G4PSkm008819@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: 036883999a96 - main - net-im/py-unmessage: 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: 036883999a96a3eaf2f3d60f8d8baebbf8388662 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650083129; 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=g3NuvaohMuVrj1ljyWa5Fwz9UxDc2OXe9IjbEXWunAo=; b=w+FRDaOuvkUxbvtj3gMaCR9MINxVnty+c7I7kVi4klXIGQ68kOSzB/q9c0GUg1uiXTGbY5 I1GBzThS7hf4NsU0oHwgk0W18SjDUlKeCOhVPf9VFs7v8zcApcFUdwaIk0jJAN5sdL1+X8 gQiNtqDPJYXRs9/XAMpSMEUFvC4jqcV6GYYRwauwIXjpp9nriGmlSUMNpNQ2V9Bu7UX6BQ 65VqQWgCBqd0cRg56IfZvP1I6raR4zagKQauzltu0WLu+brmez5CpngMQOWCeSd9+eRda4 u3AK4I7zN+apuD4wcYHCJWDVav+uWQvQ0ma0gr1ccwMk6xOAIcAN6yuP9zwdtA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650083129; a=rsa-sha256; cv=none; b=jqmK/sN7GFl6HG3oSW5jdT2zXCEB5O/pHIkjGDAFTI89dC9bCGX+YnCwQtaEvUzIPWmQon EmI9NtG1OX1+hhBcGH1QKwOvOCdr+HgpvUAoMCf3fp5QcBI0ObIX7K01rpvKCFy6L7Y97F borvMVxmyCE50ncbjWiHlEctDfxDYLcsvc4FYpOD3hcJTiRNIZwKHgwS7EmpFfQtCmr/LW eijxcBtDmehKWKyw4DUadhoSj3F0PNDpTxUwhs+aJZmq9XFgvnIcDlYlbLqARbRRo6sycp TQnrxEdiWDqOCFQH7agrnuOafChG2/70WKdaLv8Cgq/42oX8ZqDgm/TYAxFHFA== 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=036883999a96a3eaf2f3d60f8d8baebbf8388662 commit 036883999a96a3eaf2f3d60f8d8baebbf8388662 Author: Po-Chuan Hsieh AuthorDate: 2022-04-16 04:15:34 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-04-16 04:19:53 +0000 net-im/py-unmessage: Fix build with setuptools 58.0.0+ With hat: python --- net-im/py-unmessage/files/patch-2to3 | 63 ++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/net-im/py-unmessage/files/patch-2to3 b/net-im/py-unmessage/files/patch-2to3 new file mode 100644 index 000000000000..49222316b89b --- /dev/null +++ b/net-im/py-unmessage/files/patch-2to3 @@ -0,0 +1,63 @@ +--- unmessage/cli.py.orig 2017-05-12 04:05:34 UTC ++++ unmessage/cli.py +@@ -75,7 +75,7 @@ YELLOW = 5 + def create_help(): + help_lines = list() + commands = sorted(COMMANDS.keys()) +- longest = max(map(lambda command: len(command), commands)) ++ longest = max([len(command) for command in commands]) + for c in commands: + padding = (longest - len(c)) * ' ' + info = COMMANDS[c] +@@ -87,11 +87,11 @@ def create_help(): + + + def sum_args_len(args_list): +- return sum(map(lambda args: len(args[0]), args_list)) ++ return sum([len(args[0]) for args in args_list]) + + + def join_args_str(args_list): +- return ''.join(map(lambda args: args[0], args_list)) ++ return ''.join([args[0] for args in args_list]) + + + def get_auth_color(conversation): +@@ -117,7 +117,7 @@ class Cli(PeerUi): + + @property + def handlers_conv(self): +- return self._handlers_conv.values() ++ return list(self._handlers_conv.values()) + + @property + def prefix_str(self): +@@ -211,8 +211,8 @@ class Cli(PeerUi): + self.remote_mode = remote_mode + + if not name: +- print 'unMessage could not find a name to use' +- print 'Run unMessage with `-name`' ++ print('unMessage could not find a name to use') ++ print('Run unMessage with `-name`') + else: + curses.wrapper(self.start_main, + name, +@@ -364,7 +364,7 @@ class Cli(PeerUi): + devices = self.peer.get_audio_devices() + if devices: + output = ['Audio devices:'] +- for name, index in devices.items(): ++ for name, index in list(devices.items()): + output.append('\tDevice {} has index {}'.format(name, index)) + else: + output = ['There are no audio devices available'] +@@ -697,7 +697,7 @@ class CursesHelper(object): + @sync_curses + def _init_color_pairs(cls): + default_bg = -1 +- for number, fg in cls.Colors.items(): ++ for number, fg in list(cls.Colors.items()): + curses.init_pair(number, fg, default_bg) + + @classmethod