Skip to content

core: check hashes of license files

Yann E. MORIN buildroot 1 version New

Get series with b4
b4 am 20170620152813.GA2892@scaer

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/3] core: check hashes of license files

Thomas, All,

On 2017-06-19 21:32 +0200, Thomas De Schampheleire spake thusly:

Quoted 25 lines

2017-06-19 19:47 GMT+02:00 Yann E. MORIN <[email protected]>:

Quoted 24 lines

On 2017-06-19 22:47 +0530, Rahul Bedarkar spake thusly:

Quoted 12 lines · Yann E. MORIN
Quoted 6 lines

Hello All!

This small series is a proposal to check the hashes of the license files during legal-info, to catch the packages whose license changes but where the text of the new license is in the same file.

Thanks for this series. Checking hashes of the license files during legal-info stage looks logical but we discussed about doing that after downloading sources so that change in license file is noticed early (as a part of build test after version bump).

It is not possible to do at download time. It can only be done after the package has been extracted and patched.

That is why, when you run legal-info on a non-built (but configured) tree, you'll notice that Buildroot extracts and patches the packages before saving their legal-info.

Besides, if one uses the support/scripts/test-pkg script to test the version bump, then legal-info is run by the script.

Quoted 6 lines
Quoted 2 lines

So, I still believe it is better done during legal-info.

Yann, I think Rahul means that the checking of the hashing should be checked as part of the standard 'make pkg' target, whichever subtarget it is, be it -build, -install or what not.

OK, I see.

Still, I believe it is better suited to keep that for during the legal-info step.

Regards,
Yann E. MORIN.

Quoted 16 lines

But, I don't think we should mix such topics: legal info topics should stay in the -legal-info target.
One solution could be to make '-legal-info' part of the standard build process, although it will slow down the build and some/many people will not like that.
An alternative is to split '-legal-info' in two parts:
-legal-info-checks and actual -legal-info. The first part would verify some important things, i.e. presence of valid LICENSE, presence of all files specified in LICENSE_FILES, hash checking on these files. It could be added to the standard 'make pkg' group. The second part would do the actual creation of the manifest, copying the sources, etc. and remains on-demand only.

I don't know what you think of that approach, I'm thinking out loud.

/Thomas

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'