Suppress npm update message
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
969079bd58
commit
1e2b51b3b4
16
no-npm-update-msg.patch
Normal file
16
no-npm-update-msg.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff '--color=auto' -ruN node-v9.11.1.orig/deps/npm/bin/npm-cli.js node-v9.11.1/deps/npm/bin/npm-cli.js
|
||||
--- node-v9.11.1.orig/deps/npm/bin/npm-cli.js 2018-04-05 00:34:51.000000000 -0400
|
||||
+++ node-v9.11.1/deps/npm/bin/npm-cli.js 2018-04-09 16:57:31.595166069 -0400
|
||||
@@ -25,12 +25,6 @@
|
||||
|
||||
unsupported.checkForUnsupportedNode()
|
||||
|
||||
- if (!unsupported.checkVersion(process.version).unsupported) {
|
||||
- var updater = require('update-notifier')
|
||||
- var pkg = require('../package.json')
|
||||
- updater({pkg: pkg}).notify({defer: true})
|
||||
- }
|
||||
-
|
||||
var path = require('path')
|
||||
var npm = require('../lib/npm.js')
|
||||
var npmconf = require('../lib/config/core.js')
|
@ -122,6 +122,10 @@ Patch1: 0001-Disable-running-gyp-files-for-bundled-deps.patch
|
||||
# Follow https://bugs.chromium.org/p/v8/issues/detail?id=6939
|
||||
Patch2: 0001-Fix-aarch64-debug.patch
|
||||
|
||||
# Suppress the message from npm to run `npm -g update npm`
|
||||
# This does bad things on an RPM-managed npm.
|
||||
Patch3: no-npm-update-msg.patch
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: gcc >= 4.9.4
|
||||
@ -272,6 +276,8 @@ rm -rf deps/zlib
|
||||
|
||||
%patch2 -p1
|
||||
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
# build with debugging symbols and add defines from libuv (#892601)
|
||||
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on
|
||||
|
Loading…
Reference in New Issue
Block a user