[yocto] [OE-core][PATCH] ruby: ensure that .ext/rdoc is gone in compile
Sujith H
sujith.h at gmail.com
Mon Aug 29 05:45:41 PDT 2016
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
+}
--
1.9.1
More information about the yocto
mailing list