Skip to contentSkip to conversation

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

PATCH In review Rakesh Kumar 2 participants 3 messages Apr 19, 2024

lore
Share & tools
lore
#0 lore raw

v2 cover 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.

Rakesh Kumar (1):
recipes-devtools/secure-boot-secrets: Resolve duplicate Provides in
debian/control

 recipes-devtools/secure-boot-secrets/secure-boot-secrets.inc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
Signature · 1 line
2.39.2
#1 lore raw

PATCH v2 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 2164b12..00b2a38 100644
@@ -14,6 +14,7 @@ inherit dpkg-raw
 DPKG_ARCH = "all"
 DEBIAN_MULTI_ARCH = "foreign"
 PROVIDES += "secure-boot-secrets"
+DEBIAN_PROVIDES = "${PROVIDES}"
 
 SB_KEY ??= ""
 SB_CERT ??= ""
@@ -31,6 +32,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
#2 lore raw
Quoted 29 lines · Rakesh Kumar via lists.cip-project.org

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 2164b12..00b2a38 100644
@@ -14,6 +14,7 @@ inherit dpkg-raw
  DPKG_ARCH = "all"
  DEBIAN_MULTI_ARCH = "foreign"
  PROVIDES += "secure-boot-secrets"
+DEBIAN_PROVIDES = "${PROVIDES}"
 
  SB_KEY ??= ""
  SB_CERT ??= ""

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

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

cip-core is using 0.10. DEBIAN PROVIDES was introduced with 4d0955547453e4303f1f274354a0fb6558a74fa9 which is after 0.10.

Update ISAR first.

Quirin

Quoted 9 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15698): https://lists.cip-project.org/g/cip-dev/message/15698
Mute This Topic: https://lists.cip-project.org/mt/105616566/1753640
Group Owner: [email protected]
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/1405269326/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-