Skip to contentSkip to conversation

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

PATCH In review Gregor Zatko 2 participants 2 messages May 24, 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 .

(From OE-Core rev: 4a996574464028bd5d57b90920d0887d1a81e9e9)

---
 meta/classes/sanity.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)
meta/classes/sanity.bbclass +6 -0
index 292c5591dd..e021b9d240 100644
@@ -784,6 +784,12 @@ def check_sanity_everybuild(status, d):
     if "." in paths or "./" in paths or "" in paths:
         status.addresult("PATH contains '.', './' or '' (empty element), which will break the build, please remove this.\nParsed PATH is " + str(paths) + "\n")
 
+    # Check whether 'inherit' directive is found (used for a class to inherit)
+    # in conf file it's supposed to be uppercase INHERIT
+    inherit = d.getVar('inherit')
+    if inherit:
+        status.addresult("Please don't use inherit directive in your local.conf. The directive is supposed to be used in classes and recipes only to inherit of bbclasses. Here INHERIT should be used.\n")
+
     # Check that the DISTRO is valid, if set
     # need to take into account DISTRO renaming DISTRO
     distro = d.getVar('DISTRO')
Signature · 1 line
2.26.2
#1 lore raw
Quoted 16 lines · Gregor Zatko

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 .

Quoted 7 lines

(From OE-Core rev: 4a996574464028bd5d57b90920d0887d1a81e9e9)

---
 meta/classes/sanity.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)

I think you've mixed up two different patches here, merging Jan-Simon's patch with your own inherit one...

Cheers,

Richard

Quoted 24 lines
meta/classes/sanity.bbclass +0 -0
index 292c5591dd..e021b9d240 100644
@@ -784,6 +784,12 @@ def check_sanity_everybuild(status, d):
     if "." in paths or "./" in paths or "" in paths:
         status.addresult("PATH contains '.', './' or '' (empty

element), which will break the build, please remove this.\nParsed PATH is " + str(paths) + "\n")

+ # Check whether 'inherit' directive is found (used for a class
to inherit)

meta/classes/sanity.bbclass +4 -0
+    # in conf file it's supposed to be uppercase INHERIT
+    inherit = d.getVar('inherit')
+    if inherit:
+        status.addresult("Please don't use inherit directive in your

local.conf. The directive is supposed to be used in classes and recipes only to inherit of bbclasses. Here INHERIT should be used.\n")
+
# Check that the DISTRO is valid, if set
# need to take into account DISTRO renaming DISTRO distro = d.getVar('DISTRO')