All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cogl-1.0.inc: set RDEPENDS_${PN}-dev = ""
@ 2019-07-17  7:48 Adrian Ratiu
  2019-07-17  8:18 ` Kang Kai
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Ratiu @ 2019-07-17  7:48 UTC (permalink / raw)
  To: openembedded-core

${PN}-dev by default depends on ${PN} but in this case ${PN} is empty
by design (FILES_${PN} = "") and is not created, leading to
installation dependency errors like the following:

Collected errors:
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - nothing provides cogl-1.0 = 1.22.2-r0 needed by cogl-1.0-dev-1.22.2-r0.armv7at2hf-neon-imx
 *
 * Solution 1:
 *   - do not ask to install a package providing cogl-1.0-dev

Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
---
 meta/recipes-graphics/cogl/cogl-1.0.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
index 3e392fa5ec..a388023a03 100644
--- a/meta/recipes-graphics/cogl/cogl-1.0.inc
+++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
@@ -75,4 +75,6 @@ RPROVIDES_libcogl = "cogl-1.0"
 RCONFLICTS_libcogl = "cogl-1.0"
 RREPLACES_libcogl = "cogl-1.0"
 
+RDEPENDS_${PN}-dev = ""
+
 COMPATIBLE_HOST_armv4 = 'null'
-- 
2.22.0



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

* Re: [PATCH] cogl-1.0.inc: set RDEPENDS_${PN}-dev = ""
  2019-07-17  7:48 [PATCH] cogl-1.0.inc: set RDEPENDS_${PN}-dev = "" Adrian Ratiu
@ 2019-07-17  8:18 ` Kang Kai
  2019-07-17 10:46   ` Adrian Ratiu
  0 siblings, 1 reply; 4+ messages in thread
From: Kang Kai @ 2019-07-17  8:18 UTC (permalink / raw)
  To: Adrian Ratiu, openembedded-core

On 2019/7/17 下午3:48, Adrian Ratiu wrote:
> ${PN}-dev by default depends on ${PN} but in this case ${PN} is empty
> by design (FILES_${PN} = "") and is not created, leading to
> installation dependency errors like the following:
>
> Collected errors:
>   * Solver encountered 1 problem(s):
>   * Problem 1/1:
>   *   - nothing provides cogl-1.0 = 1.22.2-r0 needed by cogl-1.0-dev-1.22.2-r0.armv7at2hf-neon-imx
>   *
>   * Solution 1:
>   *   - do not ask to install a package providing cogl-1.0-dev


I think what you need is

ALLOW_EMPTY_${PN} = "1"


Regards,
Kai


>
> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
> ---
>   meta/recipes-graphics/cogl/cogl-1.0.inc | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
> index 3e392fa5ec..a388023a03 100644
> --- a/meta/recipes-graphics/cogl/cogl-1.0.inc
> +++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
> @@ -75,4 +75,6 @@ RPROVIDES_libcogl = "cogl-1.0"
>   RCONFLICTS_libcogl = "cogl-1.0"
>   RREPLACES_libcogl = "cogl-1.0"
>   
> +RDEPENDS_${PN}-dev = ""
> +
>   COMPATIBLE_HOST_armv4 = 'null'


-- 
Kai Kang



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

* Re: [PATCH] cogl-1.0.inc: set RDEPENDS_${PN}-dev = ""
  2019-07-17  8:18 ` Kang Kai
@ 2019-07-17 10:46   ` Adrian Ratiu
  2019-07-18  1:31     ` Kang Kai
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Ratiu @ 2019-07-17 10:46 UTC (permalink / raw)
  To: Kang Kai; +Cc: openembedded-core

On Wed, 17 Jul 2019, Kang Kai <Kai.Kang@windriver.com> wrote:
Hi

> On 2019/7/17 下午3:48, Adrian Ratiu wrote: 
>> ${PN}-dev by default depends on ${PN} but in this case ${PN} is 
>> empty by design (FILES_${PN} = "") and is not created, leading 
>> to installation dependency errors like the following: 
>> 
>> Collected errors: 
>>   * Solver encountered 1 problem(s): * Problem 1/1: *   - 
>>   nothing provides cogl-1.0 = 1.22.2-r0 needed by 
>>   cogl-1.0-dev-1.22.2-r0.armv7at2hf-neon-imx * * Solution 1: * 
>>   - do not ask to install a package providing cogl-1.0-dev 
>  
> I think what you need is 
> 
> ALLOW_EMPTY_${PN} = "1"

