Skip to contentSkip to conversation

ruby: disable libruby.so

PATCH In review Alexander Kanavin 2 participants 3 messages Jan 20, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ruby: disable libruby.so

It was found to cause races in make install, as observed in
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14695

[YOCTO #14695]

---
 meta/recipes-devtools/ruby/ruby_3.1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/ruby/ruby_3.1.0.bb +1 -1
index 7183c93d45..128e4527e1 100644
@@ -29,7 +29,7 @@ EXTRA_OECONF = "\
     --disable-versioned-paths \
     --disable-rpath \
     --disable-dtrace \
-    --enable-shared \
+    --disable-shared \
     --enable-load-relative \
     --with-pkg-config=pkg-config \
     --with-static-linked-ext \
Signature · 1 line
2.20.1
#1 lore raw
Quoted 15 lines · Alexander Kanavin

It was found to cause races in make install, as observed in
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14695

[YOCTO #14695]

---
 meta/recipes-devtools/ruby/ruby_3.1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/ruby/ruby_3.1.0.bb +0 -0
index 7183c93d45..128e4527e1 100644

meta/recipes-devtools/ruby/ruby_3.1.0.bb EXTRA_OECONF = "\ · line 35

Quoted 8 lines
meta/recipes-devtools/ruby/ruby_3.1.0.bb +1 -1
@@ -29,7 +29,7 @@ EXTRA_OECONF = "\
     --disable-versioned-paths \
     --disable-rpath \
     --disable-dtrace \
-    --enable-shared \
+    --disable-shared \
     --enable-load-relative \
     --with-pkg-config=pkg-config \
     --with-static-linked-ext \

Disabling shared libraries because there is a makefile bug doesn't seem like the right solution :(.

Better might be disabling parallelism in make install. It raises questions about why it is linking/relinking a library in the install step too of course...

Cheers,

Richard

#2 lore raw
Quoted 8 lines · Richard Purdie

Disabling shared libraries because there is a makefile bug doesn't seem like the
right solution :(.

Better might be disabling parallelism in make install. It raises questions about
why it is linking/relinking a library in the install step too of course...

It's doing this with ruby executable too; seems like make install regenerates something that triggers the relink:

| generating enc.mk

I can try to dig deeper, but upstream isn't even enabling the shared library by default, so they're probably oblivious to the whole thing :-/

Alex