[packages/nodejs] make soname_version configurable. at least in gyp side
glen
glen at pld-linux.org
Mon Apr 8 14:55:20 CEST 2013
commit dc60a63b2344846bd4b74501448172e7be0df35f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Apr 8 15:55:02 2013 +0300
make soname_version configurable. at least in gyp side
nodejs-shared.patch | 15 +++++++++++++--
nodejs.spec | 3 +++
2 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/nodejs.spec b/nodejs.spec
index bc360d3..ea777e5 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -32,6 +32,8 @@ Obsoletes: nodejs-waf
ExclusiveArch: %{ix86} %{x8664} arm
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define sover %(echo %{version} | cut -d. -f2)
+
%description
Node.js is a platform built on Chrome's JavaScript runtime for easily
building fast, scalable network applications. Node.js uses an
@@ -85,6 +87,7 @@ export CXXFLAGS="%{rpmcppflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
# NOT autoconf so don't use macro
PYTHONPATH=tools \
+GYP_DEFINES="soname_version=%{sover}" \
./configure \
--shared-v8 \
--shared-zlib \
diff --git a/nodejs-shared.patch b/nodejs-shared.patch
index 1089f90..81358e8 100644
--- a/nodejs-shared.patch
+++ b/nodejs-shared.patch
@@ -17,6 +17,17 @@
clean:
-rm -rf out/Makefile node node_g out/$(BUILDTYPE)/node blog.html email.md
+--- node-v0.10.3/common.gypi~ 2013-04-03 20:30:57.000000000 +0300
++++ node-v0.10.3/common.gypi 2013-04-08 15:50:00.327121152 +0300
+@@ -8,6 +8,8 @@
+ 'component%': 'static_library', # NB. these names match with what V8 expects
+ 'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way
+ 'gcc_version%': 'unknown',
++ # For a shared library build, results in "libnode.so.<(soname_version)".
++ 'soname_version%': '',
+ 'clang%': 0,
+ 'python%': 'python',
+
--- node-v0.10.3-o/node.gyp 2013-04-03 11:30:57.000000000 -0600
+++ node-v0.10.3/node.gyp 2013-04-03 19:30:22.000000000 -0600
@@ -67,17 +67,35 @@
@@ -53,8 +64,8 @@
+ {
+ 'target_name': 'libnode',
+ 'type': 'shared_library',
-+ 'product_extension': 'so.10',
-+ 'soname_version': '10',
++ 'product_extension': 'so.<(soname_version)',
++ 'soname_version': '<(soname_version)',
+ 'cflags': ['-fPIC'],
+
+ 'sources': [
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nodejs.git/commitdiff/dc60a63b2344846bd4b74501448172e7be0df35f
More information about the pld-cvs-commit
mailing list