[nodejs/el6] strip openssl from the tarball; it contains prohibited code (RHBZ#967736) (cherry picked from commit

T.C. Hollingsworth patches at fedoraproject.org
Wed May 29 03:20:52 UTC 2013


commit ebb912a897487c08eccd361eded8839cbd7b8f03
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Tue May 28 20:08:10 2013 -0700

    strip openssl from the tarball; it contains prohibited code (RHBZ#967736)
    (cherry picked from commit 44e85aef7e5f00728f10e287809b01d41e736fa4)

 nodejs.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/nodejs.spec b/nodejs.spec
index 0b66e6d..d075aab 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -9,7 +9,12 @@ URL: http://nodejs.org/
 # Exclusive archs must match v8
 ExclusiveArch: %{ix86} x86_64 %{arm}
 
-Source0: http://nodejs.org/dist/v%{version}/node-v%{version}.tar.gz
+# nodejs bundles openssl, but we use the system version in Fedora
+# because openssl contains prohibited code, we remove openssl completely from
+# the tarball, using the script in Source100
+Source0: node-v%{version}-stripped.tar.gz
+Source100: %{name}-tarball.sh
+
 Source1: macros.nodejs
 Source3: nodejs.prov
 Source4: nodejs.req
@@ -95,9 +100,6 @@ find deps/v8 -name "*.h" -exec rm -f {} \;
 find deps/http_parser -name "*.c" -exec rm -f {} \;
 find deps/http_parser -name "*.h" -exec rm -f {} \;
 
-find deps/openssl -name "*.c" -exec rm -f {} \;
-find deps/openssl -name "*.h" -exec rm -f {} \;
-
 find deps/uv -name "*.c" -exec rm -f {} \;
 find deps/uv -name "*.h" -exec rm -f {} \;
 
@@ -188,6 +190,7 @@ cp -p common.gypi %{buildroot}%{_datadir}/node
 %changelog
 * Wed May 29 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.10.7-1
 - new upstream release 0.10.7
+- strip openssl from the tarball; it contains prohibited code (RHBZ#967736)
 
 * Mon May 06 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.10.5-3
 - nodejs-fixdep: work properly when a package has no dependencies


More information about the scm-commits mailing list