From: Elan Ruusamäe Date: Mon, 8 Apr 2013 07:32:37 +0000 (+0300) Subject: correct soname, it should be "10", i.e without minor X-Git-Tag: auto/th/nodejs-0.10.3-4 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=f9cee3b67accf4d1ec7340611791eb5d2e658ef0;p=packages%2Fnodejs.git correct soname, it should be "10", i.e without minor --- 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 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