From: Claudius Heine <claudius.heine.ext@siemens.com>
To: Quirin Gylstorff <quirin.gylstorff@siemens.com>,
isar-users@googlegroups.com
Subject: Re: [PATCH v3] meta/classes: generate bill of material from image
Date: Mon, 12 Aug 2019 11:57:24 +0200 [thread overview]
Message-ID: <298c42ee-7882-6406-b4c1-a7a80ac9ab11@siemens.com> (raw)
In-Reply-To: <3221bfdb-641b-7e54-3fb5-1facbf6e5585@siemens.com>
On 12/08/2019 11.09, Quirin Gylstorff wrote:
>
>
> On 8/12/19 10:04 AM, Claudius Heine wrote:
>> Hi Quirin,
>>
>> On 09/08/2019 12.30, [ext] Q. Gylstorff wrote:
>>> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>>
>>> To create products it is necessary to have a list
>>> of used packages for clearance and to security monitoring.
>>> To get a simple list of packages use dpkg-query and generate
>>> a list with the following pattern:
>>>
>>> source name| source version | binary package name | binary version
>>>
>>> The list is stored in ${IMAGE_FULLNAME}.rootfs.manifest
>>>
>>> Remove the feature with:
>>> ROOTFS_FEATURES_remove = "generate-manifest"
>>>
>>> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>> ---
>>> Changes:
>>> v3:
>>> Add list of manifest for buildchroot manifest
>>> This list can be exdent to add additional output generators
>>> v2:
>>> use FEATURE instead of own variable
>>>
>>> .../image-package-list-extension.bbclass | 66 +++++++++++++++++++
>>> meta/classes/image.bbclass | 3 +-
>>> 2 files changed, 68 insertions(+), 1 deletion(-)
>>> create mode 100644 meta/classes/image-package-list-extension.bbclass
>>>
>>> diff --git a/meta/classes/image-package-list-extension.bbclass
>>> b/meta/classes/image-package-list-extension.bbclass
>>> new file mode 100644
>>> index 0000000..11896f1
>>> --- /dev/null
>>> +++ b/meta/classes/image-package-list-extension.bbclass
>>> @@ -0,0 +1,66 @@
>>> +# This software is a part of ISAR.
>>> +# Copyright (C) Siemens AG, 2019
>>> +#
>>> +# SPDX-License-Identifier: MIT
>>> +
>>> +MANIFESTS ?= "target build"
>>> +MANIFEST_build[rootfs] ?= "/var/lib/dpkg"
>>> +MANIFEST_target[rootfs] ?= "${PP_ROOTFS}/var/lib/dpkg"
>>
>> Have you planned additional flags for this?
>>
>> Currently I think that this mechanism is a bit of an overkill for just
>> two variables. But since you touched this now and are the second users
>> of this, I have further comments ;).
>>
>
> One Idea was to add use this to add additional generators. If this is
> not a use case anymore than it is overkill.
From my perspective, having multiple manifest generators in upstream is
not a use-case anyway. I would like just one that covers most of the
common use-cases. What those 'common use-cases' are should probably be
documented somewhere. If CSV fits the bill of those, then I am fine with it.
I just suggested JSON because that might be easier to integrate with
tools I am used to. But I am probably not the person using the manifest
information anyway.
The problem with arguing about the output format is probably that there
is no clear listing of all the use-cases. For instance Gernots remark
that the manifest should be directly importable in Excel was new to me,
but makes sense. I just thought before that the manifest file is further
processed by scripts to generate some human readable documents or
integrate it into a web app or database. In those cases a structured
text serialization format might have been better.
cheers,
Claudius
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de
next prev parent reply other threads:[~2019-08-12 9:57 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-05 14:07 [PATCH] " Q. Gylstorff
2019-08-05 14:37 ` vijai kumar
2019-08-05 14:43 ` Henning Schild
2019-08-05 14:48 ` Jan Kiszka
2019-08-05 15:08 ` Henning Schild
2019-08-05 15:10 ` Jan Kiszka
2019-08-05 15:00 ` Baurzhan Ismagulov
2019-08-06 8:07 ` Claudius Heine
2019-08-06 8:36 ` Baurzhan Ismagulov
2019-08-06 8:47 ` Claudius Heine
2019-08-06 9:03 ` Baurzhan Ismagulov
2019-08-06 10:38 ` Claudius Heine
2019-08-06 8:38 ` Jan Kiszka
2019-08-06 8:48 ` Claudius Heine
2019-08-06 10:51 ` Quirin Gylstorff
2019-08-06 13:55 ` [PATCH v2] " Q. Gylstorff
2019-08-07 7:52 ` Quirin Gylstorff
2019-08-07 7:56 ` Gernot Hillier
2019-08-07 8:01 ` Claudius Heine
2019-08-07 8:08 ` Gernot Hillier
2019-08-07 8:21 ` Claudius Heine
2019-08-07 8:29 ` Gernot Hillier
2019-08-07 10:00 ` Gernot Hillier
2019-08-07 10:59 ` Baurzhan Ismagulov
2019-08-07 11:27 ` Claudius Heine
2019-08-07 12:27 ` Quirin Gylstorff
2019-08-09 10:30 ` [PATCH v3] " Q. Gylstorff
2019-08-12 8:04 ` Claudius Heine
2019-08-12 9:09 ` Quirin Gylstorff
2019-08-12 9:57 ` Claudius Heine [this message]
2019-08-13 8:18 ` [PATCH v4] " Q. Gylstorff
2019-08-13 8:53 ` Claudius Heine
2019-08-13 13:40 ` [PATCH v5] " Q. Gylstorff
2019-09-21 13:02 ` Jan Kiszka
2019-09-23 12:25 ` [PATCH v6] " Q. Gylstorff
2019-09-23 13:51 ` [PATCH v7] " Q. Gylstorff
2019-10-16 12:26 ` Baurzhan Ismagulov
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=298c42ee-7882-6406-b4c1-a7a80ac9ab11@siemens.com \
--to=claudius.heine.ext@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=quirin.gylstorff@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