From: <Mikko.Rapeli@bmw.de>
To: <richard.purdie@linuxfoundation.org>
Cc: <sanakazisk19@gmail.com>,
<openembedded-core@lists.openembedded.org>,
<ranjitsinh.rathod@kpit.com>
Subject: Re: [OE-core] [poky][master][PATCHv2] buildhistory.bbclass: Enable exporting more recipe and package data
Date: Wed, 9 Feb 2022 14:27:54 +0000 [thread overview]
Message-ID: <YgPPaRecZGTG2MF9@korppu> (raw)
In-Reply-To: <3909a8bd81a99f80cbcafa66b68c2601b4a2235e.camel@linuxfoundation.org>
On Wed, Feb 09, 2022 at 01:40:22PM +0000, Richard Purdie wrote:
> On Wed, 2022-02-09 at 13:27 +0000, Mikko.Rapeli@bmw.de wrote:
> > Hi,
> >
> > On Wed, Feb 09, 2022 at 12:23:39PM +0000, Richard Purdie wrote:
> > > People have requested changes like this before and I rejected it as I'm worried
> > > that allowing people to customise this code will just fork the project into many
> > > different directions.
> >
> > It's the other way round. There are a lot of needs to extract metadata from
> > build system into something where reports can be generated.
>
> I don't doubt that however buildhistory was written for a specific purpose and
> if we start adding the ability to customise it heavily we lose the ability for
> comparisions to be made, or sstate reuse and so on.
>
> I'm partly channelling the original author's views on this since they had some
> very specific thoughts on this change. I do sometimes wonder if I should
> continue doing that though :/.
Then how should yocto users export CVE_NAME, LICENSE, PN, PV, SRC_URI etc from
the build system to generate SW bill of materials (BOM) for their product
and track progress?
Yes, SPDX can be the other answer but I don't find that human readable or working
out of the box atm.
> > I'd prefer this to be buildhistory as it also tracks progress across releases and
> > versions and custom builds if the setup has been done correctly. If this change isn't
> > going to be accepted, projects need to continue with their custom patches on top of
> > current buildhistory bbclass in poky.
> >
> > > The elif block above illustrates part of my concern since it still isn't scaling
> > > well and just potentially makes every buildhistory output difference (even with
> > > different ordering). There are reasons the data is taken from pkginfo rather
> > > than getVar too and I think this could introduce subtle bugs in the future.
> >
> > The elif block is just for backwards compatibility. Changing the order of fields would
> > be annoying in buildhistory. The new ones will be in alphabetical order so I don't
> > think this is so bad. It is possibly to completely rewrite and simplify buildhistory
> > but this would be annoying for users who actually track the changes.
> >
> > > Which variables are you actually interested in when changing this?
> >
> > LICENSE, CVE_PRODUCT, SRC_URI, MAINTAINER and some project specific variables too.
> > It is very useful to have these tracked in buildhistory git repo where differences
> > between releases can easily be seen.
>
> The trouble is this turns it into a "metadata difference" tool rather than a
> build output difference tool which is different to the design. It also makes it
> much harder to write the buildhistory analysis tool since all of a sudden we're
> dealing with any variable rather than package specific ones and we can no longer
> assume any particular output would be present (and it is no longer just based
> upon packagedata).
What tool or feature from yocto should we use then?
> I guess we can see what others think, but I am concerned about letting people
> remove existing output from it too.
Well buildhistory can have defaults. It can be extended. I don't see your reasons
for limiting the output to a few variables which you care about.
I frequently debug issues by looking at buildhistory data about images, binary
packages and recipes. It is a very useful tool.
-Mikko
next prev parent reply other threads:[~2022-02-09 14:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-09 9:29 [poky][master][PATCHv2] buildhistory.bbclass: Enable exporting more recipe and package data Sana Kazi
2022-02-09 12:23 ` [OE-core] " Richard Purdie
2022-02-09 13:03 ` sana kazi
2022-02-09 13:27 ` Mikko.Rapeli
2022-02-09 13:40 ` Richard Purdie
2022-02-09 14:27 ` Mikko.Rapeli [this message]
2022-02-09 15:34 ` Richard Purdie
2022-02-11 3:49 ` Paul Eggleton
2022-02-11 8:00 ` Mikko.Rapeli
2022-02-11 8:04 ` Jacob Kroon
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=YgPPaRecZGTG2MF9@korppu \
--to=mikko.rapeli@bmw.de \
--cc=openembedded-core@lists.openembedded.org \
--cc=ranjitsinh.rathod@kpit.com \
--cc=richard.purdie@linuxfoundation.org \
--cc=sanakazisk19@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.