Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37634573
en ru br
ALT Linux repos
S:8.3.0-alt1

Group :: Development/Tools
RPM: node-gyp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: node-gyp-system-nodedir.patch
Download


diff --git a/node-gyp/lib/configure.js b/node-gyp/lib/configure.js
index 564564e..8de336c 100644
--- a/node-gyp/lib/configure.js
+++ b/node-gyp/lib/configure.js
@@ -56,6 +56,15 @@ function configure (gyp, argv, callback) {
         return callback(new Error('Invalid version number: ' + release.version))
       }
 
+      if (!gyp.opts.tarball) {
+        // use system nodeDir
+        gyp.opts.ensure = true
+        nodeDir = '/usr'
+        log.verbose('get node dir', 'use system node dir: %s', nodeDir)
+        createBuildDir()
+        return
+      }
+
       // If the tarball option is set, always remove and reinstall the headers
       // into devdir. Otherwise only install if they're not already there.
       gyp.opts.ensure = !gyp.opts.tarball
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin