[libcamera-devel] README: Fix android dependencies
diff mbox series

Message ID 20210909150137.4011590-1-kieran.bingham@ideasonboard.com
State Accepted
Commit 84acaac8b73ad4740ce0eff45421241f88ea0c7c
Headers show
Series
  • [libcamera-devel] README: Fix android dependencies
Related show

Commit Message

Kieran Bingham Sept. 9, 2021, 3:01 p.m. UTC
While the distribution is unspecified, The README.rst gives
debian/ubuntu named dependencies for all except the android
requirements.

Update the android dependencies to match the others, by showing that the
-dev package is required.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 README.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart Sept. 9, 2021, 3:07 p.m. UTC | #1
Hi Kieran,

Thank you for the patch.

On Thu, Sep 09, 2021 at 04:01:37PM +0100, Kieran Bingham wrote:
> While the distribution is unspecified, The README.rst gives
> debian/ubuntu named dependencies for all except the android
> requirements.
> 
> Update the android dependencies to match the others, by showing that the
> -dev package is required.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> ---
>  README.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/README.rst b/README.rst
> index cf81eca42149..6eb25c708180 100644
> --- a/README.rst
> +++ b/README.rst
> @@ -88,7 +88,7 @@ for tracing with lttng: [optional]
>          liblttng-ust-dev python3-jinja2 lttng-tools
>  
>  for android: [optional]
> -        libexif libjpeg libyaml
> +        libexif-dev libjpeg-dev libyaml-dev

I'm curious to know how you'll use the Android camera HAL on a
Debian-based distribution :-) It's coherent with the rest of the file
though, so

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

>  Using GStreamer plugin
>  ~~~~~~~~~~~~~~~~~~~~~~
Kieran Bingham Sept. 9, 2021, 3:12 p.m. UTC | #2
On 09/09/2021 16:07, Laurent Pinchart wrote:
> Hi Kieran,
> 
> Thank you for the patch.
> 
> On Thu, Sep 09, 2021 at 04:01:37PM +0100, Kieran Bingham wrote:
>> While the distribution is unspecified, The README.rst gives
>> debian/ubuntu named dependencies for all except the android
>> requirements.
>>
>> Update the android dependencies to match the others, by showing that the
>> -dev package is required.
>>
>> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
>> ---
>>  README.rst | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/README.rst b/README.rst
>> index cf81eca42149..6eb25c708180 100644
>> --- a/README.rst
>> +++ b/README.rst
>> @@ -88,7 +88,7 @@ for tracing with lttng: [optional]
>>          liblttng-ust-dev python3-jinja2 lttng-tools
>>  
>>  for android: [optional]
>> -        libexif libjpeg libyaml
>> +        libexif-dev libjpeg-dev libyaml-dev
> 
> I'm curious to know how you'll use the Android camera HAL on a
> Debian-based distribution :-) It's coherent with the rest of the file
> though, so

True ... but I compile test with everything enabled, including Android,
and saw this while trying to dockerise the build so the whole build
environment was specified.

It's mostly the consistency indeed here, as you're right. We wouldn't
normally expect the android HAL to be compiled otherwise.

It even makes me doubt the patch entirely ...

> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
>>  Using GStreamer plugin
>>  ~~~~~~~~~~~~~~~~~~~~~~
>
Paul Elder Sept. 10, 2021, 12:41 a.m. UTC | #3
Hi Kieran,

On Thu, Sep 09, 2021 at 04:01:37PM +0100, Kieran Bingham wrote:
> While the distribution is unspecified, The README.rst gives
> debian/ubuntu named dependencies for all except the android
> requirements.
> 
> Update the android dependencies to match the others, by showing that the
> -dev package is required.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>

> ---
>  README.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/README.rst b/README.rst
> index cf81eca42149..6eb25c708180 100644
> --- a/README.rst
> +++ b/README.rst
> @@ -88,7 +88,7 @@ for tracing with lttng: [optional]
>          liblttng-ust-dev python3-jinja2 lttng-tools
>  
>  for android: [optional]
> -        libexif libjpeg libyaml
> +        libexif-dev libjpeg-dev libyaml-dev
>  
>  Using GStreamer plugin
>  ~~~~~~~~~~~~~~~~~~~~~~
> -- 
> 2.30.2
>
Hirokazu Honda Sept. 10, 2021, 8:25 a.m. UTC | #4
Hi Kieran, thank you for the patch.

