Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id 6108977D3A for ; Mon, 17 Jul 2017 02:48:23 +0000 (UTC) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jul 2017 19:48:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,372,1496127600"; d="scan'208";a="879545978" Received: from phoongst-mobl2.png.intel.com ([10.221.22.197]) by FMSMGA003.fm.intel.com with ESMTP; 16 Jul 2017 19:48:24 -0700 From: Stanley Phoong To: OpenEmbedded Devel Mailing List Date: Mon, 17 Jul 2017 10:48:07 +0800 Message-Id: <1500259691-9782-6-git-send-email-stanley.cheong.kwan.phoong@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500259691-9782-1-git-send-email-stanley.cheong.kwan.phoong@intel.com> References: <1500259691-9782-1-git-send-email-stanley.cheong.kwan.phoong@intel.com> Subject: [meta-openwrt][PATCH 5/9] Juci: fix issue extraneous package and missing lessc X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 02:48:23 -0000 From: "Stanley Cheong Kwan, Phoong" 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 --- 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