* intl: Update ICU to 64.2. * c++ API: Added an overload EmitAsyncDestroy that can be used during garbage collection - Notable changes in 12.0.0: * assert: + validate required arguments + adjust loose assertions * async_hooks: + remove deprecated emitBefore and emitAfter + remove promise object from resource * bootstrap: make Buffer and process non-enumerable * buffer: + use stricter range checks + harden SlowBuffer creation + harden validation of buffer allocation size + do proper error propagation in addon methods * child_process: + remove options.customFds + harden fork arguments validation + use non-infinite maxBuffer defaults * console: don't use ANSI escape codes when TERM=dumb * crypto: + remove legacy native handles + decode missing passphrase errors + remove Cipher.setAuthTag() and Decipher.getAuthTag() + remove deprecated crypto._toBuf() + set DEFAULT_ENCODING property to non-enumerable * deps: + update V8 to 7.4.288.13 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs12?expand=0&rev=1
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
Index: node-v9.3.0/configure
|
|
===================================================================
|
|
--- node-v9.3.0.orig/configure
|
|
+++ node-v9.3.0/configure
|
|
@@ -38,6 +38,28 @@ import string
|
|
# If not run from node/, cd to node/.
|
|
os.chdir(os.path.dirname(__file__) or '.')
|
|
|
|
+# http://stackoverflow.com/questions/28904750/python-check-output-workaround-in-2-6
|
|
+if "check_output" not in dir( subprocess ): # duck punch it in!
|
|
+ def check_output(*popenargs, **kwargs):
|
|
+ r"""Run command with arguments and return its output as a byte string.
|
|
+ Backported from Python 2.7 as it's implemented as pure python on stdlib.
|
|
+
|
|
+ >>> check_output(['/usr/bin/python', '--version'])
|
|
+ Python 2.6.2+ """
|
|
+ process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
|
|
+ output, unused_err = process.communicate()
|
|
+ retcode = process.poll()
|
|
+ if retcode:
|
|
+ cmd = kwargs.get("args")
|
|
+ if cmd is None:
|
|
+ cmd = popenargs[0]
|
|
+ error = subprocess.CalledProcessError(retcode, cmd)
|
|
+ error.output = output
|
|
+ raise error
|
|
+ return output
|
|
+
|
|
+ subprocess.check_output = check_output
|
|
+
|
|
# gcc and g++ as defaults matches what GYP's Makefile generator does,
|
|
# except on OS X.
|
|
CC = os.environ.get('CC', 'cc' if sys.platform == 'darwin' else 'gcc')
|