From nobody Fri Mar 25 13:51:04 2022 X-Original-To: dev-commits-ports-all@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 7212A1A34A40; Fri, 25 Mar 2022 13:51:06 +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 4KQ3Qd43RXz3hKC; Fri, 25 Mar 2022 13:51:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216266; 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=9SMmJ5uIdUl6Q0lgWrRRVyYeAt+kTQ+OLlTovZJ8gCM=; b=pXWhGbDMogk8edsYhTjWZ9vxAf7Z8a255cpTG2aT5N7kZ/AFLEZkxCqq4rDXLN2bG6E8vz dwNcXqXJxWmaRJWEL3SyLq+t/nZHcPYrtagg7/dHPq8aKcJfS+PIK88WRYjMyPv1qx7S+z qzfhcJVsH9Bq1CmVp+kL5RElUiISwmZ5fiZ0cdRDcIgwDyWY7IRAui4Ft1LXIEFossAwlj vr4POJymHyzJLTISr/nqnjJFD5nf30uf5OD5I1aNE3ahB+L6H3web65EWqPzqiXyharqK0 VF2uxxPfOHJrrrD+ls8DRLu8/Gk14XZa90SU7FeOEpwYRY3i7Px8i5VhjaICzA== 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 C21245996; Fri, 25 Mar 2022 13:51:04 +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 22PDp4wS037789; Fri, 25 Mar 2022 13:51:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDp4vC037788; Fri, 25 Mar 2022 13:51:04 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:51:04 GMT Message-Id: <202203251351.22PDp4vC037788@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: 6af46f44ca4c - main - sysutils/py-power: Fix build with setuptools 58.0.0+ List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 6af46f44ca4c83135ee820649121fffa8d6335e9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216266; 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=9SMmJ5uIdUl6Q0lgWrRRVyYeAt+kTQ+OLlTovZJ8gCM=; b=WQUqPDvAnLXB0TPRDfRVQDSM430+nlvsli2HQioHwkYrSmmdTz6uttoSFnaay/HbPDfyBx iAULOR3u4tPoOqG48tjxA2BcvvXg9zP6puDaZucbvegjC2FPM46vPE/oLLcRdY8JhDlb2W YlT+ihDlTiRDlyIn9hOKSaz/XdXm2WxUT3snCJVOE+QUB0bnuVQZb+ny1fCFgM0/skLPz+ jaqIlOkpobyqTtvdyUZnPIJqkQnx38QuywO3rJWZIHLvMHtWJ8CS1n+vcKezbhyADkU3F9 GwcH1Yn+BG8od8HYWfycvQ0vUdPz2fuY084UNjLC9yiEGTI1HoTSyA07z1liVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648216266; a=rsa-sha256; cv=none; b=HHOxAdXH09SYSdbe4/qPUhwaDcJ+U59mPXFvEx0uLXEUNSD3hCYM0/sfC2Ha8akFJjejb7 oGOTEi1pHqSWk3b1OR5A3f20SSgp8hURysrTm1vh7ShiG1QbdZEMhurv61uORZNJAJ9h4H UgtW33mZMsUIZlkVc8pKv5NGKIREMohg7j0LpatmJS1ltTBG5j5sXbDguS64z0+FpZbh1l vAzhYKmM5hRQfVaDIP3esdP5R4NBnUCJSUgljLMhS09a8eK3l2FHRhqECDF6OMak/FBH8N wpR0SiQIU0d/dxgLmQdy3zOxamQvqoo/Urpo60J44NsG+TR5/6i8s+L3nQwxpQ== 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=6af46f44ca4c83135ee820649121fffa8d6335e9 commit 6af46f44ca4c83135ee820649121fffa8d6335e9 Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 13:34:41 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:38:22 +0000 sysutils/py-power: Fix build with setuptools 58.0.0+ With hat: python --- sysutils/py-power/files/patch-2to3 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/sysutils/py-power/files/patch-2to3 b/sysutils/py-power/files/patch-2to3 new file mode 100644 index 000000000000..fc02a4134b65 --- /dev/null +++ b/sysutils/py-power/files/patch-2to3 @@ -0,0 +1,24 @@ +--- power/tests.py.orig 2012-12-07 08:20:49 UTC ++++ power/tests.py +@@ -27,10 +27,10 @@ class TestPowerManagementCommon(unittest.TestCase): + + class TestObserver(power.PowerManagementObserver): + def on_power_sources_change(self, power_management): +- print "on_power_sources_change" ++ print("on_power_sources_change") + + def on_time_remaining_change(self, power_management): +- print "on_time_remaining_change" ++ print("on_time_remaining_change") + + + if __name__ == "__main__": +@@ -38,7 +38,7 @@ if __name__ == "__main__": + p = power.PowerManagement() + p.add_observer(o) + try: +- print "Power management observer is registered" ++ print("Power management observer is registered") + import time + while True: + time.sleep(1)