[Pkg-javascript-commits] [node-bluebird] 07/07: Add patch to fix nodejs executable.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Wed Mar 4 22:46:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository node-bluebird.
commit 30df268448d4f9b6bfbe2205edad0bc0c5b1bc4d
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Wed Mar 4 23:11:23 2015 +0100
Add patch to fix nodejs executable.
---
debian/changelog | 1 +
debian/patches/nodejs.patch | 127 ++++++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 129 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 054a7cd..c33be5d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,5 +21,6 @@ node-bluebird (2.9.13+dfsg-1) unstable; urgency=low
- Use capitals in Upstream-Name
- Use upstream author as Upstream-Contact
* Install JavaScript files under js/main/ as specified in package.json.
+ * Add patch to fix nodejs executable.
-- Ross Gammon <rossgammon at mail.dk> Wed, 04 Mar 2015 21:39:49 +0100
diff --git a/debian/patches/nodejs.patch b/debian/patches/nodejs.patch
new file mode 100644
index 0000000..39c2095
--- /dev/null
+++ b/debian/patches/nodejs.patch
@@ -0,0 +1,127 @@
+Description: Switch NodeJS command from node (upstream) to nodejs (Debian).
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/API.md
++++ b/API.md
+@@ -1088,10 +1088,10 @@ fs.readdirAsync(".").map(function(fileNa
+
+ ```bash
+ $ sync && echo 3 > /proc/sys/vm/drop_caches
+-$ node test.js 1
++$ nodejs test.js 1
+ reading files 35ms
+ $ sync && echo 3 > /proc/sys/vm/drop_caches
+-$ node test.js Infinity
++$ nodejs test.js Infinity
+ reading files: 9ms
+ ```
+
+--- a/README.md
++++ b/README.md
+@@ -270,7 +270,7 @@ right after the library is loaded.
+ In node.js use the environment flag `BLUEBIRD_DEBUG`:
+
+ ```
+-BLUEBIRD_DEBUG=1 node server.js
++BLUEBIRD_DEBUG=1 nodejs server.js
+ ```
+
+ to enable long stack traces in all instances of bluebird.
+@@ -450,7 +450,7 @@ Install [node](http://nodejs.org/) and [
+
+ To run all tests, run
+
+- node tools/test
++ nodejs tools/test
+
+ If you need to run generator tests run the `tool/test.js` script with `--harmony` argument and node 0.11+:
+
+@@ -458,7 +458,7 @@ If you need to run generator tests run t
+
+ You may specify an individual test file to run with the `--run` script flag:
+
+- node tools/test --run=cancel.js
++ nodejs tools/test --run=cancel.js
+
+
+ This enables output from the test and may give a better idea where the test is failing. The paramter to `--run` can be any file name located in `test/mocha` folder.
+@@ -467,7 +467,7 @@ This enables output from the test and ma
+
+ To run the test in a browser instead of node, pass the flag `--browser` to the test tool
+
+- node tools/test --run=cancel.js --browser
++ nodejs tools/test --run=cancel.js --browser
+
+ This will automatically create a server (default port 9999) and open it in your default browser once the tests have been compiled.
+
+@@ -545,19 +545,19 @@ Make sure you have cloned the repo somew
+
+ After that you can run:
+
+- node tools/build --features="core"
++ nodejs tools/build --features="core"
+
+
+ The above builds the most minimal build you can get. You can add more features separated by spaces from the above list:
+
+- node tools/build --features="core filter map reduce"
++ nodejs tools/build --features="core filter map reduce"
+
+ The custom build file will be found from `/js/browser/bluebird.js`. It will have a comment that lists the disabled and enabled features.
+
+ Note that the build leaves the `/js/main` etc folders with same features so if you use the folder for node.js at the same time, don't forget to build
+ a full version afterwards (after having taken a copy of the bluebird.js somewhere):
+
+- node tools/build --debug --main --zalgo --browser --minify
++ nodejs tools/build --debug --main --zalgo --browser --minify
+
+ #### Supported options by the build tool
+
+--- a/build
++++ b/build
+@@ -1,2 +1,2 @@
+ #!/usr/bin/env bash
+-node tools/build.js "$@"
++nodejs tools/build.js "$@"
+--- a/package.json
++++ b/package.json
+@@ -18,10 +18,10 @@
+ "fluent interface"
+ ],
+ "scripts": {
+- "lint": "node scripts/jshint.js",
+- "test": "node tools/test.js",
++ "lint": "nodejs scripts/jshint.js",
++ "test": "nodejs tools/test.js",
+ "istanbul": "istanbul",
+- "prepublish": "node tools/build.js --no-debug --main --zalgo --browser --minify"
++ "prepublish": "nodejs tools/build.js --no-debug --main --zalgo --browser --minify"
+ },
+ "homepage": "https://github.com/petkaantonov/bluebird",
+ "repository": {
+--- a/tests
++++ b/tests
+@@ -1,2 +1,2 @@
+ #!/usr/bin/env bash
+-node tools/test.js "$@"
++nodejs tools/test.js "$@"
+--- a/tools/README.md
++++ b/tools/README.md
+@@ -16,4 +16,4 @@ Generates a .jshintrc file in the projec
+
+ Example:
+
+- node tools/jshintrc_generator
++ nodejs tools/jshintrc_generator
+--- a/tools/mocha_runner.js
++++ b/tools/mocha_runner.js
+@@ -103,7 +103,7 @@ module.exports = function mochaRun(progr
+ }).then(function() {
+ function failAdvice(failedTestFileName) {
+ return "For additional details you can run it individually " +
+- " with the command `node tools/test --run=" + failedTestFileName + "`";
++ " with the command `nodejs tools/test --run=" + failedTestFileName + "`";
+ }
+ if (failures.length > 0) {
+ var error;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..81a5e8e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+nodejs.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-bluebird.git
More information about the Pkg-javascript-commits
mailing list