[yocto] [meta][PATCH] ruby: ensure that .ext/rdoc is gone in compile

Maxin B. John maxin.john at intel.com
Mon Aug 29 05:14:49 PDT 2016


Hi Sujith,

On Mon, Aug 29, 2016 at 05:01:52PM +0530, Sujith H wrote:
> From: Christopher Larson <chris_larson at mentor.com>
> 
> rdoc gets unhappy if this already exists, so remove it before building.
> 
> Without this, it's possible to hit this error:
> 
>     Directory .ext/rdoc already exists, but it looks like it isn't an RDoc
>     directory.
> 
> Signed-off-by: Christopher Larson <chris_larson at mentor.com>
> Signed-off-by: Sujith Haridasan <Sujith_Haridasan at mentor.com>
> ---
>  meta/recipes-devtools/ruby/ruby.inc | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/meta/recipes-devtools/ruby/ruby.inc b/meta/recipes-devtools/ruby/ruby.inc
> index fde67e9..d8f6882 100644
> --- a/meta/recipes-devtools/ruby/ruby.inc
> +++ b/meta/recipes-devtools/ruby/ruby.inc
> @@ -37,3 +37,7 @@ do_configure_prepend() {
>      sed -i "s#%%TARGET_CFLAGS%%#$TARGET_CFLAGS#; s#%%TARGET_LDFLAGS%%#$TARGET_LDFLAGS#" ${S}/common.mk
>      rm -rf ${S}/ruby/
>  }
> +
> +do_compile_prepend () {
> +    rm -rf .ext/rdoc
> +}
> -- 

Please send this to oe-core mailing list.

Best Regards,
Maxin



More information about the yocto mailing list