- Initial release of NodeJS 11.0.0
- Notable changes since NodeJS 10.12.0: * Use of process.binding() has been deprecated. * An experimental implementation of queueMicrotask() is added. * child_process: The default value of the windowsHide option has been changed to true. * deps: V8 has been updated to 7.0. * fs: + fs.read() method now requires a callback + The previously deprecated fs.SyncWriteStream utility has been removed * http: The http, https, and tls modules now use the WHATWG URL parser by default. * timers: nextTick queue will be run after each immediate and timer. * util: + WHATWG TextEncoder and TextDecoder are now globals. + util.inspect() output size is limited to 128 MB by default. + A runtime warning will be emitted when NODE_DEBUG is set for either http or http2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs11?expand=0&rev=1
This commit is contained in:
33
nodejs-sle11-python26-check_output.patch
Normal file
33
nodejs-sle11-python26-check_output.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
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')
|
Reference in New Issue
Block a user