Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37416867
en ru br
Репозитории ALT

Группа :: Development/Tools
Пакет: node-gyp

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: node-gyp-system-nodedir.patch
Скачать


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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin