From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Brandon Maier via buildroot <buildroot@buildroot.org>
Cc: Brandon Maier <brandon.maier@collins.com>
Subject: Re: [Buildroot] [PATCH] package/pkg-utils: add 'hash_files' to show-info
Date: Sat, 13 Jul 2024 19:10:01 +0200 [thread overview]
Message-ID: <20240713191001.34a074a8@windsurf> (raw)
In-Reply-To: <20240528152948.86337-1-brandon.maier@collins.com>
Hello Brandon,
Thanks for your patch! Questions/comments below.
On Tue, 28 May 2024 15:29:48 +0000
Brandon Maier via buildroot <buildroot@buildroot.org> wrote:
> Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Could you expand a bit the commit log to describe the motivation for
this change? What are the use-cases?
> diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
> index d1964299af..8970a2a8b9 100644
> --- a/package/pkg-utils.mk
> +++ b/package/pkg-utils.mk
> @@ -176,6 +176,13 @@ define _json-info-pkg-details
> },
> )
> ],
> + "hash_files": [
> + $(foreach f, $($(1)_HASH_FILES),$(call mk-json-str,$(f))$(comma))
> + ],
One thing that isn't that "useful" here is that this is going to list
*all* hash files for that package, not the one hash file that contained
the appropriate hash used to check the package (if there are multiple
hash files).
> + "no_check_hash_for": \
> + $(if $(BR2_DOWNLOAD_FORCE_CHECK_HASHES), \
> + false, \
> + $(if $(filter $($(1)_SOURCE),$(BR_NO_CHECK_HASH_FOR)),true,false)),
Could we have positive logic instead, such as "hash-checked": true?
Also, here you're basing the value of this property solely on whether
<pkg>_SOURCE was hash-checked. But what about <pkg>_PATCH and
<pkg>_EXTRA_DOWNLOADS? So basically this should be true only if all
files in <pkg>_ALL_DOWNLOADS have been hash-checked.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-07-13 17:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-28 15:29 [Buildroot] [PATCH] package/pkg-utils: add 'hash_files' to show-info Brandon Maier via buildroot
2024-07-13 17:10 ` Thomas Petazzoni via buildroot [this message]
2024-07-13 20:12 ` Brandon Maier via buildroot
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=20240713191001.34a074a8@windsurf \
--to=buildroot@buildroot.org \
--cc=brandon.maier@collins.com \
--cc=thomas.petazzoni@bootlin.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