[packages/nodejs-gyp] link built modules with libnode
glen
glen at pld-linux.org
Mon Apr 8 19:12:23 CEST 2013
commit 8afb9d481004b17732ed67f72a37db7add4027af
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Apr 8 20:11:41 2013 +0300
link built modules with libnode
this ensures we catch when abi (soname) changes
link-libnode.patch | 12 ++++++++++++
nodejs-gyp.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/nodejs-gyp.spec b/nodejs-gyp.spec
index 3a6e69c..0b1b2d6 100644
--- a/nodejs-gyp.spec
+++ b/nodejs-gyp.spec
@@ -2,7 +2,7 @@
Summary: Node.js native addon build tool
Name: nodejs-gyp
Version: 0.9.5
-Release: 1
+Release: 2
License: MIT
Group: Development/Libraries
URL: https://github.com/TooTallNate/node-gyp
@@ -10,6 +10,7 @@ Source0: http://registry.npmjs.org/node-gyp/-/node-gyp-%{version}.tgz
# Source0-md5: 3d8a5cf4b5b92457af68035bb0e0e96f
Patch0: jobs-alias.patch
Patch1: system-gyp.patch
+Patch2: link-libnode.patch
BuildRequires: sed >= 4.0
Requires: gyp
Requires: make
@@ -51,6 +52,7 @@ replacement to the node-waf program which is removed for node v0.8.
mv package/* .
%patch0 -p1
%patch1 -p1
+%patch2 -p1
# fix shebangs
%{__sed} -i -e '1s,^#!.*node,#!/usr/bin/node,' \
diff --git a/link-libnode.patch b/link-libnode.patch
new file mode 100644
index 0000000..c1d54d3
--- /dev/null
+++ b/link-libnode.patch
@@ -0,0 +1,12 @@
+--- nodejs-gyp-0.9.5/addon.gypi~ 2013-03-09 01:42:19.000000000 +0200
++++ nodejs-gyp-0.9.5/addon.gypi 2013-04-08 20:07:37.237603565 +0300
+@@ -39,6 +39,9 @@
+ }],
+ [ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
+ 'cflags': [ '-fPIC' ],
++ }],
++ [ '1==1', {
++ 'libraries': [ '-lnode' ],
+ }]
+ ]
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nodejs-gyp.git/commitdiff/8afb9d481004b17732ed67f72a37db7add4027af
More information about the pld-cvs-commit
mailing list