On Fri, Sep 10, 2021 at 9:41 AM <paul.elder@ideasonboard.com> wrote:
>
> Hi Kieran,
>
> On Thu, Sep 09, 2021 at 04:01:37PM +0100, Kieran Bingham wrote:
> > While the distribution is unspecified, The README.rst gives
> > debian/ubuntu named dependencies for all except the android
> > requirements.
> >
> > Update the android dependencies to match the others, by showing that the
> > -dev package is required.
> >
> > Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
>
> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
>

I thought the direction was opposite. I would rather drop "-dev" of
other dependencies.
A user shall look for proper packages in their platform for dependencies.
Having "-dev" seems to centralize debian/ubuntu package systems. How
about other distributions..?

-Hiro
> > ---
> >  README.rst | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/README.rst b/README.rst
> > index cf81eca42149..6eb25c708180 100644
> > --- a/README.rst
> > +++ b/README.rst
> > @@ -88,7 +88,7 @@ for tracing with lttng: [optional]
> >          liblttng-ust-dev python3-jinja2 lttng-tools
> >
> >  for android: [optional]
> > -        libexif libjpeg libyaml
> > +        libexif-dev libjpeg-dev libyaml-dev
> >
> >  Using GStreamer plugin
> >  ~~~~~~~~~~~~~~~~~~~~~~
> > --
> > 2.30.2
> >
Laurent Pinchart Sept. 10, 2021, 3 p.m. UTC | #5
Hi Hiro,

On Fri, Sep 10, 2021 at 05:25:42PM +0900, Hirokazu Honda wrote:
> On Fri, Sep 10, 2021 at 9:41 AM <paul.elder@ideasonboard.com> wrote:
> > On Thu, Sep 09, 2021 at 04:01:37PM +0100, Kieran Bingham wrote:
> > > While the distribution is unspecified, The README.rst gives
> > > debian/ubuntu named dependencies for all except the android
> > > requirements.
> > >
> > > Update the android dependencies to match the others, by showing that the
> > > -dev package is required.
> > >
> > > Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> >
> > Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
> 
> I thought the direction was opposite. I would rather drop "-dev" of
> other dependencies.
> A user shall look for proper packages in their platform for dependencies.
> Having "-dev" seems to centralize debian/ubuntu package systems. How
> about other distributions..?

Most of us, and it seems a large part of our users, use Debian-based
distributions (I use Gentoo personally ;-)). I think it would be nice to
list depednencies for other distributions too, if someone wants to
submit a patch. I'm not sure how to best format the data though, we may
need to turn it into a table.

> > > ---
> > >  README.rst | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/README.rst b/README.rst
> > > index cf81eca42149..6eb25c708180 100644
> > > --- a/README.rst
> > > +++ b/README.rst
> > > @@ -88,7 +88,7 @@ for tracing with lttng: [optional]
> > >          liblttng-ust-dev python3-jinja2 lttng-tools
> > >
> > >  for android: [optional]
> > > -        libexif libjpeg libyaml
> > > +        libexif-dev libjpeg-dev libyaml-dev
> > >
> > >  Using GStreamer plugin
> > >  ~~~~~~~~~~~~~~~~~~~~~~
Hirokazu Honda Sept. 10, 2021, 4:07 p.m. UTC | #6
Hi Laurent,

On Sat, Sep 11, 2021 at 12:00 AM Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
>
> Hi Hiro,
>
> On Fri, Sep 10, 2021 at 05:25:42PM +0900, Hirokazu Honda wrote:
> > On Fri, Sep 10, 2021 at 9:41 AM <paul.elder@ideasonboard.com> wrote:
> > > On Thu, Sep 09, 2021 at 04:01:37PM +0100, Kieran Bingham wrote:
> > > > While the distribution is unspecified, The README.rst gives
> > > > debian/ubuntu named dependencies for all except the android
> > > > requirements.
> > > >
> > > > Update the android dependencies to match the others, by showing that the
> > > > -dev package is required.
> > > >
> > > > Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> > >
> > > Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
> >
> > I thought the direction was opposite. I would rather drop "-dev" of
> > other dependencies.
> > A user shall look for proper packages in their platform for dependencies.
> > Having "-dev" seems to centralize debian/ubuntu package systems. How
> > about other distributions..?
>
> Most of us, and it seems a large part of our users, use Debian-based
> distributions (I use Gentoo personally ;-)). I think it would be nice to
> list depednencies for other distributions too, if someone wants to
> submit a patch. I'm not sure how to best format the data though, we may
> need to turn it into a table.
>

I sometimes see the command lines to install dependent packages in
each systems like
Debian/Ubuntu
`apt install ....`
Arch Linux
`pacman -S`

Anyway, I am not against this patch of fixing the consistency.

Reviewed-by: Hirokazu Honda <hiroh@chromium.org>

