diff mbox series

[isar-cip-core,v1,1/1] recipes-devtools/secure-boot-secrets: Resolve duplicate Provides in debian/control

Message ID 20240418110353.584628-1-kumar.rakesh@siemens.com (mailing list archive)
State Superseded
Headers show
Series [isar-cip-core,v1,1/1] recipes-devtools/secure-boot-secrets: Resolve duplicate Provides in debian/control | expand

Commit Message

Rakesh Kumar April 18, 2024, 11:03 a.m. UTC
Previously, the debian/control file contained a duplicate Provides line,
which caused a build failure ad below
| DEBUG: Executing shell function do_dpkg_source
| dpkg-source: error: syntax error in secure-boot-custmpk-0.1/debian/control at line 16:
| duplicate field Provides found

Use DEBIAN_PROVIDES to resolve the duplicate Provides problem to ensure
that the build process completes successfully.

Signed-off-by: Rakesh Kumar <kumar.rakesh@siemens.com>
---
 recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Jan Kiszka April 18, 2024, 8:27 p.m. UTC | #1
On 18.04.24 13:03, Rakesh Kumar wrote:
> Previously, the debian/control file contained a duplicate Provides line,
> which caused a build failure ad below
> | DEBUG: Executing shell function do_dpkg_source
> | dpkg-source: error: syntax error in secure-boot-custmpk-0.1/debian/control at line 16:
> | duplicate field Provides found
> 
> Use DEBIAN_PROVIDES to resolve the duplicate Provides problem to ensure
> that the build process completes successfully.
> 
> Signed-off-by: Rakesh Kumar <kumar.rakesh@siemens.com>
> ---
>  recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc b/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
> index 76233b3..559d295 100644
> --- a/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
> +++ b/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
> @@ -12,6 +12,7 @@
>  inherit dpkg-raw
>  
>  PROVIDES += "secure-boot-secrets"
> +DEBIAN_PROVIDES = "${PROVIDES}"
>  
>  SB_KEY ??= ""
>  SB_CERT ??= ""
> @@ -29,6 +30,3 @@ do_install() {
>      install -m 0700 ${WORKDIR}/${SB_CERT} ${TARGET}/secure-boot.pem
>  }
>  
> -do_prepare_build:append() {
> -    echo "Provides: secure-boot-secrets" >> ${S}/debian/control
> -}

Thanks for finding this. Can expand your patch to cover the other two
cases we have in-tree as well?

Jan
Gylstorff Quirin April 19, 2024, 7:22 a.m. UTC | #2
On 4/18/24 10:27 PM, Jan Kiszka via lists.cip-project.org wrote:
> On 18.04.24 13:03, Rakesh Kumar wrote:
>> Previously, the debian/control file contained a duplicate Provides line,
>> which caused a build failure ad below
>> | DEBUG: Executing shell function do_dpkg_source
>> | dpkg-source: error: syntax error in secure-boot-custmpk-0.1/debian/control at line 16:
>> | duplicate field Provides found
>>
>> Use DEBIAN_PROVIDES to resolve the duplicate Provides problem to ensure
>> that the build process completes successfully.
>>
>> Signed-off-by: Rakesh Kumar <kumar.rakesh@siemens.com>
>> ---
>>   recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc | 4 +---
>>   1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc b/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
>> index 76233b3..559d295 100644
>> --- a/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
>> +++ b/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
>> @@ -12,6 +12,7 @@
>>   inherit dpkg-raw
>>   
>>   PROVIDES += "secure-boot-secrets"
>> +DEBIAN_PROVIDES = "${PROVIDES}"
>>   
>>   SB_KEY ??= ""
>>   SB_CERT ??= ""
>> @@ -29,6 +30,3 @@ do_install() {
>>       install -m 0700 ${WORKDIR}/${SB_CERT} ${TARGET}/secure-boot.pem
>>   }
>>   
>> -do_prepare_build:append() {
>> -    echo "Provides: secure-boot-secrets" >> ${S}/debian/control
>> -}
> 
> Thanks for finding this. Can expand your patch to cover the other two
> cases we have in-tree as well?

This has no impact without updating ISAR first. NACK until then.
Quirin
> 
> Jan
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#15583): https://lists.cip-project.org/g/cip-dev/message/15583
> Mute This Topic: https://lists.cip-project.org/mt/105596040/1753640
> Group Owner: cip-dev+owner@lists.cip-project.org
> Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/1405269326/xyzzy [quirin.gylstorff@siemens.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Gylstorff Quirin April 19, 2024, 7:30 a.m. UTC | #3
On 4/19/24 9:22 AM, Quirin Gylstorff via lists.cip-project.org wrote:
> 
> 
> On 4/18/24 10:27 PM, Jan Kiszka via lists.cip-project.org wrote:
>> On 18.04.24 13:03, Rakesh Kumar wrote:
>>> Previously, the debian/control file contained a duplicate Provides line,
>>> which caused a build failure ad below
>>> | DEBUG: Executing shell function do_dpkg_source
>>> | dpkg-source: error: syntax error in 
>>> secure-boot-custmpk-0.1/debian/control at line 16:
>>> | duplicate field Provides found
>>>
>>> Use DEBIAN_PROVIDES to resolve the duplicate Provides problem to ensure
>>> that the build process completes successfully.
>>>
>>> Signed-off-by: Rakesh Kumar <kumar.rakesh@siemens.com>
>>> ---
>>>   recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc | 4 +---
>>>   1 file changed, 1 insertion(+), 3 deletions(-)
>>>
>>> diff --git 
>>> a/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc 
>>> b/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
>>> index 76233b3..559d295 100644
>>> --- a/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
>>> +++ b/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
>>> @@ -12,6 +12,7 @@
>>>   inherit dpkg-raw
>>>   PROVIDES += "secure-boot-secrets"
>>> +DEBIAN_PROVIDES = "${PROVIDES}"
>>>   SB_KEY ??= ""
>>>   SB_CERT ??= ""
>>> @@ -29,6 +30,3 @@ do_install() {
>>>       install -m 0700 ${WORKDIR}/${SB_CERT} ${TARGET}/secure-boot.pem
>>>   }
>>> -do_prepare_build:append() {
>>> -    echo "Provides: secure-boot-secrets" >> ${S}/debian/control
>>> -}
>>
>> Thanks for finding this. Can expand your patch to cover the other two
>> cases we have in-tree as well?
> 
> This has no impact without updating ISAR first. NACK until then.
We are using 0.10. DEBIAN PROVIDES is introduced with 
4d0955547453e4303f1f274354a0fb6558a74fa9 after 0.10

> Quirin
>>
>> Jan
>>
>>
>>
>>
>>
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#15584): https://lists.cip-project.org/g/cip-dev/message/15584
> Mute This Topic: https://lists.cip-project.org/mt/105596040/1753640
> Group Owner: cip-dev+owner@lists.cip-project.org
> Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/1405269326/xyzzy [quirin.gylstorff@siemens.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc b/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
index 76233b3..559d295 100644
--- a/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
+++ b/recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc
@@ -12,6 +12,7 @@ 
 inherit dpkg-raw
 
 PROVIDES += "secure-boot-secrets"
+DEBIAN_PROVIDES = "${PROVIDES}"
 
 SB_KEY ??= ""
 SB_CERT ??= ""
@@ -29,6 +30,3 @@  do_install() {
     install -m 0700 ${WORKDIR}/${SB_CERT} ${TARGET}/secure-boot.pem
 }
 
-do_prepare_build:append() {
-    echo "Provides: secure-boot-secrets" >> ${S}/debian/control
-}