Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/51] legal-info: unassorted improvements and fixes (branch yem/legal)
Date: Mon, 23 Nov 2015 22:09:39 +0100	[thread overview]
Message-ID: <20151123210939.GJ3857@free.fr> (raw)
In-Reply-To: <20151123212252.5ec59f4e@free-electrons.com>

Thomas, All,

On 2015-11-23 21:22 +0100, Thomas Petazzoni spake thusly:
> On Mon, 23 Nov 2015 15:48:16 +0100, Yann E. MORIN wrote:
> > The series is not completely 'logically' organised, but rather tells a
> > story, that of how I got side-tracked from just wanting to save the
> > patches alongside the sources, up to when I eventually cleaned up the
> > handling of the Xtensa overlay, after reogarnising the gcc packages and
> > defining their licensing terms. It was prompted by a discussion we had
> > with Luca during the last DevDays in Dublin, when we talked about the
> > need to save the patches as well as the source archives.
> 
> Can you summarize what is the motivation for saving the patches as well
> as the source archives ?

I think I've explained that below, and in the commit log that actually
saves the patches. Maybe I should have improved those explanations...

> > Patches 10-17 actually implement saving the patches alongside the
> > sources. Even though we suggest users to provide their Buildroot tree to
> > be compliant, this is by far incpomplete, because not all patches may be
> > there (patches can be downloaded or can be in a global patch dir):
> 
> I would have assumed patches in a global patch dir should be taken care
> of by users. But indeed, if patches expressed via <pkg>_PATCH are not
> copied, this is wrong.
> 
> However, files mentioned in <pkg>_EXTRA_DOWNLOADS should also be copied
> to the legal-info output.

I don;t think we should also save the _EXTRA_DOWNLOADS, because it is
also used by the blackfin external toolchains to download parts of the
sysroot (as far as I understand it).

> There is possibly one reason why distributing the entire Buildroot may
> be problematic. If you distribute the entire Buildroot, it means you
> are distributing code (in the form of patches) for a large number of
> packages, many of which you are most likely not using in your actual
> product. However, the simple fact of distributing patches to (L)GPLv3
> code has some implication in terms of patents licensing, which
> companies may not like.

Hmm.. That's a tricky question, indeed.

I would have assumed that what a distributor is bound to, is the
licenses of the actual packages present in the firmware, and that extra
code that is published would not have any impact.

However, you may be right on one point: the mere fact of distributing
code under licenses that have so-called "IP" protection (like patent
stuff provisions like the GPLv3 has) could be seen as being problematic
for a distributor, indeed.

> Therefore, distributing Buildroot completely
> may not necessarily be acceptable for certain companies. Do we have a
> way around that ?

That would be awfully complex. We'd have to provide a way to strip-down
Buildroot to just the recipes of what is actually in the firmware,
stripping away a whole lot of packages, possibly severing the dependency
chains...

I would prefer we do not go that route if at all possible...

> > Patches 18-27 re-organise the gcc packages. The ultimate goal is to be
> > able to save the legal-info for both the host and target variants. For
> > that, we want to introduce a target gcc variant (which would not install
> > a native compiler) to define the licensing terms. That has not been done
> > in this series, for two reasons: first, the series is already very long;
> > second, that target package needs some mor ere-organising in the gcc
> > infra. Otherwise:
> >   - the gcc common definitions ar emoved to gcc-common,
> >   - gcc-initial remains as-is,
> >   - gcc-final is renamed to just 'gcc',
> >   - licensing information is added to gcc (the final one),
> >   - the custom patch command is dropped, to use the generic patch infra,
> >     so symlinks to patch directories are added to gcc-initial and
> >     gcc (-final).
> 
> I am wondering why this is part of the same series really. It should be
> a completely separated matter IMO.

As I said in the begining of the cover letter, I got side-tracked.

Basically, what happenend is that I did a few patches to save the
patches with the sources. Then realised that we were missing the legal
info for gcc; then I noticed that we should save the Xtensa overlay. And
so I looked at packages that were using EXTRA_DOWNLOADS and stumbled on 
perl for which we should also save perl-cross. Back to the Xtensa stuff, 
it became obvious we were not handking it in the best way we could. And
so on...

And so, as the subject of the cover letter says, this is a set of
"unassorted improvements nad fixes" on the legal-info infra.

But yes, I agree that the series could be split. However, the different
parts could only be subnmitted only after the previous parts are
applied, because changes added in each "part" of the series are re-used
later on. So it is not easy to just split it without causing conflicts
later on; conflicts either on the maintianers side to merge changes
touching the same areas, or or my side rebasing the series again and
again. At least, the series is self-contained, and "temporaly" correct,
even if it touches many different areas: it all relates to being better
at saving th elegal info (even the Xtensa overlay improvements rely on
earlier patches).

> > Starting from there, the series diverges from its original intent, but
> > is a logical/historical followup because I noticed the Xtensa overlay
> > handling was really a mess.
> 
> Ditto, why isn't that a separate patch series?

Ditto. ;-)

Thanks!

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.  |
'------------------------------^-------^------------------^--------------------'

      reply	other threads:[~2015-11-23 21:09 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23 14:48 [Buildroot] [PATCH 0/51] legal-info: unassorted improvements and fixes (branch yem/legal) Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 01/51] core/pkg-autotools: align host configure commands to target one Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 02/51] package/gcc: comment on why we override the generic configure commands Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 03/51] package/gcc: align gcc-final configure-cmds to the generic ones Yann E. MORIN
