ruby: fix DEPENDS append

Message ID AM9PR09MB46428E587CC197A200966B8AA8349@AM9PR09MB4642.eurprd09.prod.outlook.com
State Accepted, archived
Commit 8f92444d388d2406be7d317578908975784d3f22
Headers show
Series ruby: fix DEPENDS append | expand

Commit Message

Konrad Weihmann Feb. 15, 2022, 10:14 a.m. UTC
recent change create a blank scope of DEPENDS for class-target,
basically leaving out all general dependencies, leading to the effect
that ruby will be shipped without the runtime dependencies of zlib,
openssl and libffi, making the corresponding gems unusable at runtime.

As the class-target scope should be appended only the correct override
is append:class-target

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
---
 meta/recipes-devtools/ruby/ruby.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-devtools/ruby/ruby.inc b/meta/recipes-devtools/ruby/ruby.inc
index 7cb2181c33..35d3bfd344 100644
--- a/meta/recipes-devtools/ruby/ruby.inc
+++ b/meta/recipes-devtools/ruby/ruby.inc
@@ -14,7 +14,7 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=5b8c87559868796979806100db3f3805 \
                     "
 
 DEPENDS = "zlib openssl libyaml gdbm readline libffi"
-DEPENDS:class-target:append = " ruby-native"
+DEPENDS:append:class-target = " ruby-native"
 
 SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}"
 SRC_URI = "http://cache.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \