* updated pyxdg (0.19 -> 0.28)
[t2sde.git] / package / audio / aubio / hotfix-python.patch
blobf21ee90e373a803a91bb7393b4d4cb09ac04d6e1
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/aubio/hotfix-python.patch
3 # Copyright (C) 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- aubio-0.4.9/waflib/Context.py.vanilla 2024-05-10 23:22:39.441526444 +0200
15 +++ aubio-0.4.9/waflib/Context.py 2024-05-10 23:33:39.706455591 +0200
16 @@ -2,7 +2,7 @@
17 # encoding: utf-8
18 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
20 -import os,re,imp,sys
21 +import os,re,types,sys
22 from waflib import Utils,Errors,Logs
23 import waflib.Node
24 HEXVERSION=0x2000e00
25 @@ -106,7 +106,7 @@
26 cache[node]=True
27 self.pre_recurse(node)
28 try:
29 - function_code=node.read('rU',encoding)
30 + function_code=node.read('r',encoding)
31 exec(compile(function_code,node.abspath(),'exec'),self.exec_dict)
32 finally:
33 self.post_recurse(node)
34 @@ -344,9 +344,9 @@
35 return cache_modules[path]
36 except KeyError:
37 pass
38 - module=imp.new_module(WSCRIPT_FILE)
39 + module=types.ModuleType(WSCRIPT_FILE)
40 try:
41 - code=Utils.readf(path,m='rU',encoding=encoding)
42 + code=Utils.readf(path,m='r',encoding=encoding)
43 except EnvironmentError:
44 raise Errors.WafError('Could not read the file %r'%path)
45 module_dir=os.path.dirname(path)
46 --- aubio-0.4.9/waflib/ConfigSet.py.vanilla 2024-05-10 23:32:33.237462724 +0200
47 +++ aubio-0.4.9/waflib/ConfigSet.py 2024-05-10 23:32:49.004461032 +0200
48 @@ -146,7 +146,7 @@
49 Utils.writef(filename,''.join(buf))
50 def load(self,filename):
51 tbl=self.table
52 - code=Utils.readf(filename,m='rU')
53 + code=Utils.readf(filename,m='r')
54 for m in re_imp.finditer(code):
55 g=m.group
56 tbl[g(2)]=eval(g(3))