pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/nodejs On macOS, do not generate debugging symbol...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07558027bf7b
branches:  trunk
changeset: 363008:07558027bf7b
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue May 30 14:26:38 2017 +0000

description:
On macOS, do not generate debugging symbols; they use lots of disk space, and most of them get stripped off during installation.

diffstat:

 lang/nodejs/Makefile                                                                        |   4 +-
 lang/nodejs/distinfo                                                                        |   4 ++-
 lang/nodejs/patches/patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_xcode__emulation.py |  15 ++++++++++
 lang/nodejs/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py                           |  15 ++++++++++
 4 files changed, 35 insertions(+), 3 deletions(-)

diffs (75 lines):

diff -r 5b5d6a036938 -r 07558027bf7b lang/nodejs/Makefile
--- a/lang/nodejs/Makefile      Tue May 30 14:26:08 2017 +0000
+++ b/lang/nodejs/Makefile      Tue May 30 14:26:38 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.97 2017/05/12 20:55:40 fhajny Exp $
+# $NetBSD: Makefile,v 1.98 2017/05/30 14:26:38 adam Exp $
 
 DISTNAME=      node-v7.10.0
 
-CONFIGURE_ARGS+=        --with-intl=system-icu
+CONFIGURE_ARGS+=       --with-intl=system-icu
 
 .include "../../lang/nodejs/Makefile.common"
 .include "../../textproc/icu/buildlink3.mk"
diff -r 5b5d6a036938 -r 07558027bf7b lang/nodejs/distinfo
--- a/lang/nodejs/distinfo      Tue May 30 14:26:08 2017 +0000
+++ b/lang/nodejs/distinfo      Tue May 30 14:26:38 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.94 2017/05/04 16:39:36 fhajny Exp $
+$NetBSD: distinfo,v 1.95 2017/05/30 14:26:38 adam Exp $
 
 SHA1 (node-v7.10.0.tar.gz) = 2a32c82256effb991c59a1b37b5c1d0beffe9c2d
 RMD160 (node-v7.10.0.tar.gz) = c0d8edb2977e59b6090953c72ee9be1ae699f01a
@@ -7,6 +7,7 @@
 SHA1 (patch-common.gypi) = 5b3a50617358637a6f910de28bb5a14f037317a6
 SHA1 (patch-deps_cares_cares.gyp) = 2235eb44bc984fa2e745fdf1786f1ae6de6ef80f
 SHA1 (patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_generator_make.py) = 78d6ddd37ae30e869e0da666a78baad86a638c50
+SHA1 (patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_xcode__emulation.py) = 6f21f937d2baf5799192e96865771cef6b4822a5
 SHA1 (patch-deps_uv_common.gypi) = ba9caa1f6d9d6df1913d0d72a8d18ea6db0a32ff
 SHA1 (patch-deps_uv_src_unix_netbsd.c) = 0915dcd6ff65ec9bc098c05c32e3fedee9c8168b
 SHA1 (patch-deps_v8_src_arm_cpu-arm.cc) = d0d11ac474ab109a6f40b26fa457b12d742eb48d
@@ -24,4 +25,5 @@
 SHA1 (patch-src_node.cc) = 7004baf140e252861494b4fb003beeaa8581be78
 SHA1 (patch-tools_gyp_pylib_gyp_common.py) = 585dd239415da146fa50ed86e42dd99080e86002
 SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = be3cc1aaa85c3d59b6f2758df813cb5ad8d8f74e
+SHA1 (patch-tools_gyp_pylib_gyp_xcode__emulation.py) = 15937c419f3226ab280c7bcd5d726773cb5add57
 SHA1 (patch-tools_install.py) = aae60d31e8c2e74f18c61c328913412545943d79
diff -r 5b5d6a036938 -r 07558027bf7b lang/nodejs/patches/patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_xcode__emulation.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/patches/patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_xcode__emulation.py       Tue May 30 14:26:38 2017 +0000
@@ -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 -r 5b5d6a036938 -r 07558027bf7b lang/nodejs/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py Tue May 30 14:26:38 2017 +0000
@@ -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')



Home | Main Index | Thread Index | Old Index