From 3342b03974fc90c1369fd995a262b9e7e7818a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 26 Nov 2022 19:04:19 +0700 Subject: [PATCH] guitarix2: fix build with Python 3.11 --- srcpkgs/guitarix2/patches/python-3.11.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/guitarix2/patches/python-3.11.patch diff --git a/srcpkgs/guitarix2/patches/python-3.11.patch b/srcpkgs/guitarix2/patches/python-3.11.patch new file mode 100644 index 00000000000..15f8cad3962 --- /dev/null +++ b/srcpkgs/guitarix2/patches/python-3.11.patch @@ -0,0 +1,13 @@ +Index: guitarix2-0.42.1/wscript +=================================================================== +--- guitarix2-0.42.1.orig/wscript ++++ guitarix2-0.42.1/wscript +@@ -532,7 +532,7 @@ def sub_file(task): + dst_fname = task.outputs[0].abspath() + lst = task.generator.sub_list + +- with open(src_fname, 'rU') as f: ++ with open(src_fname, 'r') as f: + txt = f.read() + for (key, val) in lst: + re_pat = re.compile(key, re.M)