summaryrefslogtreecommitdiffstats
path: root/patches/npmbox-2.6.1
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2015-07-22 18:36:25 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-07-24 08:28:42 +0200
commitaff97a32e9230719f8cb7d2ae9fa87a59d18fb11 (patch)
treea67c5564b000533790126917089ab73094924c15 /patches/npmbox-2.6.1
parenta01700ded0bd5cafaa03113fe1528c8c1926e1c7 (diff)
downloadptxdist-aff97a32e9230719f8cb7d2ae9fa87a59d18fb11.tar.gz
ptxdist-aff97a32e9230719f8cb7d2ae9fa87a59d18fb11.tar.xz
nodejs: patch npmbox
With the patch for npmbox we enable npmunbox to run npm with --build-from-source option. We use this in the npunbox stage to force the build of released sub packages. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/npmbox-2.6.1')
-rw-r--r--patches/npmbox-2.6.1/0001-npmbox-add-build-from-source-option-to-npmunbox.patch31
-rw-r--r--patches/npmbox-2.6.1/series4
2 files changed, 35 insertions, 0 deletions
diff --git a/patches/npmbox-2.6.1/0001-npmbox-add-build-from-source-option-to-npmunbox.patch b/patches/npmbox-2.6.1/0001-npmbox-add-build-from-source-option-to-npmunbox.patch
new file mode 100644
index 000000000..1e34b0dd3
--- /dev/null
+++ b/patches/npmbox-2.6.1/0001-npmbox-add-build-from-source-option-to-npmunbox.patch
@@ -0,0 +1,31 @@
+From: Michael Grzeschik <m.grzeschik@pengutronix.de>
+Date: Wed, 22 Jul 2015 18:18:59 +0200
+Subject: [PATCH] npmbox: add build from source option to npmunbox
+
+Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
+---
+ lib/node_modules/npmbox/npmunbox.js | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/lib/node_modules/npmbox/npmunbox.js b/lib/node_modules/npmbox/npmunbox.js
+index 66d6ef3..1cdc375 100644
+--- a/lib/node_modules/npmbox/npmunbox.js
++++ b/lib/node_modules/npmbox/npmunbox.js
+@@ -43,6 +43,7 @@ if (args.length<1 || argv.help) {
+ console.log(" -O, -save-optional npm --save-optional swtich.");
+ console.log(" -B, -save-bundle npm --save-bundle swtich.");
+ console.log(" -E, -save-exact npm --save-exact swtich.");
++ console.log(" -b, -build-from-source npm --build-from-source swtich.");
+ console.log("");
+ process.exit(0);
+ }
+@@ -55,7 +56,8 @@ var options = {
+ "save-dev": argv.D || argv["save-dev"] || false,
+ "save-optional": argv.O || argv["save-optional"] || false,
+ "save-bundle": argv.B || argv["save-bundle"] || false,
+- "save-exact": argv.E || argv["save-exact"] || false
++ "save-exact": argv.E || argv["save-exact"] || false,
++ "build-from-source": argv.b || argv["build-from-source"] || false
+ };
+ if (argv.C || argv.prefix) options.prefix = argv.C || argv.prefix;
+
diff --git a/patches/npmbox-2.6.1/series b/patches/npmbox-2.6.1/series
index e69de29bb..0e8cfa98b 100644
--- a/patches/npmbox-2.6.1/series
+++ b/patches/npmbox-2.6.1/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-npmbox-add-build-from-source-option-to-npmunbox.patch
+# 1fc845f15dff1b0b44df5cf3183e8d63 - git-ptx-patches magic