aboutsummaryrefslogtreecommitdiff
path: root/www/node
diff options
context:
space:
mode:
authorBradley T. Hughes <bhughes@FreeBSD.org>2020-08-20 21:27:50 +0000
committerBradley T. Hughes <bhughes@FreeBSD.org>2020-08-20 21:27:50 +0000
commitcf0353320da075f596ad5a8b1f805f15b2bb45d7 (patch)
treeec496d037c94bede0ded19ff7d5592b40468ae0a /www/node
parent2e0ce2cac6e01e409bae6299f6896edee6fa450a (diff)
downloadports-cf0353320da075f596ad5a8b1f805f15b2bb45d7.tar.gz
ports-cf0353320da075f596ad5a8b1f805f15b2bb45d7.zip
www/node: build with python < 3.7
r535334 introduced a patch for tools/genv8constants.py that only worked with Python >= 3.7. The "text" argument added to Python's subprocess.Popen() is an alias for "universal_newlines", which works on all versions of Python, including 2.7. PR: 248167 Submitted by: James French <james@french.id.au> Reported by: Miroslav Lachman <000.fbsd@quip.cz> MFH: 2020Q3 Sponsored by: Miles AS
Notes
Notes: svn path=/head/; revision=545565
Diffstat (limited to 'www/node')
-rw-r--r--www/node/files/patch-tools_genv8constants.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/node/files/patch-tools_genv8constants.py b/www/node/files/patch-tools_genv8constants.py
index 45107fcd85ce..da6a86d513f2 100644
--- a/www/node/files/patch-tools_genv8constants.py
+++ b/www/node/files/patch-tools_genv8constants.py
@@ -1,11 +1,11 @@
---- tools/genv8constants.py.orig 2020-05-14 21:31:48 UTC
+--- tools/genv8constants.py.orig 2020-08-20 20:43:20 UTC
+++ tools/genv8constants.py
@@ -20,7 +20,7 @@ if len(sys.argv) != 3:
outfile = open(sys.argv[1], 'w')
try:
pipe = subprocess.Popen([ 'objdump', '-z', '-D', sys.argv[2] ],
- bufsize=-1, stdout=subprocess.PIPE).stdout
-+ bufsize=-1, stdout=subprocess.PIPE, text=True).stdout
++ bufsize=-1, stdout=subprocess.PIPE, universal_newlines=True).stdout
except OSError as e:
if e.errno == errno.ENOENT:
print('''