Camera, sensors: switch to main protobuf version#1580
Camera, sensors: switch to main protobuf version#1580ricardosalveti merged 4 commits intoqualcomm-linux:masterfrom
Conversation
|
cc @gkhose-qipl |
|
The problem that led to the exchange between protobuf-camx and protobuf was the library soname versions. I don't see how the proposed solution solves the problem when it comes again without copy the downgraded recipe from meta-oe. Can you explain it please? |
If you take a look at #1491, we had to vendor in the version from meta-oe and change all camera / sensors recipes to use |
I think this will not work because your current protobuf-camx is empty. Therefore, it will not provide the dependencies that are necessary for its users recipes. It seems to me that what you want to do would be easier using a virtual name with PROVIDES/RPROVIDES and flip it by the the backport from meta-oe when it breaks next time: |
The (empty) protobuf-camx recipe will pull in protobuf recipe, adding protobuf library to the sysroot. Then, when building packages, OE will correctly identify packages providing those libs and add them to RDEPENDS.
|
If you say that the OE will correctly provide the RDEPENDS and will not use the protobuf-camx on that, then I take back what I said.
In any case, I still think it's more correct to do this with PROVIDES/RPROVIDES. |
DEPENDS are transitive, so the upstream protobuf libraries will be in sysroot, as @lumag pointed out above. This in turn enables the OE shlib dependency solver to see both the library and its provider to generate RDEPENDS correctly. What you list in DEPENDS has no bearing on RDEPENDS, the shlib code only looks at the sysroot. What you manually list in RDEPENDS does matter, but that's not the case here. |
|
Lets sopose another component/package will need the protobuf-compiler on the target and he needs to add it to his RDEPENDS. How should he do this? Should he use |
Just |
eb76a13 to
88d3356
Compare
The protobuf-compiler is a binary, so no linked. My question is, if it will be necessary on the target image and not at build time. In this case, you need to provide the RDEPENDS manually. |
Ah, I see your point now. |
The CamX and sensors stacks are upgraded to build with the latest protobuf from meta-oe. Keep the protobuf-camx recipe name to ease resolving this situation in future: all CamX and sensors recipes are expected to always depend on the protobuf-camx, while that recipe will either pull in the latest protobuf from meta-oe or provide an implementation required by the proprietary stack. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
This update upgrades sensor binaries from 1.0.6 to 1.0.7, along with updating the code to the latest protobuf version and incorporating the open‑sourced utils from qcom‑sensors‑binaries. Co-developed-by: Bhanu Vivek Matsa <bmasta@qti.qualcomm.com> Signed-off-by: Bhanu Vivek Matsa <bmasta@qti.qualcomm.com> Signed-off-by: Ganesh Khose <gkhose@qti.qualcomm.com> [DB: dropped sensinghub upgrade, not required for upgrading protobuf] Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Update camxlib DEPENDS to use the latest protobuf version instead of the old. Signed-off-by: Ganesh Khose <gkhose@qti.qualcomm.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Update camxlib DEPENDS to use the latest protobuf version instead of the old. Signed-off-by: Ganesh Khose <gkhose@qti.qualcomm.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
88d3356 to
d007c53
Compare
Fixed now. |
f0948f7
into
qualcomm-linux:master
Upgrade sensors and camera binaries to the version which is linked against protobuf version from meta-oe.
This is an alternative to #1571, keeping the protobuf-camx name for the sake of simplifying handling the of binary vs meta-oe handling in future. When the situation repeats there would be no need to switch between protobuf and protobuf-camx anymore.