Skip to contentSkip to conversation

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

PATCH In review Sujith H 2 participants 3 messages Aug 29, 2016 – Aug 31, 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
Quoted 10 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 do_configure_prepend() { · line 43

Quoted 4 lines
meta/recipes-devtools/ruby/ruby.inc +4 -0
+
+do_compile_prepend () {
+    rm -rf .ext/rdoc
+}

The fix may be fixing the symptom and masking a different issue, have you checked when and how the error occurs?

Alex

author
#2 lore raw
Quoted 12 lines · Alexander Kanavin
Quoted 9 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.

Quoted 9 lines

+

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

Quoted 5 lines
meta/recipes-devtools/ruby/ruby.inc +3 -0
+do_compile_prepend () {
+    rm -rf .ext/rdoc
+}

The fix may be fixing the symptom and masking a different issue, have you checked when and how the error occurs?

Sorry for the confusion. We can ignore this patch. I did consulted with Chris regarding the same. Again extremely sorry for confusion.

Quoted 8 lines

Alex
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 7 lines
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
<Project>Contributor to Yocto project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
C-x C-c