[oe] [meta-openwrt][PATCH 5/9] Juci: fix issue extraneous package and missing lessc

Stanley Phoong stanley.cheong.kwan.phoong at intel.com
Mon Jul 17 02:48:07 UTC 2017


From: "Stanley Cheong Kwan, Phoong" <stanley.cheong.kwan.phoong at intel.com>

lessc was missing in the package of node_modules that is required by
Juci recipe. Adding lessc into the recipe also causes extraneous
package error which was caused by npm shrinkwrap which is resolved in
this commit.

Signed-off-by: Stanley Cheong Kwan, Phoong <stanley.cheong.kwan.phoong at intel.com>
---
 recipes-core/juci/juci_git.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/recipes-core/juci/juci_git.bb b/recipes-core/juci/juci_git.bb
index def6a90..dde8f73 100644
--- a/recipes-core/juci/juci_git.bb
+++ b/recipes-core/juci/juci_git.bb
@@ -15,15 +15,19 @@ S = "${WORKDIR}/git"
 
 inherit npm-install
 
-NPM_INSTALL_append = " uglify-js"
+NPM_INSTALL_append = " --save uglify-js less"
 DEPENDS += "jucid lua5.1 grunt-cli-native"
 
 do_compile() {
 	oe_runmake node_modules
 }
 
-do_install_append() {
+do_compile_append(){
         ln -sf ${WORKDIR}/git/node_modules/uglify-js/bin/uglifyjs ${WORKDIR}/recipe-sysroot-native/usr/bin/uglifyjs
+        ln -sf ${WORKDIR}/git/node_modules/less/bin/lessc ${WORKDIR}/recipe-sysroot-native/usr/bin/lessc
+}
+
+do_install_append() {
 	oe_runmake
 	oe_runmake DESTDIR='${D}' install
 }
-- 
2.7.4




More information about the Openembedded-devel mailing list