[packages/nodejs] correct soname, it should be "10", i.e without minor

glen glen at pld-linux.org
Mon Apr 8 09:33:32 CEST 2013


commit f9cee3b67accf4d1ec7340611791eb5d2e658ef0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Apr 8 10:32:37 2013 +0300

    correct soname, it should be "10", i.e without minor

 nodejs-shared.patch | 6 +++---
 nodejs.spec         | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/nodejs.spec b/nodejs.spec
index 9022077..4f8a532 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -122,7 +122,7 @@ rm -rf $RPM_BUILD_ROOT
 # no dtrace on linux
 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/lib/dtrace/node.d
 
-lib=$(basename $RPM_BUILD_ROOT%{_libdir}/libnode.so.*.*)
+lib=$(basename $RPM_BUILD_ROOT%{_libdir}/libnode.so.*.*.*)
 ln -s $lib $RPM_BUILD_ROOT%{_libdir}/libnode.so.10
 ln -s $lib $RPM_BUILD_ROOT%{_libdir}/libnode.so
 
diff --git a/nodejs-shared.patch b/nodejs-shared.patch
index 7a1ba91..1089f90 100644
--- a/nodejs-shared.patch
+++ b/nodejs-shared.patch
@@ -53,8 +53,8 @@
 +    {
 +      'target_name': 'libnode',
 +      'type': 'shared_library',
-+      'product_extension': 'so.10.3.0',
-+      'soname_version': '10.3.0',
++      'product_extension': 'so.10',
++      'soname_version': '10',
 +      'cflags': ['-fPIC'],
 +
 +      'sources': [
@@ -95,7 +95,7 @@
  def files(action):
 +  global lib_dir
    action(['out/Release/node'], 'bin/node')
-+  action(['out/Release/lib.target/libnode.so.10.3.0'], lib_dir + '/libnode.so.10.3.0')
++  action(['out/Release/lib.target/libnode.so.10'], lib_dir + '/libnode.so.10.3.0')
  
    # install unconditionally, checking if the platform supports dtrace doesn't
    # work when cross-compiling and besides, there's at least one linux flavor
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs.git/commitdiff/f9cee3b67accf4d1ec7340611791eb5d2e658ef0



More information about the pld-cvs-commit mailing list