mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
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
This commit is contained in:
parent
2e0ce2cac6
commit
cf0353320d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545565
@ -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('''
|
||||
|
Loading…
Reference in New Issue
Block a user