diff options
Diffstat (limited to 'dev-libs/botan/files/botan-1.10-python3.patch')
-rw-r--r-- | dev-libs/botan/files/botan-1.10-python3.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-libs/botan/files/botan-1.10-python3.patch b/dev-libs/botan/files/botan-1.10-python3.patch new file mode 100644 index 000000000000..d6db23b838fe --- /dev/null +++ b/dev-libs/botan/files/botan-1.10-python3.patch @@ -0,0 +1,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 |