Package: nodejs
Version: 0.6.19~dfsg1-5
Severity: normal

Dear Maintainer,

I'm porting Debian on illumos kernel and using GNU toolchain (GCC, binutils,
etc.)

Node.js' build system sucks so much that cannot detect features of the compiler
and the linker.  Instead it tests the platform.

It assumes, that on "sunos" linker always exports all dynamic symbols. It is
true for sunos linker, but not for GNU ld - the latter need --export-dynamic,
or -rdynamic option to GCC.

Another issue is that Node.js' build system passes -threads options to the
compiler. GCC does not support it.

I believe Debian on any kernel will use GNU tools, thus these patches can be
adopted by Node.js package.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nodejs depends on:
ii  libc-ares2      1.9.1-3
ii  libc6           2.13-35
ii  libev4          1:4.11-1
ii  libgcc1         1:4.7.1-7
ii  libssl1.0.0     1.0.1c-4
ii  libstdc++6      4.7.1-7
ii  libv8-3.8.9.20  3.8.9.20-1
ii  zlib1g          1:1.2.7.dfsg-13

nodejs recommends no packages.

nodejs suggests no packages.

-- no debconf information
From: Igor Pashev <pashev.i...@gmail.com>
Date: Tue, 21 Aug 2012 16:22:14 +0000
Subject: Dyson: do not pass -threads to compiler

---
 wscript |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/wscript b/wscript
index f922ad1..f128fdf 100644
--- a/wscript
+++ b/wscript
@@ -491,9 +491,7 @@ def configure(conf):
   conf.define("HAVE_CONFIG_H", 1)
 
   if sys.platform.startswith("sunos"):
-    conf.env.append_value ('CCFLAGS', '-threads')
-    conf.env.append_value ('CXXFLAGS', '-threads')
-    #conf.env.append_value ('LINKFLAGS', ' -threads')
+      pass
   elif not sys.platform.startswith("win32"):
     threadflags='-pthread'
     conf.env.append_value ('CCFLAGS', threadflags)
From: Igor Pashev <pashev.i...@gmail.com>
Date: Tue, 21 Aug 2012 16:26:33 +0000
Subject: Dyson: allow -rdynamic

---
 wscript |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wscript b/wscript
index f128fdf..b64449b 100644
--- a/wscript
+++ b/wscript
@@ -318,7 +318,7 @@ def configure(conf):
   conf.env['USE_NPM'] = not o.without_npm
 
   conf.check(lib='dl', uselib_store='DL')
-  if not sys.platform.startswith("sunos") and not sys.platform.startswith("win32"):
+  if not sys.platform.startswith("win32"):
     conf.env.append_value("CCFLAGS", "-rdynamic")
     conf.env.append_value("LINKFLAGS_DL", "-rdynamic")
 
_______________________________________________
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to