diff options
| author | Samuli Piippo <samuli.piippo@gmail.com> | 2022-11-23 09:39:57 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-11-23 08:25:31 -0800 |
| commit | d7f46fa816964e30edb2ccfecc57a26251cc351c (patch) | |
| tree | 90593d55c25ccc0ca54454fb13f06ba3ccc00ba8 | |
| parent | d5b8082e732902022340ccc858675f27b8310cd6 (diff) | |
| download | meta-openembedded-d7f46fa816964e30edb2ccfecc57a26251cc351c.tar.gz | |
protobuf: stage protoc binary to sysroot
If protoc is enabled for the build, recipes using protobuf will
fail when protoc is not available in the recipe sysroot:
| The imported target "protobuf::protoc" references the file
|
| ".../recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/bin/protoc-3.21.5.0"
|
| but this file does not exist. Possible reasons include:
|
| * The file was deleted, renamed, or moved to another location.
|
| * An install or uninstall procedure did not complete successfully.
|
| * The installation package was faulty and contained
|
| ".../recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/cmake/protobuf/protobuf-targets.cmake"
|
| but not all the files it references.
Use SYSROOT_DIRS to stage the binary to sysroot so it's always
available for other recipes.
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb b/meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb index c8b9158e6c..201908f3c9 100644 --- a/meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb +++ b/meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb | |||
| @@ -92,6 +92,8 @@ PACKAGE_BEFORE_PN = "${PN}-compiler ${PN}-lite" | |||
| 92 | FILES:${PN}-compiler = "${bindir} ${libdir}/libprotoc${SOLIBS}" | 92 | FILES:${PN}-compiler = "${bindir} ${libdir}/libprotoc${SOLIBS}" |
| 93 | FILES:${PN}-lite = "${libdir}/libprotobuf-lite${SOLIBS}" | 93 | FILES:${PN}-lite = "${libdir}/libprotobuf-lite${SOLIBS}" |
| 94 | 94 | ||
| 95 | SYSROOT_DIRS += "${bindir}" | ||
| 96 | |||
| 95 | RDEPENDS:${PN}-compiler = "${PN}" | 97 | RDEPENDS:${PN}-compiler = "${PN}" |
| 96 | RDEPENDS:${PN}-dev += "${PN}-compiler" | 98 | RDEPENDS:${PN}-dev += "${PN}-compiler" |
| 97 | RDEPENDS:${PN}-ptest = "bash ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3-protobuf', '', d)}" | 99 | RDEPENDS:${PN}-ptest = "bash ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3-protobuf', '', d)}" |