Why is creating and depending on an empty package better than not 
creating and depending on it at all?

From what I can see in other recipes both methods are used.

>
>
> Regards,
> Kai
>
>
>>
>> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
>> ---
>>   meta/recipes-graphics/cogl/cogl-1.0.inc | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
>> index 3e392fa5ec..a388023a03 100644
>> --- a/meta/recipes-graphics/cogl/cogl-1.0.inc
>> +++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
>> @@ -75,4 +75,6 @@ RPROVIDES_libcogl = "cogl-1.0"
>>   RCONFLICTS_libcogl = "cogl-1.0"
>>   RREPLACES_libcogl = "cogl-1.0"
>>   
>> +RDEPENDS_${PN}-dev = ""
>> +
>>   COMPATIBLE_HOST_armv4 = 'null'
>
>
> -- 
> Kai Kang


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

* Re: [PATCH] cogl-1.0.inc: set RDEPENDS_${PN}-dev = ""
  2019-07-17 10:46   ` Adrian Ratiu
@ 2019-07-18  1:31     ` Kang Kai
  0 siblings, 0 replies; 4+ messages in thread
From: Kang Kai @ 2019-07-18  1:31 UTC (permalink / raw)
  To: Adrian Ratiu; +Cc: openembedded-core

On 2019/7/17 下午6:46, Adrian Ratiu wrote:
> On Wed, 17 Jul 2019, Kang Kai <Kai.Kang@windriver.com> wrote:
> Hi
>
>> On 2019/7/17 下午3:48, Adrian Ratiu wrote:
>>> ${PN}-dev by default depends on ${PN} but in this case ${PN} is 
>>> empty by design (FILES_${PN} = "") and is not created, leading to 
>>> installation dependency errors like the following:
>>> Collected errors:   * Solver encountered 1 problem(s): * Problem 
>>> 1/1: *   -   nothing provides cogl-1.0 = 1.22.2-r0 needed by   
>>> cogl-1.0-dev-1.22.2-r0.armv7at2hf-neon-imx * * Solution 1: *   - do 
>>> not ask to install a package providing cogl-1.0-dev 
>>
>> I think what you need is
>> ALLOW_EMPTY_${PN} = "1"
>
> Why is creating and depending on an empty package better than not 
> creating and depending on it at all?

I thought it is conventional way to solve such dependency issue. After I 
grepped recipes, there are similar solutions there.
So fine with your patch.

Kai


>
>> From what I can see in other recipes both methods are used.
>
>>
>>
>> Regards,
>> Kai
>>
>>
>>>
>>> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
>>> ---
>>>   meta/recipes-graphics/cogl/cogl-1.0.inc | 2 ++
>>>   1 file changed, 2 insertions(+)
>>>
>>> diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc 
>>> b/meta/recipes-graphics/cogl/cogl-1.0.inc
>>> index 3e392fa5ec..a388023a03 100644
>>> --- a/meta/recipes-graphics/cogl/cogl-1.0.inc
>>> +++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
>>> @@ -75,4 +75,6 @@ RPROVIDES_libcogl = "cogl-1.0"
>>>   RCONFLICTS_libcogl = "cogl-1.0"
>>>   RREPLACES_libcogl = "cogl-1.0"
>>>   +RDEPENDS_${PN}-dev = ""
>>> +
>>>   COMPATIBLE_HOST_armv4 = 'null'
>>
>>
>> -- 
>> Kai Kang
>

-- 
Kai Kang



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

end of thread, other threads:[~2019-07-18  1:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-17  7:48 [PATCH] cogl-1.0.inc: set RDEPENDS_${PN}-dev = "" Adrian Ratiu
2019-07-17  8:18 ` Kang Kai
2019-07-17 10:46   ` Adrian Ratiu
2019-07-18  1:31     ` Kang Kai

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.