packages: nodejs/nodejs.spec, nodejs/nodejs-shared-zlib.patch (NEW) Fix lin...
aredridel
aredridel at pld-linux.org
Sun Apr 22 04:23:28 CEST 2012
Author: aredridel Date: Sun Apr 22 02:23:28 2012 GMT
Module: packages Tag: HEAD
---- Log message:
Fix linking zlib
---- Files affected:
packages/nodejs:
nodejs.spec (1.36 -> 1.37) , nodejs-shared-zlib.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/nodejs/nodejs.spec
diff -u packages/nodejs/nodejs.spec:1.36 packages/nodejs/nodejs.spec:1.37
--- packages/nodejs/nodejs.spec:1.36 Sat Apr 14 20:08:12 2012
+++ packages/nodejs/nodejs.spec Sun Apr 22 04:23:22 2012
@@ -1,9 +1,4 @@
# $Revision$, $Date$
-# TODO
-# - fix linking (-lz missing):
-#i686-pld-linux-g++ Release/src/node_main_4.o Release/src/node_4.o Release/src/node_buffer_4.o Release/src/node_javascript_4.o Release/src/node_extensions_4.o Release/src/node_http_parser_4.o Release/src/node_constants_4.o Release/src/node_file_4.o Release/src/node_script_4.o Release/src/node_os_4.o Release/src/node_dtrace_4.o Release/src/node_string_4.o Release/src/node_zlib_4.o Release/src/timer_wrap_4.o Release/src/handle_wrap_4.o Release/src/stream_wrap_4.o Release/src/tcp_wrap_4.o Release/src/udp_wrap_4.o Release/src/pipe_wrap_4.o Release/src/cares_wrap_4.o Rel/usr/bin/ld: Release/src/node_zlib_4.o: undefined reference to symbol 'inflate'
-#/usr/bin/ld: note: 'inflate' is defined in DSO /lib/libz.so.1 so try adding it to the linker command line
-#/lib/libz.so.1: could not read symbols: Invalid operation
Summary: Asynchronous JavaScript Engine
Name: nodejs
Version: 0.6.15
@@ -18,6 +13,8 @@
Patch2: %{name}-libpath.patch
# use /usr/lib64/node as an arch-specific module dir when appropriate
Patch3: %{name}-lib64path.patch
+# Fix linking of zlib
+Patch4: %{name}-shared-zlib.patch
BuildRequires: c-ares-devel >= 1.7.4
BuildRequires: gcc >= 5:4.0
BuildRequires: libeio-devel
@@ -83,6 +80,8 @@
%patch2 -p1
%endif
+%patch4 -p1
+
# fix #!/usr/bin/env python -> #!/usr/bin/python:
grep -rl 'bin/env python' tools | xargs %{__sed} -i -e '1s,^#!.*python,#!%{__python},'
@@ -214,6 +213,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.37 2012/04/22 02:23:22 aredridel
+Fix linking zlib
+
Revision 1.36 2012/04/14 18:08:12 glen
- -lz linking broken, rel down
================================================================
Index: packages/nodejs/nodejs-shared-zlib.patch
diff -u /dev/null packages/nodejs/nodejs-shared-zlib.patch:1.1
--- /dev/null Sun Apr 22 04:23:28 2012
+++ packages/nodejs/nodejs-shared-zlib.patch Sun Apr 22 04:23:22 2012
@@ -0,0 +1,19 @@
+Common subdirectories: node-v0.6.15-o/benchmark and node-v0.6.15/benchmark
+Common subdirectories: node-v0.6.15-o/deps and node-v0.6.15/deps
+Common subdirectories: node-v0.6.15-o/doc and node-v0.6.15/doc
+Common subdirectories: node-v0.6.15-o/lib and node-v0.6.15/lib
+Common subdirectories: node-v0.6.15-o/src and node-v0.6.15/src
+Common subdirectories: node-v0.6.15-o/test and node-v0.6.15/test
+Common subdirectories: node-v0.6.15-o/tools and node-v0.6.15/tools
+diff -u node-v0.6.15-o/wscript node-v0.6.15/wscript
+--- node-v0.6.15-o/wscript 2012-04-21 20:16:10.000000000 -0600
++++ node-v0.6.15/wscript 2012-04-21 20:16:34.000000000 -0600
+@@ -284,7 +284,7 @@
+ conf.env["USE_GDBJIT"] = o.use_gdbjit
+ conf.env['USE_NPM'] = not o.without_npm
+
+- if not conf.env["USE_SHARED_ZLIB"] and not sys.platform.startswith("win32"):
++ if conf.env["USE_SHARED_ZLIB"] and not sys.platform.startswith("win32"):
+ conf.env.append_value("LINKFLAGS", "-lz")
+
+ conf.check(lib='dl', uselib_store='DL')
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/nodejs/nodejs.spec?r1=1.36&r2=1.37
More information about the pld-cvs-commit
mailing list