file: add bzip2-replacement-native to DEPENDS to fix sstate issue
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
@@ -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
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 directoryTo 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)Signed-off-by Jan-Simon Moeller <[email protected]>Signed-off-by Richard Purdie <[email protected]>--- 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@@ -784,6 +784,12 @@ def check_sanity_everybuild(status, d): if "." in paths or "./" in paths or "" in paths: status.addresult("PATH contains '.', './' or '' (emptyelement), 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 yourlocal.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')