Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2024 03:19:42 GMT
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: cea6be3b48fa - main - graphics/mypaint: Fix build with python-3.11
Message-ID:  <202401250319.40P3Jg3h064218@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cea6be3b48fa041c65b505f8383f86bfb15b6ad1

commit cea6be3b48fa041c65b505f8383f86bfb15b6ad1
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2024-01-25 03:17:39 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2024-01-25 03:19:13 +0000

    graphics/mypaint: Fix build with python-3.11
---
 graphics/mypaint/files/patch-setup.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/graphics/mypaint/files/patch-setup.py b/graphics/mypaint/files/patch-setup.py
index 7b72a37085a4..b27b0ea541c6 100644
--- a/graphics/mypaint/files/patch-setup.py
+++ b/graphics/mypaint/files/patch-setup.py
@@ -1,5 +1,14 @@
---- setup.py.orig	2022-01-09 11:24:00 UTC
+--- setup.py.orig	2020-05-29 15:18:55 UTC
 +++ setup.py
+@@ -632,7 +632,7 @@ class InstallScripts (install_scripts):
+         self.announce("installing %s as %s" % (src, targ_basename), level=2)
+         if self.dry_run:
+             return []
+-        with open(src, "rU") as in_fp:
++        with open(src, "r") as in_fp:
+             with open(targ, "w") as out_fp:
+                 line = in_fp.readline().rstrip()
+                 if line.startswith("#!"):
 @@ -867,7 +867,6 @@ def get_ext_modules():
          '-Wall',
          '-Wno-sign-compare',



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401250319.40P3Jg3h064218>