[nodejs/f18] strip openssl from the tarball; it contains prohibited code (RHBZ#967736)

T.C. Hollingsworth patches at fedoraproject.org
Wed May 29 03:21:13 UTC 2013


commit 44e85aef7e5f00728f10e287809b01d41e736fa4
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)

 nodejs.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/nodejs.spec b/nodejs.spec
index 8d5a42a..e1a2a9a 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
 Source2: nodejs.attr
 Source3: nodejs.prov
@@ -94,9 +99,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 {} \;
 
@@ -190,6 +192,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)
 
 * Wed May 15 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.10.6-1
 - new upstream release 0.10.6


More information about the scm-commits mailing list