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

Sujith H
2016-08-29T12:47:09Z

From: Christopher Larson <chris_larson@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@mentor.com>
Signed-off-by: Sujith Haridasan <Sujith_Haridasan@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
+}
--
1.9.1