summaryrefslogtreecommitdiff
blob: d6db23b838fe397c6b3e59241762a5e3c687e72a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Make configure script work for Python 3.

In Python 3, map returns an iterable, not a list, so for a subsequent map to
work we have to convert that to a list explicitely.  This should work for
Python 2 just as well, so the patch can be applied unconditionally.

2013-09-21 Martin von Gagern

References:
https://bugs.gentoo.org/485490

Index: Botan-1.10.5/configure.py
===================================================================
--- Botan-1.10.5.orig/configure.py
+++ Botan-1.10.5/configure.py
@@ -1780,7 +1780,7 @@ def main(argv = None):
                 gcc_version = stdout.strip()
 
                 logging.info('Detected gcc version %s' % (gcc_version))
-                return map(int, gcc_version.split('.')[0:2])
+                return [int(c) for c in gcc_version.split('.')[0:2]]
             except OSError:
                 logging.warning('Could not execute %s for version check' % (gcc_bin))
                 return None