Control: tags -1 patch

The attached patch resolves the issue.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
diff -Nru oregano-0.84.41+dfsg.1/debian/changelog 
oregano-0.84.41+dfsg.1/debian/changelog
--- oregano-0.84.41+dfsg.1/debian/changelog     2019-01-29 16:36:16.000000000 
+0100
+++ oregano-0.84.41+dfsg.1/debian/changelog     2023-01-19 12:41:16.000000000 
+0100
@@ -1,3 +1,11 @@
+oregano (0.84.41+dfsg.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch to fix FTBFS with python3.11.
+    (closes: #1028794)
+
+ -- Bas Couwenberg <sebas...@debian.org>  Thu, 19 Jan 2023 12:41:16 +0100
+
 oregano (0.84.41+dfsg.1-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru oregano-0.84.41+dfsg.1/debian/patches/python3.11.patch 
oregano-0.84.41+dfsg.1/debian/patches/python3.11.patch
--- oregano-0.84.41+dfsg.1/debian/patches/python3.11.patch      1970-01-01 
01:00:00.000000000 +0100
+++ oregano-0.84.41+dfsg.1/debian/patches/python3.11.patch      2023-01-19 
12:41:10.000000000 +0100
@@ -0,0 +1,35 @@
+Description: Don't use U mode, removed in python3.11.
+Author: Bas Couwenberg <sebas...@debian.org>
+Bug-Debian: https://bugs.debian.org/1028794
+
+--- a/waflib/ConfigSet.py
++++ b/waflib/ConfigSet.py
+@@ -146,7 +146,7 @@ class ConfigSet(object):
+               Utils.writef(filename,''.join(buf))
+       def load(self,filename):
+               tbl=self.table
+-              code=Utils.readf(filename,m='rU')
++              code=Utils.readf(filename,m='r')
+               for m in re_imp.finditer(code):
+                       g=m.group
+                       tbl[g(2)]=eval(g(3))
+--- a/waflib/Context.py
++++ b/waflib/Context.py
+@@ -106,7 +106,7 @@ class Context(ctx):
+                               cache[node]=True
+                               self.pre_recurse(node)
+                               try:
+-                                      function_code=node.read('rU',encoding)
++                                      function_code=node.read('r',encoding)
+                                       
exec(compile(function_code,node.abspath(),'exec'),self.exec_dict)
+                               finally:
+                                       self.post_recurse(node)
+@@ -346,7 +346,7 @@ def load_module(path,encoding=None):
+               pass
+       module=imp.new_module(WSCRIPT_FILE)
+       try:
+-              code=Utils.readf(path,m='rU',encoding=encoding)
++              code=Utils.readf(path,m='r',encoding=encoding)
+       except EnvironmentError:
+               raise Errors.WafError('Could not read the file %r'%path)
+       module_dir=os.path.dirname(path)
diff -Nru oregano-0.84.41+dfsg.1/debian/patches/series 
oregano-0.84.41+dfsg.1/debian/patches/series
--- oregano-0.84.41+dfsg.1/debian/patches/series        2019-01-29 
16:36:16.000000000 +0100
+++ oregano-0.84.41+dfsg.1/debian/patches/series        2023-01-19 
12:38:32.000000000 +0100
@@ -2,3 +2,4 @@
 0007-Update-russian-translation.patch
 0003-Remove-Encoding-field-in-desktop-file.patch
 0004-Spelling-fixes.patch
+python3.11.patch

Reply via email to