Hello community, here is the log from the commit of package nodejs for openSUSE:Factory checked in at 2013-04-23 15:17:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nodejs (Old) and /work/SRC/openSUSE:Factory/.nodejs.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nodejs", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/nodejs/nodejs.changes 2013-04-05 07:37:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.nodejs.new/nodejs.changes 2013-04-23 15:17:37.000000000 +0200 @@ -1,0 +2,19 @@ +Sun Apr 21 19:29:22 UTC 2013 - [email protected] + +- always runtime require the exact v8 version that was used + for building, as it breaks binary compatibility quite often + +------------------------------------------------------------------- +Sun Apr 21 10:01:43 UTC 2013 - [email protected] + +- updated to 0.8.23 +- added nodejs-openssl-missing-api.patch: + * provides a macro implementation of EVP_PKEY_id, not present + in openssl 0.9.8j and previous versions. + * required when building for SLE11, which has older openssl. +- added nodejs-v8-deprecated-api.patch: + * allows 0.8 versions of nodejs to use newer v8 versions, which + deprecated (or renamed, in this case) some methods (in 3.15.3) + and subsequently removed them (in 3.16.5). + +------------------------------------------------------------------- Old: ---- node-v0.8.18.tar.gz New: ---- node-v0.8.23.tar.gz nodejs-openssl-missing-api.patch nodejs-v8-deprecated-api.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nodejs.spec ++++++ --- /var/tmp/diff_new_pack.JjM7KC/_old 2013-04-23 15:17:40.000000000 +0200 +++ /var/tmp/diff_new_pack.JjM7KC/_new 2013-04-23 15:17:40.000000000 +0200 @@ -17,7 +17,7 @@ Name: nodejs -Version: 0.8.18 +Version: 0.8.23 Release: 0 Summary: Evented I/O for V8 JavaScript License: MIT @@ -30,11 +30,17 @@ Patch3: node-v0.8.12_missing_include.patch Patch4: node-gyp-addon-gypi.patch Patch5: nodejs-no-v8-headers.patch +Patch6: nodejs-openssl-missing-api.patch +Patch7: nodejs-v8-deprecated-api.patch BuildRequires: curl BuildRequires: gcc-c++ BuildRequires: procps +%if 0%{?suse_version} == 1140 BuildRequires: v8-devel >= 3.7 -Requires: v8 >= 3.7 +%else +BuildRequires: v8-devel >= 3.15.3 +%endif +Requires: %(rpm -q --requires v8-devel | grep libv8) BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: libopenssl-devel @@ -78,6 +84,13 @@ %patch4 -p1 cd - %patch5 +%patch6 + +%if 0%{?suse_version} != 1140 +# nodejs-v8-deprecated-api.patch, only for nodejs 0.8 with v8 >= 3.15.3. +%patch7 +%endif + # Make sure nothing gets included from bundled deps: # We only delete the source and header files, because # the remaining build scripts are still used. ++++++ node-gyp-addon-gypi.patch ++++++ --- /var/tmp/diff_new_pack.JjM7KC/_old 2013-04-23 15:17:40.000000000 +0200 +++ /var/tmp/diff_new_pack.JjM7KC/_new 2013-04-23 15:17:40.000000000 +0200 @@ -55,7 +55,7 @@ index 82de1e6..0e6f76a 100644 --- a/lib/configure.js +++ b/lib/configure.js -@@ -206,26 +206,27 @@ function configure (gyp, argv, callback) { +@@ -202,26 +202,27 @@ function configure (gyp, argv, callback) { // if --target was given, then determine a target version to compile for versionStr = gyp.opts.target log.verbose('get node dir', 'compiling against --target node version: %s', versionStr) @@ -100,7 +100,7 @@ } } -@@ -379,7 +380,8 @@ function configure (gyp, argv, callback) { +@@ -374,7 +375,8 @@ function configure (gyp, argv, callback) { // this logic ported from the old `gyp_addon` python file var gyp_script = path.resolve(__dirname, '..', 'gyp', 'gyp') ++++++ node-v0.8.18.tar.gz -> node-v0.8.23.tar.gz ++++++ /work/SRC/openSUSE:Factory/nodejs/node-v0.8.18.tar.gz /work/SRC/openSUSE:Factory/.nodejs.new/node-v0.8.23.tar.gz differ: char 5, line 1 ++++++ nodejs-openssl-missing-api.patch ++++++ index fe43359..2c8a557 100644 --- src/node_crypto.h +++ src/node_crypto.h @@ -43,6 +43,10 @@ #define EVP_F_EVP_DECRYPTFINAL 101 +#if OPENSSL_VERSION_NUMBER <= 0x009080afL +# define EVP_PKEY_id(pkey) ((pkey)->type) +#endif + namespace node { namespace crypto { ++++++ nodejs-v8-deprecated-api.patch ++++++ index c7fa3eb..cbcf07e 100644 --- src/node_object_wrap.h +++ src/node_object_wrap.h @@ -26,6 +26,11 @@ #include "v8.h" #include <assert.h> +// Required for compatibility between node.js 0.8 (legacy) releases and +// v8 versions after 3.15.3. +#define GetPointerFromInternalField GetAlignedPointerFromInternalField +#define SetPointerInInternalField SetAlignedPointerInInternalField + // Explicitly instantiate some template classes, so we're sure they will be // present in the binary / shared object. There isn't much doubt that they will // be, but MSVC tends to complain about these things. -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