2015-12-03 17:10   ` Luca Ceresoli
2015-11-23 14:47 ` [Buildroot] [PATCH 04/51] core/pkg-generic: add macro to hardlink-or-copy Yann E. MORIN
2015-11-23 17:15   ` Luca Ceresoli
2015-11-23 14:47 ` [Buildroot] [PATCH 05/51] core/legal-info: use the macro to install source archives Yann E. MORIN
2015-11-23 17:18   ` Luca Ceresoli
2015-11-23 17:21     ` Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 06/51] package/perl: include perl-cross in the legal-info output Yann E. MORIN
2015-11-23 17:25   ` Luca Ceresoli
2015-11-23 17:58     ` Yann E. MORIN
2015-11-23 20:24   ` Thomas Petazzoni
2015-11-23 21:23     ` Yann E. MORIN
2015-12-03 17:11       ` Luca Ceresoli
2015-12-03 18:37         ` Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 07/51] core: add a global variable with already-unquoted global patch dir Yann E. MORIN
2015-11-23 16:18   ` Thomas Petazzoni
2015-11-23 16:30     ` Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 08/51] core/legal-info: allow ignoring packages from the legal-info Yann E. MORIN
2015-11-23 20:26   ` Thomas Petazzoni
2015-11-24 22:05     ` Peter Korsgaard
2015-12-03 17:12       ` Luca Ceresoli
2015-12-03 18:36         ` Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 09/51] core/pkg-virtual: ignore from legal-info output Yann E. MORIN
2015-12-03 17:13   ` Luca Ceresoli
2015-11-23 14:47 ` [Buildroot] [PATCH 10/51] core/legal-info: install source archives in their own sub-dir Yann E. MORIN
2015-12-03 17:16   ` Luca Ceresoli
2015-12-03 17:25     ` Luca Ceresoli
2015-11-23 14:47 ` [Buildroot] [PATCH 11/51] core/legal-info: add package version to license directory Yann E. MORIN
2015-12-03 17:17   ` Luca Ceresoli
2015-12-03 18:41     ` Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 12/51] core/apply-patches: store full path of applied patches Yann E. MORIN
2015-12-03 17:18   ` Luca Ceresoli
2015-12-03 18:52     ` Yann E. MORIN
2015-12-04 12:02       ` Luca Ceresoli
2015-11-23 14:47 ` [Buildroot] [PATCH 13/51] core/legal-info: also save patches Yann E. MORIN
2015-12-03 17:19   ` Luca Ceresoli
2015-11-23 14:47 ` [Buildroot] [PATCH 14/51] core/legal-info: update the legal-info report header Yann E. MORIN
2015-12-03 17:21   ` Luca Ceresoli
2015-12-03 18:53     ` Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 15/51] core/legal-info: ensure legal-info works in off-line mode Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 16/51] toolchain/external: add hash for Arago actual sources Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 17/51] core/legal-info: generate a hash of all saved files Yann E. MORIN
2015-12-03 17:24   ` Luca Ceresoli
2015-12-03 19:11     ` Yann E. MORIN
2015-12-04 11:40       ` Luca Ceresoli
2015-11-23 14:47 ` [Buildroot] [PATCH 18/51] package/gcc: add a patch for arc rather than using sed Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 19/51] package/gcc: simplify setting GCC_SOURCE Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 20/51] pacakge/gcc: rename all variables as it is a host-only package Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 21/51] package/gcc: prefix all common variables with HOST_GCC_COMMON_ Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 22/51] package/gcc: rename the common files Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 23/51] package/gcc: rename gcc-final into plain gcc Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 24/51] package/gcc-initial: ignore from legal-info output Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 25/51] package/gcc: add licensing info for host variant Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 26/51] package/gcc: create the ./configure symlink as a post-patch hook Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 27/51] pacakge/gcc: drop custom patch command Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 28/51] core: include arch-specific definitions Yann E. MORIN
2015-11-23 14:47 ` [Buildroot] [PATCH 29/51] arch/xtensa: add definitions for the Xtensa overlay Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 30/51] package/binutils: use the Xtensa variables Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 31/51] package/gdb: " Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 32/51] package/gcc: " Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 33/51] arch/xtensa: add macro to extract the overlay Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 34/51] package/binutils: use macro to extract Xtensa overlay Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 35/51] package/gdb: " Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 36/51] package/gcc: " Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 37/51] arch/xtensa: add macro to install legal-info Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 38/51] pacage/gcc: use macro to install Xtensa overlay legal-info Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 39/51] package/binutils: " Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 40/51] package/gdb: " Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 41/51] package/binutils: extract Xtensa overlay as post-extract hook Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 42/51] package/gdb: " Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 43/51] arch/xtensa: add macros to generate hooks Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 44/51] package/binutils: use the Xtensa macro generators Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 45/51] package/gdb: " Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 46/51] package/gcc: " Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 47/51] arc/xtensa: get rid of an intermediate blind kconfig option Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 48/51] arch/xtensa: allow specifying path to tarball file Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 49/51] arch/xtensa: accept the overlay to be compressed Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 50/51] arch/xtensa: accept the overlay to be an URL Yann E. MORIN
2015-11-23 20:35   ` Thomas Petazzoni
2015-11-23 21:28     ` Yann E. MORIN
2015-11-23 14:48 ` [Buildroot] [PATCH 51/51] configs/qemu-xtensa: use overlay from the github repository Yann E. MORIN
2015-11-23 20:22 ` [Buildroot] [PATCH 0/51] legal-info: unassorted improvements and fixes (branch yem/legal) Thomas Petazzoni
2015-11-23 21:09   ` Yann E. MORIN [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=20151123210939.GJ3857@free.fr \
    --to=yann.morin.1998@free.fr \
    --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