archrelease: copy trunk to extra-x86_64
[arch-packages.git] / serf / repos / extra-x86_64 / scons-python3.patch
blob144f5e39eae1e2eb3290ef37a5b7f13a47b3227f
1 --- serf-1.3.9/SConstruct.orig 2019-07-26 17:49:30.910189251 +0000
2 +++ serf-1.3.9/SConstruct 2019-07-26 17:49:54.073821735 +0000
3 @@ -163,9 +163,9 @@
4 suffix='.def', src_suffix='.h')
5 })
7 -match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
8 - 'SERF_MINOR_VERSION ([0-9]+).*'
9 - 'SERF_PATCH_VERSION ([0-9]+)',
10 +match = re.search(b'SERF_MAJOR_VERSION ([0-9]+).*'
11 + b'SERF_MINOR_VERSION ([0-9]+).*'
12 + b'SERF_PATCH_VERSION ([0-9]+)',
13 env.File('serf.h').get_contents(),
14 re.DOTALL)
15 MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
16 @@ -183,7 +183,7 @@
18 unknown = opts.UnknownVariables()
19 if unknown:
20 - print 'Warning: Used unknown variables:', ', '.join(unknown.keys())
21 + print ('Warning: Used unknown variables:', ', '.join(unknown.keys()))
23 apr = str(env['APR'])
24 apu = str(env['APU'])