[oe] [meta-openwrt][PATCH 4/9] Juci: fix uglify-js not found

Khem Raj raj.khem at gmail.com
Mon Jul 17 03:55:23 UTC 2017


On Sun, Jul 16, 2017 at 7:48 PM, Stanley Phoong
<stanley.cheong.kwan.phoong at intel.com> wrote:
> From: "Stanley Cheong Kwan, Phoong" <stanley.cheong.kwan.phoong at intel.com>
>
> uglify-js is not found by the Makefile. This happens due to npm install
> will install into a local node_modules and this would not be reflected
> into recipe-sysroot-native/usr/bin. Added softlink to uglify-js.
>
> Signed-off-by: Stanley Cheong Kwan, Phoong <stanley.cheong.kwan.phoong at intel.com>
> ---
>  recipes-core/juci/juci_git.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/recipes-core/juci/juci_git.bb b/recipes-core/juci/juci_git.bb
> index 6d3d798..def6a90 100644
> --- a/recipes-core/juci/juci_git.bb
> +++ b/recipes-core/juci/juci_git.bb
> @@ -23,6 +23,7 @@ do_compile() {
>  }
>
>  do_install_append() {
> +        ln -sf ${WORKDIR}/git/node_modules/uglify-js/bin/uglifyjs ${WORKDIR}/recipe-sysroot-native/usr/bin/uglifyjs

this should be done by a native recipe. May be a new recipe to install
this would be ok.

>         oe_runmake
>         oe_runmake DESTDIR='${D}' install
>  }
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list