Skip to contentSkip to conversation

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

PATCH Superseded Rakesh Kumar 2 participants 3 messages Apr 18, 2024 – Apr 19, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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 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
#2 lore raw

Please correct commit message , remove "ad", Moreover ISAR now supports the "DEBIAN_PROVIDES", why can't you directly use this variable to declare virtual packages to satisfy the dependencies.

Many thanks,
Srinu

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Rakesh Kumar via lists.cip-project.org
Sent: 18 April 2024 15:45
To: [email protected]
Cc: Kumar, Rakesh (DI CTO FDS CES LX PBU RSOL 1) <[email protected]>
Subject: [cip-dev] [isar-cip-core][PATCH v1 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 -4
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
-}
--

2.39.2