-Hiro
> > > > ---
> > > >  README.rst | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/README.rst b/README.rst
> > > > index cf81eca42149..6eb25c708180 100644
> > > > --- a/README.rst
> > > > +++ b/README.rst
> > > > @@ -88,7 +88,7 @@ for tracing with lttng: [optional]
> > > >          liblttng-ust-dev python3-jinja2 lttng-tools
> > > >
> > > >  for android: [optional]
> > > > -        libexif libjpeg libyaml
> > > > +        libexif-dev libjpeg-dev libyaml-dev
> > > >
> > > >  Using GStreamer plugin
> > > >  ~~~~~~~~~~~~~~~~~~~~~~
>
> --
> Regards,
>
> Laurent Pinchart
Kieran Bingham Sept. 10, 2021, 4:17 p.m. UTC | #7
On 10/09/2021 17:07, Hirokazu Honda wrote:
> Hi Laurent,
> 
> On Sat, Sep 11, 2021 at 12:00 AM Laurent Pinchart
> <laurent.pinchart@ideasonboard.com> wrote:
>>
>> Hi Hiro,
>>
>> On Fri, Sep 10, 2021 at 05:25:42PM +0900, Hirokazu Honda wrote:
>>> On Fri, Sep 10, 2021 at 9:41 AM <paul.elder@ideasonboard.com> wrote:
>>>> On Thu, Sep 09, 2021 at 04:01:37PM +0100, Kieran Bingham wrote:
>>>>> While the distribution is unspecified, The README.rst gives
>>>>> debian/ubuntu named dependencies for all except the android
>>>>> requirements.
>>>>>
>>>>> Update the android dependencies to match the others, by showing that the
>>>>> -dev package is required.
>>>>>
>>>>> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
>>>>
>>>> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
>>>
>>> I thought the direction was opposite. I would rather drop "-dev" of
>>> other dependencies.
>>> A user shall look for proper packages in their platform for dependencies.
>>> Having "-dev" seems to centralize debian/ubuntu package systems. How
>>> about other distributions..?
>>
>> Most of us, and it seems a large part of our users, use Debian-based
>> distributions (I use Gentoo personally ;-)). I think it would be nice to
>> list depednencies for other distributions too, if someone wants to
>> submit a patch. I'm not sure how to best format the data though, we may
>> need to turn it into a table.
>>
> 
> I sometimes see the command lines to install dependent packages in
> each systems like
> Debian/Ubuntu
> `apt install ....`
> Arch Linux
> `pacman -S`

One of my half baked ideas was to put these dependencies in a table in a
script and allow:

  ./utils/bootstrap-deps.sh gcc cam qcam gstreamer hotplug

or

  ./utils/bootstrap-deps.sh all

which would install the relevant dependencies for those categories.

It's stashed on one of my development branches waiting for some
inspiration or motivation to make it more generic.

If anyone is interested in having a go at continuing it ...
  https://gist.github.com/kbingham/667e2b95acfbbdd726764fcee632c8b0


> Anyway, I am not against this patch of fixing the consistency.
> 
> Reviewed-by: Hirokazu Honda <hiroh@chromium.org>

Thanks, I'd rather merge this for consistency, and if we later decide to
use just the library names adapt then. But somehow we might want to
distinguish between runtime and compile time dependencies if we make it
generic...



> 
> -Hiro
>>>>> ---
>>>>>  README.rst | 2 +-
>>>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>>>
>>>>> diff --git a/README.rst b/README.rst
>>>>> index cf81eca42149..6eb25c708180 100644
>>>>> --- a/README.rst
>>>>> +++ b/README.rst
>>>>> @@ -88,7 +88,7 @@ for tracing with lttng: [optional]
>>>>>          liblttng-ust-dev python3-jinja2 lttng-tools
>>>>>
>>>>>  for android: [optional]
>>>>> -        libexif libjpeg libyaml
>>>>> +        libexif-dev libjpeg-dev libyaml-dev
>>>>>
>>>>>  Using GStreamer plugin
>>>>>  ~~~~~~~~~~~~~~~~~~~~~~
>>
>> --
>> Regards,
>>
>> Laurent Pinchart

Patch
diff mbox series

diff --git a/README.rst b/README.rst
index cf81eca42149..6eb25c708180 100644
--- a/README.rst
+++ b/README.rst
@@ -88,7 +88,7 @@  for tracing with lttng: [optional]
         liblttng-ust-dev python3-jinja2 lttng-tools
 
 for android: [optional]
-        libexif libjpeg libyaml
+        libexif-dev libjpeg-dev libyaml-dev
 
 Using GStreamer plugin
 ~~~~~~~~~~~~~~~~~~~~~~