scons-python3.patch 913 B

12345678910111213141516171819202122232425
  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. })
  6. -match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
  7. - 'SERF_MINOR_VERSION ([0-9]+).*'
  8. - 'SERF_PATCH_VERSION ([0-9]+)',
  9. +match = re.search(b'SERF_MAJOR_VERSION ([0-9]+).*'
  10. + b'SERF_MINOR_VERSION ([0-9]+).*'
  11. + b'SERF_PATCH_VERSION ([0-9]+)',
  12. env.File('serf.h').get_contents(),
  13. re.DOTALL)
  14. MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
  15. @@ -183,7 +183,7 @@
  16. unknown = opts.UnknownVariables()
  17. if unknown:
  18. - print 'Warning: Used unknown variables:', ', '.join(unknown.keys())
  19. + print ('Warning: Used unknown variables:', ', '.join(unknown.keys()))
  20. apr = str(env['APR'])
  21. apu = str(env['APU'])