diff options
author | adam <adam@pkgsrc.org> | 2017-05-30 14:26:38 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2017-05-30 14:26:38 +0000 |
commit | dd241f11ad88f815cf84ab9ffefaed90ac5db766 (patch) | |
tree | 6cca60d4852f8c339dde678032c6b4033406ff94 /lang/nodejs/patches | |
parent | 4e47dfa23fb4f6528d7b619ac4db811914734368 (diff) | |
download | pkgsrc-dd241f11ad88f815cf84ab9ffefaed90ac5db766.tar.gz |
On macOS, do not generate debugging symbols; they use lots of disk space, and most of them get stripped off during installation.
Diffstat (limited to 'lang/nodejs/patches')
-rw-r--r-- | lang/nodejs/patches/patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_xcode__emulation.py | 15 | ||||
-rw-r--r-- | lang/nodejs/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py | 15 |
2 files changed, 30 insertions, 0 deletions
diff --git a/lang/nodejs/patches/patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_xcode__emulation.py b/lang/nodejs/patches/patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_xcode__emulation.py new file mode 100644 index 00000000000..38e74a047e3 --- /dev/null +++ b/lang/nodejs/patches/patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_xcode__emulation.py @@ -0,0 +1,15 @@ +$NetBSD: patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_xcode__emulation.py,v 1.1 2017/05/30 14:26:38 adam Exp $ + +Do not generate debugging symbols (uses lots of disk space). + +--- deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py.orig 2017-05-30 13:51:50.000000000 +0000 ++++ deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +@@ -500,7 +500,7 @@ class XcodeSettings(object): + + self._Appendf(cflags, 'GCC_OPTIMIZATION_LEVEL', '-O%s', default='s') + +- if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES'): ++ if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='NO'): + dbg_format = self._Settings().get('DEBUG_INFORMATION_FORMAT', 'dwarf') + if dbg_format == 'dwarf': + cflags.append('-gdwarf-2') diff --git a/lang/nodejs/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py b/lang/nodejs/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py new file mode 100644 index 00000000000..563ed6f648d --- /dev/null +++ b/lang/nodejs/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py @@ -0,0 +1,15 @@ +$NetBSD: patch-tools_gyp_pylib_gyp_xcode__emulation.py,v 1.1 2017/05/30 14:26:38 adam Exp $ + +Do not generate debugging symbols (uses lots of disk space). + +--- tools/gyp/pylib/gyp/xcode_emulation.py.orig 2017-05-30 14:15:04.000000000 +0000 ++++ tools/gyp/pylib/gyp/xcode_emulation.py +@@ -577,7 +577,7 @@ class XcodeSettings(object): + + self._Appendf(cflags, 'GCC_OPTIMIZATION_LEVEL', '-O%s', default='s') + +- if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES'): ++ if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='NO'): + dbg_format = self._Settings().get('DEBUG_INFORMATION_FORMAT', 'dwarf') + if dbg_format == 'dwarf': + cflags.append('-gdwarf-2') |