]> code.ossystems Code Review - openembedded-core.git/commitdiff
ruby: do not parallel install
authorAlexander Kanavin <alex.kanavin@gmail.com>
Fri, 21 Jan 2022 13:47:07 +0000 (14:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 26 Jan 2022 06:25:33 +0000 (06:25 +0000)
ruby's makefiles are rebuilding several items on every invocation,
even if nothing changed, all of which are factored into libruby.so
and cause it to be relinked as well. This does not seem to affect plain
make invocation, but does cause races in make install:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=14695

Rather than figure out how to use make properly and convince upstream
of it, let's just do serial installs and file a bug:

https://bugs.ruby-lang.org/issues/18506

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/ruby/ruby_3.1.0.bb

index 7183c93d45d1a3a473d00b3c6a524e73ee579355..e250164d2c495dabb8ad2c04e227038c1a07b416 100644 (file)
@@ -48,9 +48,7 @@ EXTRA_OECONF:append:libc-musl:riscv32 = "\
     --with-coroutine=copy \
 "
 
-do_install() {
-    oe_runmake 'DESTDIR=${D}' install
-}
+PARALLEL_MAKEINST = ""
 
 do_install:append:class-target () {
     # Find out rbconfig.rb from .installed.list