All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging
@ 2022-05-11  8:14 Julien STEPHAN
  2022-05-11 15:05 ` [oe] " Khem Raj
  2022-05-11 15:17 ` Jiaqing Zhao
  0 siblings, 2 replies; 6+ messages in thread
From: Julien STEPHAN @ 2022-05-11  8:14 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Julien STEPHAN

libcamera.so.0 and libcamera-base.so.0 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: libcamera.so.0: 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: [libcamera.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libcamera-base.so.0]
[...]

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

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

diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
index 713626069..0b9f3f7a5 100644
--- a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
+++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
@@ -64,10 +64,10 @@ do_recalculate_ipa_signatures_package() {
 
 FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"
 FILES:${PN}-dev += " ${libdir}/libcamera.so"
-FILES:${PN}-dev += " ${libdir}/libcamera.so.0"
+FILES:${PN} += " ${libdir}/libcamera.so.0"
 FILES:${PN} += " ${libdir}/libcamera.so.0.0.0"
 FILES:${PN}-dev += " ${libdir}/libcamera-base.so"
-FILES:${PN}-dev += " ${libdir}/libcamera-base.so.0"
+FILES:${PN} += " ${libdir}/libcamera-base.so.0"
 FILES:${PN} += " ${libdir}/libcamera-base.so.0.0.0"
 FILES:${PN} += " ${libdir}/v4l2-compat.so"
 FILES:${PN}-gst = "${libdir}/gstreamer-1.0/libgstlibcamera.so"
-- 
2.35.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging
  2022-05-11  8:14 [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging Julien STEPHAN
@ 2022-05-11 15:05 ` Khem Raj
  2022-05-11 15:21   ` Julien Stephan
  2022-05-11 15:17 ` Jiaqing Zhao
  1 sibling, 1 reply; 6+ messages in thread
From: Khem Raj @ 2022-05-11 15:05 UTC (permalink / raw)
  To: Julien STEPHAN; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2570 bytes --]

Is this needed on master as well ?

On Wed, May 11, 2022 at 1:16 AM Julien STEPHAN <jstephan@baylibre.com>
wrote:

> libcamera.so.0 and libcamera-base.so.0 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: libcamera.so.0: 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: [libcamera.so.0]
>  0x0000000000000001 (NEEDED)             Shared library:
> [libcamera-base.so.0]
> [...]
>
> So package libcamera is broken and need to be installed along with
> libcamera-dev to be functionnal. Fix it by packaging libcamera.so.0 and
> libcamera-base.so.0 into ${PN}
>
> Signed-off-by: Julien STEPHAN <jstephan@baylibre.com>
> ---
>  meta-multimedia/recipes-multimedia/libcamera/libcamera.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> index 713626069..0b9f3f7a5 100644
> --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> @@ -64,10 +64,10 @@ do_recalculate_ipa_signatures_package() {
>
>  FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"
>  FILES:${PN}-dev += " ${libdir}/libcamera.so"
> -FILES:${PN}-dev += " ${libdir}/libcamera.so.0"
> +FILES:${PN} += " ${libdir}/libcamera.so.0"
>  FILES:${PN} += " ${libdir}/libcamera.so.0.0.0"
>  FILES:${PN}-dev += " ${libdir}/libcamera-base.so"
> -FILES:${PN}-dev += " ${libdir}/libcamera-base.so.0"
> +FILES:${PN} += " ${libdir}/libcamera-base.so.0"
>  FILES:${PN} += " ${libdir}/libcamera-base.so.0.0.0"
>  FILES:${PN} += " ${libdir}/v4l2-compat.so"
>  FILES:${PN}-gst = "${libdir}/gstreamer-1.0/libgstlibcamera.so"
> --
> 2.35.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#97034):
> https://lists.openembedded.org/g/openembedded-devel/message/97034
> Mute This Topic: https://lists.openembedded.org/mt/91031240/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 4012 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging
  2022-05-11  8:14 [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging Julien STEPHAN
  2022-05-11 15:05 ` [oe] " Khem Raj
@ 2022-05-11 15:17 ` Jiaqing Zhao
  2022-05-11 15:19   ` Khem Raj
  1 sibling, 1 reply; 6+ messages in thread
From: Jiaqing Zhao @ 2022-05-11 15:17 UTC (permalink / raw)
  To: Julien STEPHAN, openembedded-devel

On 2022-05-11 16:14, Julien STEPHAN wrote:
> libcamera.so.0 and libcamera-base.so.0 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: libcamera.so.0: 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: [libcamera.so.0]
>  0x0000000000000001 (NEEDED)             Shared library: [libcamera-base.so.0]
> [...]
> 
> So package libcamera is broken and need to be installed along with
> libcamera-dev to be functionnal. Fix it by packaging libcamera.so.0 and
> libcamera-base.so.0 into ${PN}
> 
> Signed-off-by: Julien STEPHAN <jstephan@baylibre.com>
> ---
>  meta-multimedia/recipes-multimedia/libcamera/libcamera.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> index 713626069..0b9f3f7a5 100644
> --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> @@ -64,10 +64,10 @@ do_recalculate_ipa_signatures_package() {
>  
>  FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"
>  FILES:${PN}-dev += " ${libdir}/libcamera.so"

Maybe this should also be added to be packaged in ${PN}, this should be a link to libcamera.so.0.0.0

> -FILES:${PN}-dev += " ${libdir}/libcamera.so.0"
> +FILES:${PN} += " ${libdir}/libcamera.so.0"
>  FILES:${PN} += " ${libdir}/libcamera.so.0.0.0"
>  FILES:${PN}-dev += " ${libdir}/libcamera-base.so"

Also this one

> -FILES:${PN}-dev += " ${libdir}/libcamera-base.so.0"
> +FILES:${PN} += " ${libdir}/libcamera-base.so.0"
>  FILES:${PN} += " ${libdir}/libcamera-base.so.0.0.0"
>  FILES:${PN} += " ${libdir}/v4l2-compat.so"
>  FILES:${PN}-gst = "${libdir}/gstreamer-1.0/libgstlibcamera.so"
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#97034): https://lists.openembedded.org/g/openembedded-devel/message/97034
> Mute This Topic: https://lists.openembedded.org/mt/91031240/6787970
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [jiaqing.zhao@linux.intel.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging
  2022-05-11 15:17 ` Jiaqing Zhao
@ 2022-05-11 15:19   ` Khem Raj
  2022-05-11 15:23     ` Julien Stephan
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2022-05-11 15:19 UTC (permalink / raw)
  To: Jiaqing Zhao; +Cc: Julien STEPHAN, openembeded-devel

On Wed, May 11, 2022 at 8:17 AM Jiaqing Zhao
<jiaqing.zhao@linux.intel.com> wrote:
>
> On 2022-05-11 16:14, Julien STEPHAN wrote:
> > libcamera.so.0 and libcamera-base.so.0 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: libcamera.so.0: 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: [libcamera.so.0]
> >  0x0000000000000001 (NEEDED)             Shared library: [libcamera-base.so.0]
> > [...]
> >
> > So package libcamera is broken and need to be installed along with
> > libcamera-dev to be functionnal. Fix it by packaging libcamera.so.0 and
> > libcamera-base.so.0 into ${PN}
> >
> > Signed-off-by: Julien STEPHAN <jstephan@baylibre.com>
> > ---
> >  meta-multimedia/recipes-multimedia/libcamera/libcamera.bb | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> > index 713626069..0b9f3f7a5 100644
> > --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> > +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> > @@ -64,10 +64,10 @@ do_recalculate_ipa_signatures_package() {
> >
> >  FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"
> >  FILES:${PN}-dev += " ${libdir}/libcamera.so"
>
> Maybe this should also be added to be packaged in ${PN}, this should be a link to libcamera.so.0.0.0

.so are normally dev symlinks, so this should be fine as long as it is
not used as unversioned lib.

>
> > -FILES:${PN}-dev += " ${libdir}/libcamera.so.0"
> > +FILES:${PN} += " ${libdir}/libcamera.so.0"
> >  FILES:${PN} += " ${libdir}/libcamera.so.0.0.0"
> >  FILES:${PN}-dev += " ${libdir}/libcamera-base.so"
>
> Also this one
>
> > -FILES:${PN}-dev += " ${libdir}/libcamera-base.so.0"
> > +FILES:${PN} += " ${libdir}/libcamera-base.so.0"
> >  FILES:${PN} += " ${libdir}/libcamera-base.so.0.0.0"
> >  FILES:${PN} += " ${libdir}/v4l2-compat.so"
> >  FILES:${PN}-gst = "${libdir}/gstreamer-1.0/libgstlibcamera.so"
> >
> >
> >
> >
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#97037): https://lists.openembedded.org/g/openembedded-devel/message/97037
> Mute This Topic: https://lists.openembedded.org/mt/91031240/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging
  2022-05-11 15:05 ` [oe] " Khem Raj
@ 2022-05-11 15:21   ` Julien Stephan
  0 siblings, 0 replies; 6+ messages in thread
From: Julien Stephan @ 2022-05-11 15:21 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2825 bytes --]

yes I think it should be also ported on master

Le mer. 11 mai 2022 à 17:05, Khem Raj <raj.khem@gmail.com> a écrit :

> Is this needed on master as well ?
>
> On Wed, May 11, 2022 at 1:16 AM Julien STEPHAN <jstephan@baylibre.com>
> wrote:
>
>> libcamera.so.0 and libcamera-base.so.0 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: libcamera.so.0: 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: [libcamera.so.0]
>>  0x0000000000000001 (NEEDED)             Shared library:
>> [libcamera-base.so.0]
>> [...]
>>
>> So package libcamera is broken and need to be installed along with
>> libcamera-dev to be functionnal. Fix it by packaging libcamera.so.0 and
>> libcamera-base.so.0 into ${PN}
>>
>> Signed-off-by: Julien STEPHAN <jstephan@baylibre.com>
>> ---
>>  meta-multimedia/recipes-multimedia/libcamera/libcamera.bb | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
>> b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
>> index 713626069..0b9f3f7a5 100644
>> --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
>> +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
>> @@ -64,10 +64,10 @@ do_recalculate_ipa_signatures_package() {
>>
>>  FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"
>>  FILES:${PN}-dev += " ${libdir}/libcamera.so"
>> -FILES:${PN}-dev += " ${libdir}/libcamera.so.0"
>> +FILES:${PN} += " ${libdir}/libcamera.so.0"
>>  FILES:${PN} += " ${libdir}/libcamera.so.0.0.0"
>>  FILES:${PN}-dev += " ${libdir}/libcamera-base.so"
>> -FILES:${PN}-dev += " ${libdir}/libcamera-base.so.0"
>> +FILES:${PN} += " ${libdir}/libcamera-base.so.0"
>>  FILES:${PN} += " ${libdir}/libcamera-base.so.0.0.0"
>>  FILES:${PN} += " ${libdir}/v4l2-compat.so"
>>  FILES:${PN}-gst = "${libdir}/gstreamer-1.0/libgstlibcamera.so"
>> --
>> 2.35.2
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#97034):
>> https://lists.openembedded.org/g/openembedded-devel/message/97034
>> Mute This Topic: https://lists.openembedded.org/mt/91031240/1997914
>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
>> raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>

[-- Attachment #2: Type: text/html, Size: 4452 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging
  2022-05-11 15:19   ` Khem Raj
@ 2022-05-11 15:23     ` Julien Stephan
  0 siblings, 0 replies; 6+ messages in thread
From: Julien Stephan @ 2022-05-11 15:23 UTC (permalink / raw)
  To: Khem Raj; +Cc: Jiaqing Zhao, openembeded-devel

[-- Attachment #1: Type: text/plain, Size: 3251 bytes --]

Le mer. 11 mai 2022 à 17:20, Khem Raj <raj.khem@gmail.com> a écrit :

> On Wed, May 11, 2022 at 8:17 AM Jiaqing Zhao
> <jiaqing.zhao@linux.intel.com> wrote:
> >
> > On 2022-05-11 16:14, Julien STEPHAN wrote:
> > > libcamera.so.0 and libcamera-base.so.0 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: libcamera.so.0: 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:
> [libcamera.so.0]
> > >  0x0000000000000001 (NEEDED)             Shared library:
> [libcamera-base.so.0]
> > > [...]
> > >
> > > So package libcamera is broken and need to be installed along with
> > > libcamera-dev to be functionnal. Fix it by packaging libcamera.so.0 and
> > > libcamera-base.so.0 into ${PN}
> > >
> > > Signed-off-by: Julien STEPHAN <jstephan@baylibre.com>
> > > ---
> > >  meta-multimedia/recipes-multimedia/libcamera/libcamera.bb | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> > > index 713626069..0b9f3f7a5 100644
> > > --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> > > +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb
> > > @@ -64,10 +64,10 @@ do_recalculate_ipa_signatures_package() {
> > >
> > >  FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"
> > >  FILES:${PN}-dev += " ${libdir}/libcamera.so"
> >
> > Maybe this should also be added to be packaged in ${PN}, this should be
> a link to libcamera.so.0.0.0
>
> .so are normally dev symlinks, so this should be fine as long as it is
> not used as unversioned lib.
>
> yes, agree with you. No need for .so to be in ${PN}

> >
> > > -FILES:${PN}-dev += " ${libdir}/libcamera.so.0"
> > > +FILES:${PN} += " ${libdir}/libcamera.so.0"
> > >  FILES:${PN} += " ${libdir}/libcamera.so.0.0.0"
> > >  FILES:${PN}-dev += " ${libdir}/libcamera-base.so"
> >
> > Also this one
> >
> > > -FILES:${PN}-dev += " ${libdir}/libcamera-base.so.0"
> > > +FILES:${PN} += " ${libdir}/libcamera-base.so.0"
> > >  FILES:${PN} += " ${libdir}/libcamera-base.so.0.0.0"
> > >  FILES:${PN} += " ${libdir}/v4l2-compat.so"
> > >  FILES:${PN}-gst = "${libdir}/gstreamer-1.0/libgstlibcamera.so"
> > >
> > >
> > >
> > >
> > >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#97037):
> https://lists.openembedded.org/g/openembedded-devel/message/97037
> > Mute This Topic: https://lists.openembedded.org/mt/91031240/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>

[-- Attachment #2: Type: text/html, Size: 5225 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-11 15:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11  8:14 [meta-multimedia][kirkstone][PATCH] libcamera: fix packaging Julien STEPHAN
2022-05-11 15:05 ` [oe] " Khem Raj
2022-05-11 15:21   ` Julien Stephan
2022-05-11 15:17 ` Jiaqing Zhao
2022-05-11 15:19   ` Khem Raj
2022-05-11 15:23     ` Julien Stephan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.