Skip to contentSkip to conversation

file: add bzip2-replacement-native to DEPENDS to fix sstate issue

PATCH New Jan-Simon Möller 1 participant 1 message May 21, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 file: add bzip2-replacement-native to DEPENDS to fix sstate issue

From: Jan-Simon Moeller <[email protected]>

file-native when built on a Debian 10 host will embed a dependency to 'libbz2.so.1.0' (instead of 'libbz2.so.1'). This can cause issues when sharing the sstate between hosts e.g.:

recipe-sysroot-native/usr/lib/rpm/rpmdeps:
error while loading shared libraries: libbz2.so.1.0: \
cannot open shared object file: No such file or directory

To avoid this situation, let's add the bzip2-replacement-native to the file recipe's DEPENDS_class-native .

Details in https://bugzilla.yoctoproject.org/show_bug.cgi?id=13915 .

---
 meta/recipes-devtools/file/file_5.38.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/file/file_5.38.bb +1 -1
index b8f09107e8..bd33103b2e 100644
@@ -9,7 +9,7 @@ LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=0251eaec1188b20d9a72c502ecfdda1b"
 
 DEPENDS = "zlib file-replacement-native"
-DEPENDS_class-native = "zlib-native"
+DEPENDS_class-native = "zlib-native bzip2-replacement-native"
 
 SRC_URI = "git://github.com/file/file.git"
 

--
2.26.2