Skip to contentSkip to conversation

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

PATCH In review Sujith H 2 participants 2 messages Aug 29, 2016

lore
Share & tools
lore

Sujith H

author
#0 lore raw

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

From: Christopher Larson <[email protected]>

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.

---
 meta/recipes-devtools/ruby/ruby.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/ruby/ruby.inc +4 -0
index fde67e9..d8f6882 100644
@@ -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
+}
Signature · 1 line
1.9.1
#1 lore raw

Hi Sujith,

Quoted 21 lines · Sujith H

From: Christopher Larson <[email protected]>

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.

---
 meta/recipes-devtools/ruby/ruby.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/ruby/ruby.inc +0 -0
index fde67e9..d8f6882 100644

meta/recipes-devtools/ruby/ruby.inc do_configure_prepend() { · line 43

Quoted 7 lines
meta/recipes-devtools/ruby/ruby.inc +4 -0
@@ -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