aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgblach <gblach@FreeBSD.org>2015-01-19 04:35:19 +0800
committergblach <gblach@FreeBSD.org>2015-01-19 04:35:19 +0800
commitbd87c1c5ce5f070fb73ee02ef0f7c77a95977107 (patch)
tree9da690dc528878d20c3b2df2971f0b34d8148e00
parent13b177d345e286ab9761eed6384a15c9a90e9403 (diff)
downloadfreebsd-ports-gnome-bd87c1c5ce5f070fb73ee02ef0f7c77a95977107.tar.gz
freebsd-ports-gnome-bd87c1c5ce5f070fb73ee02ef0f7c77a95977107.tar.zst
freebsd-ports-gnome-bd87c1c5ce5f070fb73ee02ef0f7c77a95977107.zip
Fix build with Python 3
PR: 196402 Submitted by: Kevin Zheng (kevinz5000 <at> gmail <dot> com)
-rw-r--r--devel/ninja/files/patch-configure.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/devel/ninja/files/patch-configure.py b/devel/ninja/files/patch-configure.py
index 0b47fdaf7202..61f0af7cc6eb 100644
--- a/devel/ninja/files/patch-configure.py
+++ b/devel/ninja/files/patch-configure.py
@@ -1,6 +1,15 @@
---- configure.py.orig 2012-06-26 19:09:41.000000000 +0200
-+++ configure.py 2012-06-26 19:09:54.000000000 +0200
-@@ -117,7 +117,7 @@
+--- configure.py.orig 2014-11-24 18:37:47.000000000 +0100
++++ configure.py 2015-01-18 21:26:42.000000000 +0100
+@@ -164,7 +164,7 @@
+ """Run a subcommand, quietly. Prints the full command on error."""
+ try:
+ subprocess.check_call(cmdline, shell=True)
+- except subprocess.CalledProcessError, e:
++ except subprocess.CalledProcessError:
+ print('when running: ', cmdline)
+ raise
+
+@@ -297,7 +297,7 @@
cflags += ['/Ox', '/DNDEBUG', '/GL']
ldflags += ['/LTCG', '/OPT:REF', '/OPT:ICF']
else: