RFC core/legal-info: fixes, completness and enhancements (branch yem/legal-patch)
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest21 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/21 | package/libecore: do not build anything at patch timepackage/ | +1 | 4 replies | |
| 2/21 | core/legal-info: fix missing double-$package/ | +1 | 2 replies | |
| 3/21 | package/linux-headers: add licensing informationpackage/ | +2 | 2 replies | |
| 4/21 | core/legal-info: allow ignoring packages from the legal-infodocs/ package/ | +12 | 4 replies | |
| 4/21 | core/legal-info: allow ignoring packages from the legal-info | +0 | 1 reply | |
| 4/21 | core/legal-info: allow ignoring packages from the legal-info | +0 | 0 replies | |
| 5/21 | core/pkg-virtual: ignore from legal-info outputpackage/ | +2 | 1 reply | |
| 5/21 | core/pkg-virtual: ignore from legal-info output | +0 | 0 replies | |
| 6/21 | package/gcc: add licensing informationpackage/ | +9 | 1 reply | |
| 6/21 | package/gcc: add licensing information | +0 | 1 reply | |
| 6/21 | package/gcc: add licensing information | +0 | 0 replies | |
| 7/21 | package/gcc: handle licensing informationpackage/ package/ package/ | +17 | 1 reply | |
| 7/21 | package/gcc: handle licensing information | +0 | 0 replies | |
| 8/21 | package/gcc: add a patch for arc rather than using sedpackage/ package/ | +43 | 0 replies | |
| 9/21 | package/gcc: properly extract and patch sourcespackage/ | +15 | 0 replies | |
| 10/21 | package/gcc: make host-gcc a pure host packagepackage/ package/ package/ | +38 | 0 replies | |
| 11/21 | package/gcc: make -initial and -final use sources from host-gccpackage/ package/ package/ | +26 | 0 replies | |
| 12/21 | package/gcc: include the extensa overlay in the legal-info outputpackage/ | +8 | 0 replies | |
| 13/21 | package/perl: include perl-cross in the legal-info outputpackage/ | +7 | 0 replies | |
| 14/21 | core: add a global variable with already-unquoted global patch dirMakefile package/ package/ | +5 | 0 replies | |
| 15/21 | core/pkg-generic: add macro to hardlink-or-copypackage/ | +18 | 1 reply | |
| 16/21 | core/legal-info: use the macro to install source archivespackage/ | +4 | 0 replies | |
| 17/21 | core/legal-info: install source archives in their own sub-dirpackage/ | +3 | 0 replies | |
| 18/21 | core/legal-info: add package version to license directorypackage/ | +2 | 0 replies | |
| 19/21 | core/apply-patches: store full path of applied patchessupport/ | +6 | 0 replies | |
| 20/21 | core/legal-info: also save patchespackage/ | +9 | 0 replies | |
| 21/21 | core/pkg-infra: ensure legal-info works in off-line modepackage/ | +16 | 0 replies |
Reviews trailers per patch
6 of 27 patches have a Reviewed-by or Acked-by.
| Patch | Thomas Petazzoni | Romain Naour | Arnout Vandecappelle (Essensium/Mind) |
|---|---|---|---|
| 1/21 | R-b | R-b | |
| 2/21 | R-b T-b | ||
| 3/21 | A-b | ||
| 4/21 | R-b | ||
| 4/21 | R-b | ||
| 4/21 | R-b | ||
| 5/21 | |||
| 5/21 | |||
| 6/21 | |||
| 6/21 | |||
| 6/21 | |||
| 7/21 | |||
| 7/21 | |||
| 8/21 | |||
| 9/21 | |||
| 10/21 | |||
| 11/21 | |||
| 12/21 | |||
| 13/21 | |||
| 14/21 | |||
| 15/21 | |||
| 16/21 | |||
| 17/21 | |||
| 18/21 | |||
| 19/21 | |||
| 20/21 | |||
| 21/21 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [Buildroot] [PATCH 0/21 RFC] core/legal-info: fixes, completness and enhancements (branch yem/legal-patch)
Hello All!
This series introduces core changs in how we handle the legal-info for various packages.
The underlying reason for this series is that our legal-info content is far from being complete. Most notably, the patches applied to packages are not part of the legal-info output.
We do highly suggest users do redistribute Buildroot as part of their compliance delivery, so the patches we bundle would be part of that compliance deilvery.
However, patches that are downloaded or (most importantly) patches that come from a global patch directory would be missing from that compliance delivery.
The series starts with minor fixes to libecore and the legal-info infra, and with adding licensing information to the Linux headers.
Then we add a new keyword to the _REDISTRIBUTE variable, so a package can be completely ignored from the legal-info ouput (no source saved, not license file saved, not listed in the manifest). Virtual packages are forcibly set to be ignored that way.
Along the process of adding patches to the legal-info output, there was an opportunity to cleanup and enhance the gcc package wrt. legal-info. It was discovered that our legal-info for gcc was (besides the patches) incomplete, as the Xtensa overlay was not saved. So, we took the burden of cleaning, fixing and enhancing the gcc package:
- have the same source tree for initial and final steps,
- only extract sources once,
- make the gcc package pure host packages,
- add licensing information,
- save the Xtensa overlay to the legal-info output.
Still side-tracked with all those changes, we fix the perl package to also save the perl-cross sources in the legal-info putput.
Then, back to the legal-info infra, further changes allow saving the patches alongside the source archives:
- archives are saved in a subdirectory named package-version rarther than all in the same directory,
- the directory where the kicense files are stores are also named similarly, for consistency, rather than with ust the name of the package,
- patches ar eeventually saved alongside the corrsponding archive,
- eventually, legal-info is made to work in full-offline mode.
Notes:
- we considered saving the full content of _ALL_DOWNLOADS or just the content of _EXTRA_DOWNLOADS, but that does not play well with pre-configued toolchains, which use _EXTRA_DOWNLOAD to doenload additional tarballs with more binary stuff in there (sysroots), so it does not make sense to include those in the legal-info output. Since_ALL_DOWNLOADS also contains _EXTRA_DOWNLOADS, we can't use it either. Those are to be handled manually in post-legal-info hooks;
- there might be other packages for which we are not saving 'extra' stuff, but they can be fixed (with post-legal-info hooks) in followup patches.
Regards,
Yann E. MORIN.
The following changes since commit 5f2cd8f5ecd7d035f00664c604fd8bfd5f1afcb8:
lua-periphery: fix build on Sparc/Sparc64 (2015-11-16 23:19:27 +0100)
are available in the git repository at:
git://git.busybox.net/~ymorin/git/buildroot yem/legal-patch
for you to fetch changes up to 0aa743543356cbe19450b672b435f016260ee7d6:
core/pkg-infra: ensure legal-info works in off-line mode (2015-11-16 23:39:03 +0100)
----------------------------------------------------------------
Yann E. MORIN (21):
package/libecore: do not build anything at patch time core/legal-info: fix missing double-$ package/linux-headers: add licensing information core/legal-info: allow ignoring packages from the legal-info core/pkg-virtual: ignore from legal-info output package/gcc: add licensing information
package/gcc: handle licensing information
package/gcc: add a patch for arc rather than using sed package/gcc: properly extract and patch sources package/gcc: make host-gcc a pure host package package/gcc: make -initial and -final use sources from host-gcc package/gcc: include the extensa overlay in the legal-info output package/perl: include perl-cross in the legal-info output
core: add a global variable with already-unquoted global patch dir core/pkg-generic: add macro to hardlink-or-copy core/legal-info: use the macro to install source archives core/legal-info: install source archives in their own sub-dir core/legal-info: add package version to license directory core/apply-patches: store full path of applied patches core/legal-info: also save patches
core/pkg-infra: ensure legal-info works in off-line mode
Makefile | 2 + docs/manual/adding-packages-generic.txt | 7 +- package/efl/libecore/libecore.mk | 2 +- .../900-no-libgmon.a-when-inhibit_libc.patch | 43 +++++++ package/gcc/gcc-final/gcc-final.mk | 40 +++--- package/gcc/gcc-initial/gcc-initial.mk | 43 ++----- package/gcc/gcc.mk | 137 +++++++++++---------- package/linux-headers/linux-headers.mk | 2 + package/perl/perl.mk | 7 ++ package/pkg-generic.mk | 74 ++++++++--- package/pkg-virtual.mk | 2 + support/scripts/apply-patches.sh | 7 +- 12 files changed, 228 insertions(+), 138 deletions(-) create mode 100644 package/gcc/arc-2015.06/900-no-libgmon.a-when-inhibit_libc.patch
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. | '------------------------------^-------^------------------^--------------------'