]> code.ossystems Code Review - openembedded-core.git/commitdiff
ruby: fix DEPENDS append
authorKonrad Weihmann <kweihmann@outlook.com>
Tue, 15 Feb 2022 10:14:32 +0000 (11:14 +0100)
committerSteve Sakoman <steve@sakoman.com>
Mon, 21 Feb 2022 14:52:33 +0000 (04:52 -1000)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8f92444d388d2406be7d317578908975784d3f22)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/ruby/ruby.inc

index bfabe64e7dbe7eb55fc0e9a7c56fe334ecfc5786..a9f42409329e882661aa3209241a462a81605c12 100644 (file)
@@ -15,7 +15,7 @@ LIC_FILES_CHKSUM = "\
 "
 
 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 \