mirror of
https://src.fedoraproject.org/rpms/nodejs18.git
synced 2024-11-24 17:44:23 +00:00
patch Makefile so we can just remove all bundled deps completely
This commit is contained in:
parent
44e85aef7e
commit
3a54e91338
2 changed files with 17 additions and 21 deletions
11
nodejs-disable-gyp-deps.patch
Normal file
11
nodejs-disable-gyp-deps.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- Makefile~ 2013-05-17 13:59:10.000000000 -0700
|
||||||
|
+++ Makefile 2013-05-28 20:09:57.199250068 -0700
|
||||||
|
@@ -43,7 +43,7 @@
|
||||||
|
ln -fs out/Debug/node $@
|
||||||
|
endif
|
||||||
|
|
||||||
|
-out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/common.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
|
||||||
|
+out/Makefile: common.gypi node.gyp config.gypi
|
||||||
|
ifeq ($(USE_NINJA),1)
|
||||||
|
touch out/Makefile
|
||||||
|
$(PYTHON) tools/gyp_node -f ninja
|
27
nodejs.spec
27
nodejs.spec
|
@ -23,6 +23,9 @@ Source5: nodejs-symlink-deps
|
||||||
Source6: nodejs-fixdep
|
Source6: nodejs-fixdep
|
||||||
Source7: nodejs_native.attr
|
Source7: nodejs_native.attr
|
||||||
|
|
||||||
|
# Disable running gyp on bundled deps we don't use
|
||||||
|
Patch1: nodejs-disable-gyp-deps.patch
|
||||||
|
|
||||||
# V8 presently breaks ABI at least every x.y release while never bumping SONAME,
|
# V8 presently breaks ABI at least every x.y release while never bumping SONAME,
|
||||||
# so we need to be more explicit until spot fixes that
|
# so we need to be more explicit until spot fixes that
|
||||||
%global v8_ge 1:3.14.5.7
|
%global v8_ge 1:3.14.5.7
|
||||||
|
@ -79,28 +82,9 @@ The API documentation for the Node.js JavaScript runtime.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n node-v%{version}
|
%setup -q -n node-v%{version}
|
||||||
|
%patch1 -p0
|
||||||
|
|
||||||
# Make sure nothing gets included from bundled deps:
|
rm -rf deps
|
||||||
# We only delete the source and header files, because
|
|
||||||
# the remaining build scripts are still used.
|
|
||||||
|
|
||||||
find deps/cares -name "*.c" -exec rm -f {} \;
|
|
||||||
find deps/cares -name "*.h" -exec rm -f {} \;
|
|
||||||
|
|
||||||
find deps/npm -name "*.c" -exec rm -f {} \;
|
|
||||||
find deps/npm -name "*.h" -exec rm -f {} \;
|
|
||||||
|
|
||||||
find deps/zlib -name "*.c" -exec rm -f {} \;
|
|
||||||
find deps/zlib -name "*.h" -exec rm -f {} \;
|
|
||||||
|
|
||||||
find deps/v8 -name "*.c" -exec rm -f {} \;
|
|
||||||
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/uv -name "*.c" -exec rm -f {} \;
|
|
||||||
find deps/uv -name "*.h" -exec rm -f {} \;
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# build with debugging symbols and add defines from libuv (#892601)
|
# build with debugging symbols and add defines from libuv (#892601)
|
||||||
|
@ -193,6 +177,7 @@ cp -p common.gypi %{buildroot}%{_datadir}/node
|
||||||
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.7-1
|
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.7-1
|
||||||
- new upstream release 0.10.7
|
- new upstream release 0.10.7
|
||||||
- strip openssl from the tarball; it contains prohibited code (RHBZ#967736)
|
- strip openssl from the tarball; it contains prohibited code (RHBZ#967736)
|
||||||
|
- patch Makefile so we can just remove all bundled deps completely
|
||||||
|
|
||||||
* Wed May 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.6-1
|
* Wed May 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.6-1
|
||||||
- new upstream release 0.10.6
|
- new upstream release 0.10.6
|
||||||
|
|
Loading…
Reference in a new issue