[1/2] nghttp2: unbreak do_populate_sdk

Message ID 20220524144924.252281-1-f_l_k@t-online.de
State New
Headers show
Series [1/2] nghttp2: unbreak do_populate_sdk | expand

Commit Message

Markus Volk May 24, 2022, 2:49 p.m. UTC
Error:
 Problem 1: package nghttp2-dev-1.47.0-r0.corei7_64 requires nghttp2 = 1.47.0-r0, but none of the providers can be installed
  - conflicting requests
  - nothing provides nghttp2-client >= 1.47.0 needed by nghttp2-1.47.0-r0.corei7_64
  - nothing provides nghttp2-server >= 1.47.0 needed by nghttp2-1.47.0-r0.corei7_64

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-support/nghttp2/nghttp2_1.47.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Richard Purdie May 31, 2022, 2:21 p.m. UTC | #1
On Tue, 2022-05-24 at 16:49 +0200, Markus Volk wrote:
> Error:
>  Problem 1: package nghttp2-dev-1.47.0-r0.corei7_64 requires nghttp2 = 1.47.0-r0, but none of the providers can be installed
>   - conflicting requests
>   - nothing provides nghttp2-client >= 1.47.0 needed by nghttp2-1.47.0-r0.corei7_64
>   - nothing provides nghttp2-server >= 1.47.0 needed by nghttp2-1.47.0-r0.corei7_64
> 
> Signed-off-by: Markus Volk <f_l_k@t-online.de>
> ---
>  meta/recipes-support/nghttp2/nghttp2_1.47.0.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb b/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb
> index 58ce08084d..051a6e4ecb 100644
> --- a/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb
> +++ b/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb
> @@ -21,7 +21,7 @@ EXTRA_OECMAKE = "-DENABLE_EXAMPLES=OFF -DENABLE_APP=OFF -DENABLE_HPACK_TOOLS=OFF
>  
>  PACKAGES =+ "lib${BPN} ${PN}-client ${PN}-proxy ${PN}-server"
>  
> -RDEPENDS:${PN} = "${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})"
> +RRECOMMENDS:${PN} = "${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})"
>  RDEPENDS:${PN}:class-native = ""
>  RDEPENDS:${PN}-proxy = "openssl python3-core python3-io python3-shell"
>  

I'm not sure this is correct as if the dependencies are incorrect we
shouldn't be making then RRECOMMENDS? What is the real issue here?

Cheers,

Richard
Markus Volk May 31, 2022, 2:52 p.m. UTC | #2
I'm not sure but since this error happened while trying to build 
nativesdk-nghttp2 i think the issue is, that RDEPENDS are removed for 
native but not for nativesdk.

    RDEPENDS:${PN}:class-native = ""

Other possible fixes then should be either to remove them also for nativesdk

    RDEPENDS:${PN}:class-nativesdk = ""

or adding RDEPENDS on client/server for class-target only

    RDEPENDS:${PN}:class-target = "${PN}-client (>= ${PV}) ${PN}-proxy
    (>= ${PV}) ${PN}-server (>= ${PV})"


Markus


Am 31.05.22 um 16:21 schrieb richard.purdie@linuxfoundation.org:
> On Tue, 2022-05-24 at 16:49 +0200, Markus Volk wrote:
>> Error:
>>   Problem 1: package nghttp2-dev-1.47.0-r0.corei7_64 requires nghttp2 = 1.47.0-r0, but none of the providers can be installed
>>    - conflicting requests
>>    - nothing provides nghttp2-client >= 1.47.0 needed by nghttp2-1.47.0-r0.corei7_64
>>    - nothing provides nghttp2-server >= 1.47.0 needed by nghttp2-1.47.0-r0.corei7_64
>>
>> Signed-off-by: Markus Volk<f_l_k@t-online.de>
>> ---
>>   meta/recipes-support/nghttp2/nghttp2_1.47.0.bb | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb b/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb
>> index 58ce08084d..051a6e4ecb 100644
>> --- a/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb
>> +++ b/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb
>> @@ -21,7 +21,7 @@ EXTRA_OECMAKE = "-DENABLE_EXAMPLES=OFF -DENABLE_APP=OFF -DENABLE_HPACK_TOOLS=OFF
>>   
>>   PACKAGES =+ "lib${BPN} ${PN}-client ${PN}-proxy ${PN}-server"
>>   
>> -RDEPENDS:${PN} = "${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})"
>> +RRECOMMENDS:${PN} = "${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})"
>>   RDEPENDS:${PN}:class-native = ""
>>   RDEPENDS:${PN}-proxy = "openssl python3-core python3-io python3-shell"
>>   
> I'm not sure this is correct as if the dependencies are incorrect we
> shouldn't be making then RRECOMMENDS? What is the real issue here?
>
> Cheers,
>
> Richard
>
>

Patch

diff --git a/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb b/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb
index 58ce08084d..051a6e4ecb 100644
--- a/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb
+++ b/meta/recipes-support/nghttp2/nghttp2_1.47.0.bb
@@ -21,7 +21,7 @@  EXTRA_OECMAKE = "-DENABLE_EXAMPLES=OFF -DENABLE_APP=OFF -DENABLE_HPACK_TOOLS=OFF
 
 PACKAGES =+ "lib${BPN} ${PN}-client ${PN}-proxy ${PN}-server"
 
-RDEPENDS:${PN} = "${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})"
+RRECOMMENDS:${PN} = "${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})"
 RDEPENDS:${PN}:class-native = ""
 RDEPENDS:${PN}-proxy = "openssl python3-core python3-io python3-shell"