]> code.ossystems Code Review - openembedded-core.git/commitdiff
ruby: correctly set native/target dependencies
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sat, 12 Feb 2022 06:32:50 +0000 (07:32 +0100)
committerSteve Sakoman <steve@sakoman.com>
Mon, 21 Feb 2022 14:50:32 +0000 (04:50 -1000)
In particular libffi was missing from native, which
led to linking with host libffi instead.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 293c9f879252a814107579542e8fca9af9dde599)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/ruby/ruby.inc

index 7b6d4edc61e45b1c3697dc39abf4363d24e3fed6..bfabe64e7dbe7eb55fc0e9a7c56fe334ecfc5786 100644 (file)
@@ -14,8 +14,8 @@ LIC_FILES_CHKSUM = "\
     file://LEGAL;md5=2b6d62dc0d608f34d510ca3f428110ec \
 "
 
-DEPENDS = "ruby-native zlib openssl libyaml gdbm readline libffi"
-DEPENDS_class-native = "openssl-native libyaml-native readline-native zlib-native"
+DEPENDS = "zlib openssl libyaml gdbm readline libffi"
+DEPENDS_class-target_append = " 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 \