All of lore.kernel.org
 help / color / mirror / Atom feed
* RDEPENDS dependency problem
@ 2017-08-23  8:12 Stefano Pagnottelli
  2017-08-23 18:56 ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Pagnottelli @ 2017-08-23  8:12 UTC (permalink / raw)
  To: yocto

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

Hi to all,

I'm trying to build this layer: (https://github.com/bachp/meta-homeassistant)
using the yocto pyro on a raspberry pi 3 target and the opkg package system.

Inside the recipe (
https://github.com/bachp/meta-homeassistant/blob/master/recipes-homeassistant/homeassistant/python3-homeassistant_0.51.2.bb)
there  are some RDEPENDS with strict equal dependencies (ex:python3-aiohttp
(= 2.2.5)).

We I build the image with the opgk package system the system fail in the
do_rootfs task because is not finding the package python3-aiohttp = 2.2.5..
If I understood correctly this happens because the build system si
appending the recipe revision (PR variable) at end of package name and the
results is  python3-aiohttp_2.2.5-r0 and not python3-aiohttp_2.2.5 as opkg
is expecting.

As workaround I changed all strict = with a >= and the build complete
without errors.

My question is: It's possible to  instruct the build system to ignore the
recipe revision when it match the version of the package? Or in alternative
it's possible to automatically detect the recipe revision of the package?

Thanks in advance
Stefano
…
-- 

There are 10 types of people in this world, those who understand binary and
those who dont

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

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

* Re: RDEPENDS dependency problem
  2017-08-23  8:12 RDEPENDS dependency problem Stefano Pagnottelli
@ 2017-08-23 18:56 ` Khem Raj
  2017-08-24  8:41   ` Stefano Pagnottelli
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2017-08-23 18:56 UTC (permalink / raw)
  To: Stefano Pagnottelli, yocto

On 8/23/17 1:12 AM, Stefano Pagnottelli wrote:
> Hi to all,
> 
> I'm trying to build this layer:
> (https://github.com/bachp/meta-homeassistant) using the yocto pyro on a
> raspberry pi 3 target and the opkg package system.
> 
> Inside the recipe
> (https://github.com/bachp/meta-homeassistant/blob/master/recipes-homeassistant/homeassistant/python3-homeassistant_0.51.2.bb)
> there  are some RDEPENDS with strict equal
> dependencies (ex:python3-aiohttp (= 2.2.5)).
> 
> We I build the image with the opgk package system the system fail in the
> do_rootfs task because is not finding the package python3-aiohttp =
> 2.2.5.. If I understood correctly this happens because the build system
> si appending the recipe revision (PR variable) at end of package name
> and the results is  python3-aiohttp_2.2.5-r0 and not
> python3-aiohttp_2.2.5 as opkg is expecting. 

I dont think r0 is in play here. You can test it by changing dependency
check to look for  (= for 2.2.5-r0), I think it should still fail.

> 
> As workaround I changed all strict = with a >= and the build complete
> without errors. 

this is ok as long as the package can work with newer versions of this
package. I am not sure if thats the case, you might have to check with
authors intent for using = instead of >=

> 
> My question is: It's possible to  instruct the build system to ignore
> the recipe revision when it match the version of the package? Or in
> alternative it's possible to automatically detect the recipe revision of
> the package?
> 
> Thanks in advance
> Stefano
> …
> -- 
> 
> There are 10 types of people in this world, those who understand binary
> and those who dont
> 
> 



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

* Re: RDEPENDS dependency problem
  2017-08-23 18:56 ` Khem Raj
@ 2017-08-24  8:41   ` Stefano Pagnottelli
  2017-08-25  4:53     ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Pagnottelli @ 2017-08-24  8:41 UTC (permalink / raw)
  To: yocto

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

First of all, thanks for your reply.

Il giorno mer 23 ago 2017 alle ore 20:56 Khem Raj <raj.khem@gmail.com> ha
scritto:

> On 8/23/17 1:12 AM, Stefano Pagnottelli wrote:
> > Hi to all,
> >
> > I'm trying to build this layer:
> > (https://github.com/bachp/meta-homeassistant) using the yocto pyro on a
> > raspberry pi 3 target and the opkg package system.
> >
> > Inside the recipe
> > (
> https://github.com/bachp/meta-homeassistant/blob/master/recipes-homeassistant/homeassistant/python3-homeassistant_0.51.2.bb
> )
> > there  are some RDEPENDS with strict equal
> > dependencies (ex:python3-aiohttp (= 2.2.5)).
> >
> > We I build the image with the opgk package system the system fail in the
> > do_rootfs task because is not finding the package python3-aiohttp =
> > 2.2.5.. If I understood correctly this happens because the build system
> > si appending the recipe revision (PR variable) at end of package name
> > and the results is  python3-aiohttp_2.2.5-r0 and not
> > python3-aiohttp_2.2.5 as opkg is expecting.
>
> I dont think r0 is in play here. You can test it by changing dependency
> check to look for  (= for 2.2.5-r0), I think it should still fail.
>

I do some tests of on rdendps on the recipe:

With python3-aiohttp (= 2.2.5-r0) the image is built without problems, with
python3-aiohttp (>= 2.2.5) the image is built without problems, with
python3-aiohttp (= 2.2.5) the task fail with the following error:

Problem 1/1:
  - nothing provides python3-aiohttp = 2.2.5 needed by
python3-homeassistant-0.51.2-r0.cortexa7hf-neon-vfpv4

So it seems to me that know the recipe revision is mandatory if you want to
put a strict dependency on a rdpends. But if I understood correctly the
yocto build system it's not possible to predict the recipe revision because
is automatically computed,  And a change in the recipe will break the
dependency also if the source software version is the same because this
will change the recipe version.


>
> >
> > As workaround I changed all strict = with a >= and the build complete
> > without errors.
>
> this is ok as long as the package can work with newer versions of this
> package. I am not sure if thats the case, you might have to check with
> authors intent for using = instead of >=
>

I think that ,in that case the author is using strict = dependencies
because we are trying to compile a python project that strictly depend
python module with a specific version.  Can be useful to have strict =
dependency in a recipe but it is not mandatory, the project compile well
also with >=.

Regards
Stefano


>
> >
> > My question is: It's possible to  instruct the build system to ignore
> > the recipe revision when it match the version of the package? Or in
> > alternative it's possible to automatically detect the recipe revision of
> > the package?
> >
> > Thanks in advance
> > Stefano
> > …
> > --
> >
> > There are 10 types of people in this world, those who understand binary
> > and those who dont
> >
> >
>
> --

There are 10 types of people in this world, those who understand binary and
those who dont

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

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

* Re: RDEPENDS dependency problem
  2017-08-24  8:41   ` Stefano Pagnottelli
@ 2017-08-25  4:53     ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2017-08-25  4:53 UTC (permalink / raw)
  To: Stefano Pagnottelli; +Cc: yocto

On Thu, Aug 24, 2017 at 1:41 AM, Stefano Pagnottelli
<stefano.pagnottelli@gmail.com> wrote:
> First of all, thanks for your reply.
>
> Il giorno mer 23 ago 2017 alle ore 20:56 Khem Raj <raj.khem@gmail.com> ha
> scritto:
>>
>> On 8/23/17 1:12 AM, Stefano Pagnottelli wrote:
>> > Hi to all,
>> >
>> > I'm trying to build this layer:
>> > (https://github.com/bachp/meta-homeassistant) using the yocto pyro on a
>> > raspberry pi 3 target and the opkg package system.
>> >
>> > Inside the recipe
>> >
>> > (https://github.com/bachp/meta-homeassistant/blob/master/recipes-homeassistant/homeassistant/python3-homeassistant_0.51.2.bb)
>> > there  are some RDEPENDS with strict equal
>> > dependencies (ex:python3-aiohttp (= 2.2.5)).
>> >
>> > We I build the image with the opgk package system the system fail in the
>> > do_rootfs task because is not finding the package python3-aiohttp =
>> > 2.2.5.. If I understood correctly this happens because the build system
>> > si appending the recipe revision (PR variable) at end of package name
>> > and the results is  python3-aiohttp_2.2.5-r0 and not
>> > python3-aiohttp_2.2.5 as opkg is expecting.
>>
>> I dont think r0 is in play here. You can test it by changing dependency
>> check to look for  (= for 2.2.5-r0), I think it should still fail.
>
>
> I do some tests of on rdendps on the recipe:
>
> With python3-aiohttp (= 2.2.5-r0) the image is built without problems, with
> python3-aiohttp (>= 2.2.5) the image is built without problems, with
> python3-aiohttp (= 2.2.5) the task fail with the following error:
>
> Problem 1/1:
>   - nothing provides python3-aiohttp = 2.2.5 needed by
> python3-homeassistant-0.51.2-r0.cortexa7hf-neon-vfpv4
>
> So it seems to me that know the recipe revision is mandatory if you want to
> put a strict dependency on a rdpends. But if I understood correctly the
> yocto build system it's not possible to predict the recipe revision because
> is automatically computed,  And a change in the recipe will break the
> dependency also if the source software version is the same because this will
> change the recipe version.

Yeah ok PV as well as PR both are considered.

>
>>
>>
>> >
>> > As workaround I changed all strict = with a >= and the build complete
>> > without errors.
>>
>> this is ok as long as the package can work with newer versions of this
>> package. I am not sure if thats the case, you might have to check with
>> authors intent for using = instead of >=
>
>
> I think that ,in that case the author is using strict = dependencies because
> we are trying to compile a python project that strictly depend python module
> with a specific version.  Can be useful to have strict = dependency in a
> recipe but it is not mandatory, the project compile well also with >=.
>
> Regards
> Stefano
>
>>
>>
>> >
>> > My question is: It's possible to  instruct the build system to ignore
>> > the recipe revision when it match the version of the package? Or in
>> > alternative it's possible to automatically detect the recipe revision of
>> > the package?
>> >
>> > Thanks in advance
>> > Stefano
>> > …
>> > --
>> >
>> > There are 10 types of people in this world, those who understand binary
>> > and those who dont
>> >
>> >
>>
> --
>
> There are 10 types of people in this world, those who understand binary and
> those who dont
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


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

* RDEPENDS dependency problem
@ 2017-08-22  7:55 Stefano Pagnottelli
  0 siblings, 0 replies; 5+ messages in thread
From: Stefano Pagnottelli @ 2017-08-22  7:55 UTC (permalink / raw)
  To: yocto

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

Hi to all,

I'm trying to build this layer: (https://github.com/bachp/meta-homeassistant)
using the yocto pyro on a raspberry pi 3 target and the opkg package system.

Inside the recipe (
https://github.com/bachp/meta-homeassistant/blob/master/recipes-homeassistant/homeassistant/python3-homeassistant_0.51.2.bb)
there  are some RDEPENDS with strict equal dependencies (ex:python3-aiohttp
(= 2.2.5)).

We I build the image with the opgk package system the system fail in the
do_rootfs task because is not finding the package python3-aiohttp = 2.2.5..
If I understood correctly this happens because the build system si
appending the recipe revision (PR variable) at end of package name and the
results is  python3-aiohttp_2.2.5-r0 and not python3-aiohttp_2.2.5 as opkg
is expecting.

As workaround I changed all strict = with a >= and the build complete
without errors.

My question is: It's possible to  instruct the build system to ignore the
recipe revision when it match the version of the package? Or in alternative
it's possible to automatically detect the recipe revision of the package?

Thanks in advance
Stefano
-- 

There are 10 types of people in this world, those who understand binary and
those who dont

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

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

end of thread, other threads:[~2017-08-25  4:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23  8:12 RDEPENDS dependency problem Stefano Pagnottelli
2017-08-23 18:56 ` Khem Raj
2017-08-24  8:41   ` Stefano Pagnottelli
2017-08-25  4:53     ` Khem Raj
  -- strict thread matches above, loose matches on Subject: below --
2017-08-22  7:55 Stefano Pagnottelli

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.