Skip to contentSkip to conversation

recipes-devtools/secure-boot-secrets: Resolve duplicate Provides in debian/control

PATCH In review Rakesh Kumar 3 participants 4 messages Apr 18, 2024 – Apr 19, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes-devtools/secure-boot-secrets: Resolve duplicate Provides in debian/control

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.

---
 recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc +1 -3
index 76233b3..559d295 100644
@@ -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
-}
Signature · 1 line
2.39.2
#1 lore raw
Quoted 27 lines · Rakesh Kumar

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.

---
 recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc +1 -0
index 76233b3..559d295 100644
@@ -12,6 +12,7 @@
 inherit dpkg-raw
 
 PROVIDES += "secure-boot-secrets"
+DEBIAN_PROVIDES = "${PROVIDES}"
 
 SB_KEY ??= ""
 SB_CERT ??= ""

recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc do_install() { · line 34

Quoted 6 lines
recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc +0 -3
@@ -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

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#2 lore raw
Quoted 31 lines · Jan Kiszka via lists.cip-project.org
Quoted 30 lines · Rakesh Kumar

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.

---
  recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)
recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc +1 -0
index 76233b3..559d295 100644
@@ -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
  }
 
Quoted 6 lines

recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc do_install() { · line 34

Quoted 3 lines
recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc +0 -3
-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

Quoted 13 lines

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: [email protected]
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/1405269326/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 38 lines · Quirin Gylstorff via lists.cip-project.org
Quoted 26 lines · Jan Kiszka via lists.cip-project.org
Quoted 25 lines · Rakesh Kumar

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.

---
  recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc | 4 +---

  1 file changed, 1 insertion(+), 3 deletions(-)
recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc +0 -0
index 76233b3..559d295 100644
@@ -12,6 +12,7 @@

  inherit dpkg-raw
  PROVIDES += "secure-boot-secrets"
+DEBIAN_PROVIDES = "${PROVIDES}"
  SB_KEY ??= ""
  SB_CERT ??= ""

recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc +0 -0
@@ -29,6 +30,3 @@ do_install() {
Quoted 8 lines

recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc do_install() { · line 34

Quoted 5 lines

      install -m 0700 ${WORKDIR}/${SB_CERT} ${TARGET}/secure-boot.pem }

recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc +0 -3
-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?

Quoted 1 line

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

Quoted 18 lines

Quirin

Quoted 7 lines

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: [email protected]
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/1405269326/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-