From: Gregory CLEMENT <gregory.clement@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/5] Extend pkg-stats to replace cve-checker
Date: Fri, 06 Nov 2020 15:59:35 +0100 [thread overview]
Message-ID: <874km28rag.fsf@BL-laptop> (raw)
In-Reply-To: <20201105163024.1387248-1-thomas.petazzoni@bootlin.com>
Hello Thomas,
> Hello,
>
> We recently introduced cve-checker (commit
> fafa3e4e293faabc0d38a714eb88a25252936a99). But thinking more about it,
> what it does is in fact very similar to pkg-stats. It even largely
> borrows from pkg-stats structure and logic.
>
> The main difference is that pkg-stats was originally written as a
> Buildroot maintainer-oriented tool, where the goal is to keep an eye
> on the entire set of Buildroot packages. On the other hand,
> cve-checker was written as a tool mainly for a Buildroot user, to keep
> an eye on the CVEs affecting just the packages currently enabled in
> the current configuration.
>
> So, what this patch series does is extend pkg-stats so that instead of
> producing its output only for all Buildroot packages, it can be done
> just for the set of packages enabled in the current configuration.
Your series looks good and I think it is a good things to finally remove
cve-checker. I introduced cve.py in order to share code between
cve-checker and pkg-stats but in the end there was sill a lot of
duplicate code, and each evolution was really painful, as it was needed
to duplicate it in each script but with very few difference.
Gregory
>
> Here is how it goes:
>
> - PATCH 1 makes pkg-stats usable outside of the Buildroot top-level
> directory. This will be useful to be able to run it from any output
> directory.
>
> - PATCH 2 really allows pkg-satts to generate its details based on
> the set of currently configured packages. This mode is enabled
> using the new -c option.
>
> - PATCH 3 drops cve-checker
>
> - PATCH 4 promotes the pkg-stats functionality as a Makefile
> target. Note that only the "pkg-stats -c" mode is used here: we
> target the use of pkg-stats by Buildroot users, who want results
> based on their configuration. The use of pkg-stats as a maintainer
> tool is different, and we assume maintainers will know how to run
> pkg-stats.
>
> - PATCH 5 adds some mentions of "make show-info" and "make pkg-stats"
> in the Buildroot manual.
>
> Note: I think this series should be merged in master, not in
> next. Indeed, cve-checker is new in 2020.11-rc1, so it would probably
> be a bit silly to release 2020.11 with cve-checker and remove it right
> after.
>
> Thanks,
>
> Thomas
>
> Thomas Petazzoni (5):
> support/scripts/pkg-stats: allow to run script outside of the
> top-level directory
> support/scripts/pkg-stats: support generating stats based on
> configured packages
> support/scripts/cve-checker: remove script
> Makefile: add pkg-stats target
> docs/manual: add some minimal documentation about show-info and
> pkg-stats
>
> Makefile | 9 ++
> docs/manual/common-usage.txt | 23 ++++
> support/scripts/cve-checker | 196 -----------------------------------
> support/scripts/pkg-stats | 48 ++++++---
> 4 files changed, 63 insertions(+), 213 deletions(-)
> delete mode 100755 support/scripts/cve-checker
>
> --
> 2.26.2
>
--
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com
prev parent reply other threads:[~2020-11-06 14:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 16:30 [Buildroot] [PATCH 0/5] Extend pkg-stats to replace cve-checker Thomas Petazzoni
2020-11-05 16:30 ` [Buildroot] [PATCH 1/5] support/scripts/pkg-stats: allow to run script outside of the top-level directory Thomas Petazzoni
2020-11-11 11:05 ` Peter Korsgaard
2020-11-05 16:30 ` [Buildroot] [PATCH 2/5] support/scripts/pkg-stats: support generating stats based on configured packages Thomas Petazzoni
2020-11-11 11:07 ` Peter Korsgaard
2020-11-05 16:30 ` [Buildroot] [PATCH 3/5] support/scripts/cve-checker: remove script Thomas Petazzoni
2020-11-11 11:07 ` Peter Korsgaard
2020-11-05 16:30 ` [Buildroot] [PATCH 4/5] Makefile: add pkg-stats target Thomas Petazzoni
2020-11-11 11:12 ` Peter Korsgaard
2020-11-05 16:30 ` [Buildroot] [PATCH 5/5] docs/manual: add some minimal documentation about show-info and pkg-stats Thomas Petazzoni
2020-11-11 11:12 ` Peter Korsgaard
2020-11-06 14:59 ` Gregory CLEMENT [this message]
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=874km28rag.fsf@BL-laptop \
--to=gregory.clement@bootlin.com \
--cc=buildroot@busybox.net \
/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