public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "srinuvasan.a via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: srinuvasan <srinuvasan.a@siemens.com>
Subject: [PATCH] meta-isar/recipes-installer/bmap-tools: add Built-Using field
Date: Tue,  4 Nov 2025 20:14:39 +0530	[thread overview]
Message-ID: <20251104144439.276529-1-srinuvasan.a@siemens.com> (raw)

From: srinuvasan <srinuvasan.a@siemens.com>

Add a Built-Using field to the binary package stanza in the debian/control file,
since it is not provided by the upstream source
This ensures that the original source package reference
is captured in the generated SBOM file.

During the clearance process, we need to provide the original package URL for this custom package
By including the Built-Using field in debian/control,
debsbom can record the corresponding source package information in the SBOM file.

Signed-off-by: srinuvasan <srinuvasan.a@siemens.com>
---
 meta-isar/recipes-installer/bmap-tools/bmap-tools.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-isar/recipes-installer/bmap-tools/bmap-tools.bb b/meta-isar/recipes-installer/bmap-tools/bmap-tools.bb
index 376ab433..537e40ce 100644
--- a/meta-isar/recipes-installer/bmap-tools/bmap-tools.bb
+++ b/meta-isar/recipes-installer/bmap-tools/bmap-tools.bb
@@ -13,9 +13,14 @@ SRC_URI += "file://0001-Fix-path-parameter-passing-error-of-set_psplash_pipe.pat
             file://0002-Fix-_psplash_pipe-part-was-skipped-when-_progress_fi.patch;apply=no"
 
 do_prepare_build:append() {
+    upstream_version=$(dpkg-parsechangelog -l ${S}/debian/changelog -S Version)
+
     deb_add_changelog
 
     cd ${S}
     quilt import -f ${WORKDIR}/*.patch
     quilt push -a
+    # Add Built-Using section
+    grep -q '^Built-Using: bmap-tools' debian/control || \
+        sed -i "/Package: bmap-tools$/a Built-Using: bmap-tools (= ${upstream_version})" debian/control
 }
-- 
2.39.5

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20251104144439.276529-1-srinuvasan.a%40siemens.com.

             reply	other threads:[~2025-11-04 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-04 14:44 srinuvasan.a via isar-users [this message]
2025-11-04 15:54 ` 'Jan Kiszka' via isar-users
2025-11-04 16:19   ` 'Jan Kiszka' via isar-users

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251104144439.276529-1-srinuvasan.a@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=srinuvasan.a@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox