Re: [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging

Khem Raj

On Wed, May 11, 2022 at 8:17 AM Jiaqing Zhao
<jiaqing.zhao@...> wrote:

On 2022-05-11 16:14, Julien STEPHAN wrote: and are packaged in ${PN}-dev although
they should be packaged in ${PN}. See poky/meta/conf/bitbake.conf.
This trigger the following error when trying to run the `cam` utility
(packaged inside ${PN}):

$ cam -l
cam: error while loading shared libraries: cannot open shared object file: No such file or directory

$ read-elf -d /usr/bin/cam
Dynamic section at offset 0x2c740 contains 37 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: []
0x0000000000000001 (NEEDED) Shared library: []

So package libcamera is broken and need to be installed along with
libcamera-dev to be functionnal. Fix it by packaging and into ${PN}

Signed-off-by: Julien STEPHAN <jstephan@...>
meta-multimedia/recipes-multimedia/libcamera/ | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/libcamera/ b/meta-multimedia/recipes-multimedia/libcamera/
index 713626069..0b9f3f7a5 100644
--- a/meta-multimedia/recipes-multimedia/libcamera/
+++ b/meta-multimedia/recipes-multimedia/libcamera/
@@ -64,10 +64,10 @@ do_recalculate_ipa_signatures_package() {

FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"
FILES:${PN}-dev += " ${libdir}/"
Maybe this should also be added to be packaged in ${PN}, this should be a link to
.so are normally dev symlinks, so this should be fine as long as it is
not used as unversioned lib.

-FILES:${PN}-dev += " ${libdir}/"
+FILES:${PN} += " ${libdir}/"
FILES:${PN} += " ${libdir}/"
FILES:${PN}-dev += " ${libdir}/"
Also this one

-FILES:${PN}-dev += " ${libdir}/"
+FILES:${PN} += " ${libdir}/"
FILES:${PN} += " ${libdir}/"
FILES:${PN} += " ${libdir}/"
FILES:${PN}-gst = "${libdir}/gstreamer-1.0/"

Join { to automatically receive all group messages.