[Buildroot] [PATCH 13/16 v5] core/legal-info: generate a hash of all saved files
Yann E. MORIN
yann.morin.1998 at free.fr
Sat Mar 19 23:40:39 UTC 2016
Thomas, All,
On 2016-03-19 16:21 +0100, Thomas Petazzoni spake thusly:
> On Fri, 11 Mar 2016 18:49:26 +0100, Yann E. MORIN wrote:
> > Having a hash of the saved files can be interesting for the recipient to
> > verify the integrity of the files.
> >
> > We remove the warning file earlier, to exclude it from the hash list.
> >
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> > Cc: Luca Ceresoli <luca at lucaceresoli.net>
> > Acked-by: Luca Ceresoli <luca at lucaceresoli.net>
> > Tested-by: Luca Ceresoli <luca at lucaceresoli.net>
>
> It's adding more stuff to the main Makefile (while I'd like to remove
> stuff from that Makefile), for something that is quite specific. But
> OK, I can see the usefulness of this hash file, so:
>
> Acked-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
>
> However, I'm really surprised by this LEGAL_WARNINGS file. It's exactly
> the type of hidden file (like .applied_patches) I don't like. One
> example where it fails badly is if you interrupt "legal-info" in the
> middle. Since the legal-warning and legal-warning-pkg macro only
> concatenate to this file, then at the end of the second,
> non-interrupted, make invocation, you would got some warnings from the
> first run.
Nope, because the very first thing we do for legal-info is to trash the
existing directory before starting to collect any legal-info.
However, I would contend that we should leave that file in place. It is
critical that some stuff could not be saved, so that all-caps file is a
godd indication that something is wrong.
> Why aren't we simply displaying the warnings as we go? Probably because
> they were mixed with some other messages (like the messages about
> download some stuff). But in this case, we can serialize the steps by
> having all the download done first, then all the "aggregation" done, so
> that warnings can be displayed directly without this hidden file.
Yes, we could do that, but I'd still keep the file. Delegate to the user
the responsibility to remove it.
> Of course, this is unrelated to your change, and more a comment for
> Luca.
I can have a look as a follow-up series.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list